05.02.2013 Views

ARM Architecture Reference Manual ARMv7-A and ARMv7-R edition

ARM Architecture Reference Manual ARMv7-A and ARMv7-R edition

ARM Architecture Reference Manual ARMv7-A and ARMv7-R edition

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.

Debug Registers <strong>Reference</strong><br />

C10.9.2 c9, Count Enable Set Register (PMCNTENSET)<br />

The Count Enable Set Register, PMCNTENSET, is used to enable:<br />

the Cycle Count Register, PMCCNTR<br />

any implemented event counters, PMNx.<br />

Reading the PMCNTENSET Register shows which counters are enabled. Counters are disabled using the<br />

Count Enable Clear Register, see c9, Count Enable Clear Register (PMCNTENCLR) on page C10-109.<br />

The PMCNTENSET Register is:<br />

a 32-bit read/write CP15 register:<br />

— reading the register shows which counters are enabled<br />

— writing a 1 to a bit of the register enables the corresponding counter<br />

— writing a 0 to a bit of the register has no effect<br />

accessible in:<br />

— privileged modes<br />

— User mode only when the PMUSERENR.EN bit is set to 1<br />

accessed using an MRC or MCR comm<strong>and</strong> with set to c9, set to 0, set to c12, <strong>and</strong><br />

set to 1.<br />

The format of the PMCNTENSET Register is:<br />

31 30 N N-1 0<br />

C RAZ/WI Event counter enable bits, Px, for x = 0 to (N-1)<br />

Note<br />

In the description of the PMCNTENSET Register:<br />

N is the number of event counters implemented, as defined by the PMCR.N field, see c9,<br />

Performance Monitor Control Register (PMCR) on page C10-105<br />

x refers to a single event counter, <strong>and</strong> takes values from 0 to (N-1).<br />

C, bit [31] PMCCNTR enable bit.<br />

See Table C10-25 on page C10-109 for the behavior of this bit on reads <strong>and</strong> writes.<br />

Bits [30:N] RAZ/WI.<br />

Px, bit [x], for x = 0 to (N-1)<br />

Event counter x, PMNx, enable bit.<br />

C10-108 Copyright © 1996-1998, 2000, 2004-2008 <strong>ARM</strong> Limited. All rights reserved. <strong>ARM</strong> DDI 0406B

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

Saved successfully!

Ooh no, something went wrong!