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.43 c9, Count Enable Set Register<br />

System Control Coprocessor<br />

The PMNC Register is always accessible in privileged modes. Table 3-83 shows the results of<br />

attempted access for each mode.<br />

Table 3-83 Results of access to the Performance Monitor Control 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 />

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

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

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

The purpose of the CouNT ENable Set (CNTENS) 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 indicates the counter is enabled.<br />

The CNTENS 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-39 shows the bit arrangement of the CNTENS Register.<br />

31 30<br />

4 3 2 1 0<br />

C<br />

Reserved<br />

Figure 3-39 Count Enable Set Register format<br />

Table 3-84 shows how the bit values correspond with the CNTENS Register functions.<br />

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

ID060510 Non-Confidential<br />

P3<br />

P2<br />

P1<br />

P0<br />

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

Bits Field Function<br />

[31] C Enable cycle counter.<br />

[30:4] - Reserved. UNP, SBZ.<br />

[3] P3 Enable Counter 3.

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

Saved successfully!

Ooh no, something went wrong!