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 Registers <strong>Reference</strong><br />

0b10 Match on any store, Store-Exclusive or swap.<br />

0b11 Match on any either type of access.<br />

If an implementation supports watchpoint generation by:<br />

a memory hint instruction, then that instruction is treated as generating a load access<br />

a cache maintenance operation, then that operation is treated as generating a store<br />

access.<br />

Privileged mode control, bits [2:1]<br />

This field enables watchpoint matching conditional on the mode of the processor. Possible<br />

values of this field are:<br />

0b00 Reserved.<br />

0b01 Match privileged accesses.<br />

0b10 Match unprivileged accesses.<br />

0b11 Match all accesses.<br />

Note<br />

For all cases the match refers to the privilege of the access, not the mode of the<br />

processor. For example, if the watchpoint is configured to match privileged accesses<br />

only (0b01), <strong>and</strong> the processor executes an LDRT instruction in a privileged mode, the<br />

watchpoint does not match.<br />

Permitted values of this field are not identical to those for the DBGBCR. In the<br />

DBGBCR only, in v7 Debug, the value 0b00 is permitted.<br />

Watchpoint enable, bit [0]<br />

This bit enables the WRP. The meaning of this bit is:<br />

0 Watchpoint disabled<br />

1 Watchpoint enabled.<br />

A WRP never generates Watchpoint debug events when its DBGWCR is disabled.<br />

The debug logic reset values of all bits of the DBGWCR is UNKNOWN.<br />

Note<br />

In v6 Debug <strong>and</strong> v6.1 Debug, the Watchpoint enable bit of the DBGWCR is set to 0 on a debug logic<br />

reset, disabling the watchpoint.<br />

In v7 Debug, a debugger must ensure that DBGWCR[0] has a defined state before it programs<br />

DBGDSCR[15:14] to enable debug.<br />

C10-64 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!