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 Register Interfaces<br />

C6.6.3 CP14 debug registers access permissions<br />

By default, certain CP14 debug registers can be accessed from User mode. However, the processor can be<br />

programmed to prevent User mode access to these CP14 debug registers. For more information, see the<br />

description of the UDCCdis bit in Debug Status <strong>and</strong> Control Register (DBGDSCR) on page C10-10.<br />

All CP14 debug registers can be accessed if the processor is in Debug state.<br />

Note<br />

When the Software Lock (DBGLAR) is implemented for a memory-mapped interface, it does not affect the<br />

behavior of CP14 instructions.<br />

Baseline CP14 debug registers access permissions<br />

Access to the Baseline CP14 debug registers is governed by the processor mode, Debug state <strong>and</strong> the value<br />

of DBGDSCR.UDCCdis. In addition, when the OS Lock is set accesses to the baseline registers are<br />

UNPREDICTABLE.<br />

Note<br />

OS Lock is implemented only in v7 Debug.<br />

These access permissions are shown:<br />

in Table C6-8 for v6 Debug <strong>and</strong> v6.1 Debug<br />

in Table C6-9 on page C6-37 for v7 Debug<br />

Table C6-8 Access to Baseline CP14 debug registers in v6 Debug <strong>and</strong> v6.1 Debug<br />

Conditions<br />

Debug state Processor mode DBGDSCR.UDCCdis b<br />

Baseline CP14<br />

instructions a<br />

DBGDSCRint<br />

writes<br />

Yes X X Proceed Proceed<br />

No User 0 Proceed UNDEFINED<br />

No User 1 UNDEFINED UNDEFINED<br />

No Privileged X Proceed Proceed<br />

a. Read DBGDIDR, DBGDSCRint, DBGDTRRXint, or write DBGDTRTXint.<br />

Attempting to use an MCR instruction to access the DBGDIDR always causes an Undefined Instruction exception.<br />

b. DCC User mode accesses disable bit, see Debug Status <strong>and</strong> Control Register (DBGDSCR) on page C10-10.<br />

C6-36 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!