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.

Linked comparisons<br />

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

For linked comparisons, a comparison includes a Context ID match, defined by a BRP, with one or more<br />

address comparisons defined by other BRPs or WRPs linked to the Context ID match:<br />

Zero or more other BRPs, each programmed to define a linked IVA match.<br />

Zero or more other BRPs, each programmed to define a linked IVA mismatch.<br />

Note<br />

Linked IVA mismatch is not supported in v6 Debug.<br />

Zero or more WRPs, each programmed to define a linked DVA match.<br />

The Breakpoint or Watchpoint debug event is generated only if both:<br />

the Context ID match is true<br />

the IVA match or mismatch, or the DVA match, is true.<br />

In this description:<br />

BRPm is used to define the Context ID match.<br />

BRPn is configured to define a linked IVA match or mismatch, <strong>and</strong> is linked to BRPm<br />

WRPn is configured to define a linked DVA match, <strong>and</strong> is linked to BRPm<br />

If there are no BRPs <strong>and</strong> no WRPs linked to BRPm then BRPm cannot generate any debug events. The rest<br />

of this description assumes at least one BRP or WRP is linked to BRPm.<br />

To configure BRPm to define the Context ID match part of the linked Context ID matches:<br />

program DBGBVRm[31:0] with the Context ID to be matched<br />

program DBGBCRm[22:20] to 0b011, linked Context ID comparison<br />

generation of the debug events is UNPREDICTABLE unless all of these conditions are met:<br />

— DBGBCRm[19:16] is programmed to 0b0000<br />

— DBGBCRm[15:14] is programmed to 0b00<br />

— DBGBCRm[8:5] is programmed to 0b1111<br />

— DBGBCRm[2:1] is programmed to 0b11.<br />

To configure BRPn to define the IVA match or mismatch part of a linked Context ID match:<br />

program DBGBVRn[31:2] with the address for comparison, <strong>and</strong> DBGBVRn[1:0] to b00<br />

program DBGBCRn[22:20] to either:<br />

— 0b001, for linked IVA match<br />

— 0b101, for linked IVA mismatch, in v6.1 Debug or v7 Debug<br />

program DBGBCRn[19:16] to m, the number of the BRP that defines the Context ID match<br />

if required, program DBGBCRn[15:14,2:1] to include the state of the processor in the comparison.<br />

To configure WRPn to define the DVA match part of a linked Context ID match:<br />

program DBGWVRn[31:2] with the address for comparison, <strong>and</strong> DBGWVRn[1:0] to b00<br />

program DBGWCRn[20] to 1, to enable linking<br />

program DBGWCRn[19:16] to m, the number of the BRP that defines the Context ID match<br />

if required, program DBGWCRn[15:14,2:1] to include the state of the processor in the comparison.<br />

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

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

Saved successfully!

Ooh no, something went wrong!