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.

Value Description<br />

0x60-0x6F Reserved.<br />

0x70 Counts any event from external input source PMUEXTIN[0].<br />

0x71 Counts any event from external input source PMUEXTIN[1].<br />

0x72 Counts any event from both external input sources PMUEXTIN[0] and PMUEXTIN[1].<br />

0x73-0xFF Reserved.<br />

System Control Coprocessor<br />

If this unit generates an interrupt, the processor asserts the pin nPMUIRQ. You can route this<br />

pin to an external interrupt controller for prioritization and masking. This is the only mechanism<br />

that signals this interrupt to the core.<br />

The absolute counts recorded might vary because of pipeline effects. This has negligible effect<br />

except in cases where the counters are enabled for a very short time.<br />

In addition to the counters within the processor, most of the events that Table 3-97 on page 3-85<br />

shows are available to the ETM unit or other external trace hardware to enable the events to be<br />

monitored. See Chapter 14 Embedded Trace Macrocell and Chapter 15 Cross Trigger Interface<br />

for more information.<br />

3.2.50 c9, Performance Monitor Count Registers<br />

EN b<br />

There are four Performance Monitor CouNT (PMCNT0-PMCNT3) Registers in the processor.<br />

The purpose of each PMCNT Register, as selected by the PMNXSEL Register, is to count<br />

instances of an event selected by the EVTSEL Register. Bits [31:0] of each PMCNT Register<br />

contain an event count.<br />

The PMCNT0-PMCNT3 Registers are:<br />

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

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

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

To access the PMCNT Registers, read or write CP15 with:<br />

MRC p15, 0, , c9, c13, 2; Read PMCNT0-PMCNT3 Registers<br />

MCR p15, 0, , c9, c13, 2; Write PMCNT0-PMCNT3 Registers<br />

Table 3-97 Values for predefined events (continued)<br />

Table 3-98 Results of access to the Performance Monitor Count Registers 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 />

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

ID060510 Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!