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

This field must be programmed to 0b00000 if either:<br />

DBGWCR[12:5] != 0b11111111, if an 8-bit Byte address select field is implemented<br />

DBGWCR[8:5] != 0b1111, if a 4-bit Byte address select field is implemented.<br />

If this is not done, the generation of Watchpoint debug events is UNPREDICTABLE.<br />

If this field is not zero, the DBGWVR bits that are not included in the comparison must be<br />

zero, otherwise the generation of Watchpoint debug events is UNPREDICTABLE.<br />

To watch for a write to any byte in an doubleword-aligned object of size 8 bytes, <strong>ARM</strong><br />

recommends that debuggers set DBGWCR[28:24] = 0x7, <strong>and</strong><br />

DBGWCR[12:5] = 0b11111111. This setting is compatible with both implementations with<br />

an 8-bit Byte address select field <strong>and</strong> implementations with a 4-bit Byte address select field,<br />

because implementations with a 4-bit Byte address select field ignore writes to<br />

DBGWCR[12:9].<br />

Bits [28:24], v6 Debug <strong>and</strong> v6.1 Debug<br />

Reserved, UNK/SBZP.<br />

Enable linking, bit [20]<br />

This bit is set to 1 if this WRP is linked to a BRP to set a linked watchpoint that requires<br />

both DVA <strong>and</strong> Context ID comparison. The possible values of this bit are<br />

0 linking disabled<br />

1 linking enabled.<br />

When this bit is set to 1 the Linked BRP number field indicates the BRP to which this WRP<br />

is linked. For more information, see Linked comparisons on page C10-59.<br />

Linked BRP number, bits [19:16]<br />

If this WRP is programmed with linking enabled then this field must be programmed with<br />

the number of the BRP that holds the Context ID to be used for the combined DVA <strong>and</strong><br />

Context ID comparison, otherwise, this field must be programmed to 0b0000.<br />

If this field is programmed with a value other than zero or the number of a BRP that supports<br />

Context ID comparison then reading this register returns an UNKNOWN value for this field.<br />

The generation of Watchpoint debug events is UNPREDICTABLE if either:<br />

this WRP does not have linking enabled <strong>and</strong> this field is not programmed to 0b0000<br />

this WRP has linking enabled <strong>and</strong> the BRP indicated by this field does not support<br />

Context ID comparison or is not programmed for Linked Context ID match.<br />

Security state control, bits [15:14], when the Security Extensions are implemented<br />

Note<br />

The Security Extensions cannot be implemented with v6 Debug.<br />

When a processor implements the Security Extensions, these bits enable the breakpoint to<br />

be conditional on the security state of the processor:<br />

0b00 watchpoint generated on match in both Non-secure state <strong>and</strong> Secure state<br />

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