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

3. The processor signals that it has entered Debug state <strong>and</strong> is ready for an external agent to take control:<br />

the DBGDSCR.HALTED bit is set to 1<br />

the DBGDSCR.MOE field is set according to Table C10-3 on page C10-26.<br />

For details of the recommended external debug interface, see Run-control <strong>and</strong> cross-triggering signals on<br />

page AppxA-5 <strong>and</strong> DBGACK <strong>and</strong> DBGCPUDONE on page AppxA-7.<br />

C5.2.1 Effect of entering Debug state on CP15 registers <strong>and</strong> the DBGWFAR<br />

The actions taken on entering Debug state depend on what caused the Debug state entry:<br />

If Debug state was entered following a Watchpoint debug event, then the DBGWFAR is updated with<br />

the Instruction Virtual Address (IVA) of the instruction that accessed the watchpointed address, plus<br />

an offset that depends on the instruction set state of the processor when the debug event was<br />

generated:<br />

— 8 in <strong>ARM</strong> state<br />

— 4 in Thumb <strong>and</strong> ThumbEE states<br />

— IMPLEMENTATION DEFINED in Jazelle state.<br />

See Memory addresses on page C3-23 for a definition of the IVA used to update the DBGWFAR.<br />

Otherwise, the DBGWFAR is unchanged on entry to Debug state.<br />

Note<br />

The implementation of the DBGWFAR depends on the Debug architecture version:<br />

— In v6 Debug it is implemented as a register in CP15 c6.<br />

— In v6.1 Debug it is implemented in CP14, <strong>and</strong> use of the CP15 alias is deprecated.<br />

— In v7 Debug it can be implemented in the Extended CP14 interface, <strong>and</strong> has no alias in CP15.<br />

For more information, see Watchpoint Fault Address Register (DBGWFAR) on page C10-28.<br />

In all cases, on Debug state entry the DBGWFAR is set as described in this section.<br />

In <strong>ARM</strong>v7, all CP15 registers are unchanged on entry to Debug state. In <strong>ARM</strong>v6, all CP15 registers except<br />

for the DBGWFAR are unchanged on entry to Debug state. The unchanged registers include the IFSR,<br />

DFSR, DFAR, <strong>and</strong> IFAR.<br />

On a processor that implements the Security Extensions, the SCR.NS bit is not changed on entry to Debug<br />

state.<br />

C5-4 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!