System Control Coprocessor
ARM DDI 0301H
Copyright © 2004-2009 ARM Limited. All rights reserved.
3-140
ID012310
Non-Confidential, Unrestricted Access
Access to the Count Register 1 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 1 is always
accessible in Privileged modes. Table 3-141 lists the results of attempted access for each mode.
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 3.
For example:
MRC p15, 0, <Rd>, c15, c12, 3
; Read Count Register 1
MCR p15, 0, <Rd>, c15, c12, 3
; Write Count Register 1
The value in Count Register 1 is 0 at Reset.
You can use the Performance Monitor Control Register to set Count Register 1 to zero.
3.2.55
c15, System Validation Counter Register
The purpose of the System Validation Counter Register is to count core clock cycles to trigger
a system validation event.
The System Validation Counter Register is:
•
in CP15 c15
•
a 32 bit read/write register common to the Secure and Non-secure worlds
•
accessible in User and Privileged modes.
The System Validation Counter Register consists of one 32-bit register that performs four
functions. Table 3-142 lists the arrangement of the functions in this group. The reset value is 0.
The reset, interrupt, and fast interrupt counters are 32-bits wide. The external debug request
counter is 6 bits wide. Figure 3-74 on page 3-141 shows the arrangement of bits for the external
debug request counter.
Table 3-141 Results of access to the Count Register 1
V bit
Secure Privileged
Non-secure Privileged
User
Read
Write
Read
Write
Read
Write
0
Data
Data
Data
Data
Undefined exception
Undefined exception
1
Data
Data
Data
Data
Data
Data
Table 3-142 System validation counter register operations
CRn
Opcode_1
CRm
Opcode_2
R/W
Operation
c15
0
c12
1
R/W
Reset counter
2
R/W
Interrupt counter
3
R/W
Fast interrupt counter
7
W
External debug request counter