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 event generation conditions defined by the DBGBCR<br />

Debug Events<br />

For each BRP, the DBGBCR defines some conditions for generating a Breakpoint debug event, using the<br />

following register fields:<br />

Breakpoint enable<br />

Controls whether this BRP is enabled.<br />

Privileged mode control<br />

Controls whether this BRP defines a Breakpoint debug event that can occur:<br />

only in User mode<br />

only in a privileged mode<br />

only in User, System or Supervisor modes<br />

in any mode.<br />

Security state control<br />

If the processor implements the Security Extensions, this field controls whether this BRP<br />

defines a Breakpoint debug event that can occur only in Secure state, only in Non-secure<br />

state, or in either security state.<br />

For more information, including the differences in different versions of the Debug architecture, see<br />

Breakpoint Control Registers (DBGBCR) on page C10-49.<br />

When two BRPs are linked to define a single Breakpoint debug event, the BRP that defines the IVA<br />

comparison also defines the privileged mode control <strong>and</strong> security state control, see Additional conditions<br />

for linked BRPs on page C3-15 for more information.<br />

Other information in the DBGBCR<br />

In addition to defining these conditions for generating a Breakpoint debug event, the DBGBCR controls the<br />

following:<br />

The DBGBVR meaning field defines the breakpoint type. The following sections describe all of the<br />

breakpoint types:<br />

— IVA comparisons for Debug event generation on page C3-8<br />

— Context ID comparisons for Debug event generation on page C3-13.<br />

The Linked BRP number field specifies whether the BRP is linked to another BRP. If this BRP is<br />

linked, this field gives the number of the linked BRP. For more information see Additional conditions<br />

for linked BRPs on page C3-15.<br />

For an IVA comparison, the DBGBVR defines a word-aligned address, <strong>and</strong> the Byte address select<br />

field specifies the bytes in that word that comprise the breakpointed instruction, see IVA comparisons<br />

for Debug event generation on page C3-8.<br />

For an IVA comparison in v7 Debug, the Address range mask field optionally specifies a bitmask that<br />

defines the low-order bits of the IVA <strong>and</strong> DBGBVR values that are excluded from the comparison,<br />

see IVA comparisons for Debug event generation on page C3-8.<br />

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

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

Saved successfully!

Ooh no, something went wrong!