09.12.2012 Views

Cortex-A8 Technical Reference Manual - ARM Information Center

Cortex-A8 Technical Reference Manual - ARM Information Center

Cortex-A8 Technical Reference Manual - ARM Information Center

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

EN b<br />

3.2.44 c9, Count Enable Clear Register<br />

Table 3-85 shows the results of attempted access for each mode.<br />

To access the CNTENS Register, read or write CP15 with:<br />

MRC p15, 0, , c9, c12, 1 ; Read CNTENS Register<br />

MCR p15, 0, , c9, c12, 1 ; Write CNTENS Register<br />

System Control Coprocessor<br />

Table 3-84 Count Enable Set Register bit functions (continued)<br />

The purpose of the CouNT ENable Clear (CNTENC) Register is to enable or disable any of the<br />

Performance Monitor Count Registers.<br />

When reading this register, any enable that reads as 0 indicates the counter is disabled. Any<br />

enable that reads as 1 indicates the counter is enabled.<br />

When writing this register, any enable written with a value of 0 is ignored, that is, not updated.<br />

Any enable written with a value of 1 clears the counter enable to 0.<br />

The CNTENC Register is:<br />

• a read/write register common to Secure and Nonsecure states<br />

• accessible as determined by c9, User Enable Register on page 3-89.<br />

Figure 3-40 shows the bit arrangement of the CNTENC Register.<br />

Bits Field Function<br />

[2] P2 Enable Counter 2.<br />

[1] P1 Enable Counter 1.<br />

[0] P0 Enable Counter 0.<br />

Table 3-85 Results of access to the Count Enable Set Register a<br />

Secure privileged Nonsecure privileged Secure User Nonsecure User<br />

Read Write Read Write Read Write Read Write<br />

0 Data Data Data Data Undefined Undefined Undefined Undefined<br />

1 Data Data Data Data Data Data Data Data<br />

a. An entry of Undefined in the table means that the access gives an Undefined Instruction exception when the coprocessor<br />

instruction is executed.<br />

b. The EN bit in c9, User Enable Register on page 3-89 enables User mode access of the Performance Monitor Registers.<br />

31 30<br />

4 3 2 1 0<br />

C<br />

Reserved<br />

Figure 3-40 Count Enable Clear Register format<br />

<strong>ARM</strong> DDI 0344K Copyright © 2006-2010 <strong>ARM</strong> Limited. All rights reserved. 3-79<br />

ID060510 Non-Confidential<br />

P3<br />

P2<br />

P1<br />

P0

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!