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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

EN b<br />

Figure 3-42 shows the bit arrangement of the SWINCR Register.<br />

System Control Coprocessor<br />

Figure 3-42 Software Increment Register format<br />

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

The SWINCR Register only has effect when counter event is set to 0x00.<br />

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

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

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

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

3.2.47 c9, Performance Counter Selection Register<br />

31 4 3 2 1 0<br />

Reserved<br />

The purpose of the Performance Counter SELection (PMNXSEL) Register is to select a<br />

Performance Monitor Count Register.<br />

The PMNXSEL 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 />

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

ID060510 Non-Confidential<br />

P3<br />

P2<br />

P1<br />

P0<br />

Table 3-90 Software Increment Register bit functions<br />

Bits Field Function<br />

[31:4] - Reserved. RAZ, SBZP<br />

[3] P3 Increment Counter 3<br />

[2] P2 Increment Counter 2<br />

[1] P1 Increment Counter 1<br />

[0] P0 Increment Counter 0<br />

Table 3-91 Results of access to the Software Increment Register a<br />

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

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

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

1 0 Data 0 Data 0 Data 0 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.

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

Saved successfully!

Ooh no, something went wrong!