09.12.2012 Views

Cortex-A8 Technical Reference Manual - ARM Information Center

Cortex-A8 Technical Reference Manual - ARM Information Center

Cortex-A8 Technical Reference Manual - ARM Information Center

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.

Bits Field Function<br />

[8:5] Byte address<br />

select<br />

Debug<br />

Byte address select. For breakpoints programmed to match an IVA, you must write a<br />

word-aligned address to the BVR. You can then use this field to program the breakpoint so<br />

it hits only if you access certain byte addresses.<br />

If you program the BRP for IVA match:<br />

b0000 = the breakpoint never hits<br />

b0011 = the breakpoint hits if any of the two bytes starting at address BVR & 0xFFFFFFFC +0<br />

is accessed<br />

b1100 = the breakpoint hits if any of the two bytes starting at address BVR & 0xFFFFFFFC +2<br />

is accessed<br />

b1111 = the breakpoint hits if any of the four bytes starting at address BVR & 0xFFFFFFFC +0<br />

is accessed.<br />

If you program the BRP for IVA mismatch, the breakpoint hits where the corresponding IVA<br />

breakpoint does not hit, that is, the range of addresses covered by an IVA mismatch<br />

breakpoint is the negative image of the corresponding IVA breakpoint.<br />

If you program the BRP for context ID comparison, this field must be set to b1111.<br />

Otherwise, breakpoint and watchpoint debug events might not be generated as expected.<br />

Note<br />

[4:3] - Reserved. RAZ, SBZP.<br />

Writing a value to BCR[8:5] where BCR[8] is not equal to BCR[7], or BCR[6] is not equal<br />

to BCR[5], has Unpredictable results.<br />

[2:1] S Supervisor access control. The breakpoint can be conditioned on the mode of the processor:<br />

b00 = User, System, or Supervisor<br />

b01 = privileged<br />

b10 = User<br />

b11 = any.<br />

[0] B Breakpoint enable:<br />

0 = breakpoint disabled, reset value<br />

1 = breakpoint enabled.<br />

a. If BCR[28:24] is not set to b00000, then BCR[8:5] must be set to b1111. Otherwise, the behavior is Unpredictable. In addition,<br />

if BCR[28:24] is not set to b00000, then the corresponding BVR bits that are not being included in the comparison<br />

Should-Be-Zero. Otherwise, the behavior is Unpredictable. If you program this BRP for context ID comparison, you must set<br />

this field to b00000. Otherwise, the behavior is Unpredictable. There is no encoding for a full 32-bit mask but you can achieve<br />

the same effect of a break anywhere breakpoint by setting BCR[22] to 1 and BCR[8:5] to b0000.<br />

BVR[22:20] Meaning<br />

Table 12-23 Breakpoint Control Registers bit functions (continued)<br />

Table 12-24 Meaning of BVR bits [22:20]<br />

b000 The corresponding BVR[31:2] is compared against the IVA bus and the state of the processor against this<br />

BCR. It generates a breakpoint debug event on a joint IVA and state match.<br />

b001 The corresponding BVR[31:2] is compared against the IVA bus and the state of the processor against this<br />

BCR. This BRP is linked with the one indicated by BCR[19:16] linked BRP field. They generate a<br />

breakpoint debug event on a joint IVA, context ID, and state match.<br />

b010 The corresponding BVR[31:0] is compared against CP15 Context ID Register, c13 and the state of the<br />

processor against this BCR. This BRP is not linked with any other one. It generates a breakpoint debug<br />

event on a joint context ID and state match. For this BRP, BCR[8:5] must be set to b1111. Otherwise, it<br />

is Unpredictable whether a breakpoint debug event is generated.<br />

<strong>ARM</strong> DDI 0344K Copyright © 2006-2010 <strong>ARM</strong> Limited. All rights reserved. 12-29<br />

ID060510 Non-Confidential

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

Saved successfully!

Ooh no, something went wrong!