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

3.2.49 c9, Event Selection Register<br />

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

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

MRC p15, 0, , c9, c13, 0 ; Read CCNT Register<br />

MCR p15, 0, , c9, c13, 0 ; Write CCNT Register<br />

System Control Coprocessor<br />

Table 3-94 Results of access to the Cycle Count 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 />

The CCNT Register must be disabled before software can write to it. Any attempt by software<br />

to write to this register when enabled is Unpredictable.<br />

The purpose of the Event SELection (EVTSEL) Register is to select the events that you want a<br />

Performance Monitor Count Register to count.<br />

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

31 8 7<br />

0<br />

Reserved SEL<br />

Figure 3-44 Event Selection Register format<br />

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

Bits Field Function<br />

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

Table 3-95 Event Selection Register bit functions<br />

[7:0] SEL Specifies the event selected as shown in Table 3-97 on page 3-85<br />

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

ID060510 Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!