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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Debug Register Interfaces<br />

When the processor is in Non-debug state, all User mode accesses to the Extended CP14 interface registers<br />

are UNDEFINED.<br />

For example, in privileged modes the following instruction reads the value of DBGWVR7, register 103, if<br />

at least 8 watchpoints are implemented, <strong>and</strong> is UNPREDICTABLE otherwise:<br />

MRC p14,0,,c0,c7,6<br />

Note<br />

The access permissions in Table C6-11 on page C6-39 <strong>and</strong> Table C6-12 on page C6-40 have precedence<br />

over the behavior in Table C6-13 on page C6-40. For example, even if at least 8 watchpoints are<br />

implemented, the following instruction is UNDEFINED in all processor modes when the Debug Software<br />

Enable function is disabled:<br />

MRC p14,0,,c0,c7,6<br />

v6 Debug <strong>and</strong> v6.1 Debug CP14 debug registers access permissions<br />

In v6 Debug <strong>and</strong> v6.1 Debug, access to registers other than the DBGDIDR, DBGDSCR, DBGDTRRX, <strong>and</strong><br />

DBGDTRTX is not permitted if Halting debug-mode is selected. The Debug Software Enable function, the<br />

Sticky Power-down status bit <strong>and</strong> the OS Lock are not implemented, <strong>and</strong> there are fewer CP14 debug<br />

registers than in the v7 Debug Extended CP14 interface.<br />

For v6 Debug <strong>and</strong> v6.1 Debug:<br />

Table C6-8 on page C6-36 shows the access permissions for the Baseline CP14 debug registers<br />

Table C6-14 shows the access permissions for the other CP14 debug registers.<br />

Table C6-14 Access to CP14 debug registers, v6 Debug <strong>and</strong> v6.1 Debug<br />

Conditions a<br />

Debug state Processor mode DBGDSCR[15:14] c<br />

Yes X XX Proceed<br />

Other CP14 debug<br />

instructions b<br />

No User XX UNDEFINED<br />

No Privileged 00 (None) UNDEFINED<br />

No Privileged X1 (Halting) UNDEFINED<br />

No Privileged 10 (Monitor) Proceed<br />

a. The accesses in this table are not affected by the value of the DBGDSCR.UDCCdis bit.<br />

b. All instructions with == 0b000 <strong>and</strong> == 0b0000, except for read accesses to DBGDIDR,<br />

DBGDSAR, DBGDRAR, DBGDSCRint, <strong>and</strong> DBGDTRRXint, <strong>and</strong> write accesses to DBGDSCRint<br />

<strong>and</strong> DBGDTRTXint. See also Table C6-15 on page C6-42.<br />

c. MDBGen <strong>and</strong> HDBGen bits, debug-mode enable <strong>and</strong> select bits.<br />

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

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

Saved successfully!

Ooh no, something went wrong!