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.

C10.5.4 Watchpoint Control Registers (DBGWCR)<br />

Debug Registers <strong>Reference</strong><br />

A Watchpoint Control Register, DBGWCR, holds control information for a watchpoint. Each DBGWCR is<br />

associated with a DBGWVR to form a Watchpoint Register Pair (WRP). For more information about WRPs<br />

<strong>and</strong> the possible watchpoints see Watchpoint Value Registers (DBGWVR) on page C10-60.<br />

The DBGWCRs are:<br />

debug registers 112-127, at offsets 0x1C0-0x1FC<br />

read/write registers<br />

when the Security Extensions are implemented, Common registers.<br />

The format of a DBGWCR, in v7 Debug, is:<br />

31 29 28 24 23 21 20 19 16 15 14 13 12<br />

5 4 3 2 1 0<br />

UNK/<br />

SBZP<br />

Address<br />

range mask<br />

See the bit descriptions for the differences in other Debug architecture versions.<br />

Bits [31:29, 23:21,13]<br />

UNK/<br />

SBZP<br />

Reserved, UNK/SBZP.<br />

Address range mask, bits [28:24], v7 Debug<br />

Linked<br />

BRP num.<br />

Byte address select<br />

Enable linking Load/Store access control<br />

Security state control<br />

Privileged mode control<br />

Watchpoint enable<br />

In v7 Debug, support for watchpoint address range masking is optional. If it is not supported<br />

these bits are RAZ/WI.<br />

If watchpoint address range masking is supported, this field can be used to watch a range of<br />

addresses by masking lower order address bits out of the watchpoint comparison. The value<br />

of this field is the number of low order bits of the address that are masked off, except that<br />

values of 1 <strong>and</strong> 2 are reserved. Therefore, the meaning of Watchpoint Address range mask<br />

values are:<br />

0b00000 No mask<br />

0b00001 Reserved<br />

0b00010 Reserved<br />

0b00011 0x00000007 mask for data address, three bits masked<br />

0b00100 0x0000000F mask for data address, four bits masked<br />

0b00101 0x0000001F mask for data address, five bits masked<br />

. .<br />

. .<br />

. .<br />

0b11111 0x7FFFFFFF mask for data address, 31 bits masked.<br />

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

(0)

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

Saved successfully!

Ooh no, something went wrong!