Table 3-140 Results Of Access To The Count Register 0 - ARM ARM1176JZF-S Technical Reference Manual

Table of Contents

Advertisement

V bit
0
1
3.2.54
c15, Count Register 1
ARM DDI 0301H
ID012310
Access to the Count Register 0 in User mode depends on the V bit, see c15, Secure User and
Non-secure Access Validation Control Register on page 3-132. The Count Register 0 is always
accessible in Privileged modes. Table 3-140 lists the results of attempted access for each mode.
Secure Privileged
Read
Write
Data
Data
Data
Data
To access Count Register 1 read or write CP15 with:
Opcode_1 set to 0
CRn set to c15
CRm set to c12
Opcode_2 set to 2.
For Example:
MRC p15, 0, <Rd>, c15, c12, 2
MCR p15, 0, <Rd>, c15, c12, 2
The value in Count Register 0 is 0 at Reset.
You can use the Performance Monitor Control Register to set Count Register 0 to zero.
The purpose of the Count Register 1 is to count instances of an event that the Performance
Monitor Control Register selects.
The Count Register 1:
is in CP15 c15
is a 32-bit read/write register common to Secure and Non-secure worlds
counts up and can trigger an interrupt on overflow.
Count Register 1 bits [31:0] contain the count value. The reset value is 0.
You can use this register in conjunction with the Performance Monitor Control Register, the
Cycle Count Register, and Count Register 0 to provide a variety of useful metrics that enable
you to optimize system performance.
Note
In Debug state the counter is disabled.
When the core is in a mode where non-invasive debug is not permitted, set by SPNIDEN
and the SUNIDEN bit, see c1, Secure Debug Enable Register on page 3-54, the processor
does not count events.
Copyright © 2004-2009 ARM Limited. All rights reserved.
Non-Confidential, Unrestricted Access

Table 3-140 Results of access to the Count Register 0

Non-secure Privileged
Read
Write
Data
Data
Data
Data
; Read Count Register 0
; Write Count Register 0
System Control Coprocessor
User
Read
Write
Undefined exception
Undefined exception
Data
Data
3-139

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents