13.3.8. CP14 c80-c85, Breakpoint Control Registers (BCR)

These registers contain the necessary control bits for setting:

Table 13.10 lists the Breakpoint Control Registers and that the processor implements.

Table 13.10. Processor Breakpoint Control Registers

Binary addressRegister numberCP14 debug register nameAbbreviationContext ID capable?
Opcode_2CRm
b101b0000-b0011c80-c83Breakpoint Control Registers 0-3BCR0-3No
b0100-b0101c84-c85Breakpoint Control Registers 4-5BCR4-5Yes

Figure 13.6 shows the format of the Breakpoint Control Registers.

Figure 13.6. Breakpoint Control Registers, format


Table 13.11 lists the bit field definitions for the Breakpoint Control Registers.

Table 13.11. Breakpoint Control Registers, bit field definitions

BitsRead/write attributesReset valueDescription
[31:23]UNP/SBZP-Reserved.
[22:21]RW 00Meaning of BVR00 = IMVA Match.01 = Context ID Match.10 = IMVA Mis-match.11 = Reserved. If this breakpoint does not have Context ID capability, bit 21 is RAZ.
[20]RW-

Enable linking:

0 = Linking disabled

1 = Linking enabled.

When this bit is set HIGH, the corresponding BRP is linked. See Table 13.12 for details.

[19:16]RW-Linked BRP number. The binary number encoded here indicates another BRP to link this one with. If a BRP is linked with itself, it is architecturally Unpredictable if a breakpoint debug event is generated. For ARM1176JZF-S processors the breakpoint debug event is not generated.
[15:14]RW-

b00 = Breakpoint matches in Secure or Non-secure world.

b01 = Breakpoint only matches in Non-secure world.

b10 = Breakpoint only matches in Secure world.b11 = Reserved

If this BRP is programmed for context ID comparison and linking (BCR[22:20] is set b011), then the BCR[15:14] field of the IMVA-holding BRP takes precedence and it is Undefined whether this field is included in the comparison or not. Therefore, it must be set to b00.

The WCR[15:14] field of a WRP linked with this BRP also takes precedence over this field.

[13:9]UNP/SBZP-Reserved.
[8:5]RW-

Byte address select. The BVR is programmed with a word address. You can use this field to program the breakpoint so it matches only if certain byte addresses are accessed.

b0000 = The breakpoint never matches

bxxx1= If the byte at address {BVR[31:2], b00}+0 is accessed, the breakpoint matches

bxx1x = If the byte at address {BVR[31:2], b00}+1 is accessed, the breakpoint matches

bx1xx = If the byte at address {BVR[31:2], b00}+2 is accessed, the breakpoint matches

b1xxx = If the byte at address {BVR[31:2], b00}+3 is accessed, the breakpoint matches.

This field must be set to b1111 when this BRP is programmed for context ID comparison, that is BCR[22:20] set to b01x. Otherwise breakpoint or watchpoint debug events might not be generated as expected.

Note

These are little-endian byte addresses. This ensures that a breakpoint is triggered regardless of the endianness of the instruction fetch.

For example, if a breakpoint is set on a certain Thumb instruction by doing BCR[8:5] = b0011, it is triggered if in little-endian and IMVA[1:0] is b00 or if big-endian and IMVA[1:0] is b10.

[4:3]UNP/SBZP-Reserved
[2:1]RW-

Supervisor Access. The breakpoint can be conditioned to the privilege of the access being done:

b00 = Reserved

b01= Privileged

b10 = User

b11 = Either.

If this BRP is programmed for context ID comparison and linking, BCR[22:20] is set b011, then the BCR[2:1] field of the IMVA-holding BRP takes precedence and it is Undefined whether this field is included in the comparison or not. Therefore, it must be set to either.

The WCR[2:1] field of a WRP linked with this BRP also takes precedence over this field.

[0]RW0

Breakpoint enable:

0 = Breakpoint disabled

1 = Breakpoint enabled.


Table 13.12 summarizes the meaning of BCR bits [22:20].

Table 13.12. Meaning of BCR[22:20] bits

BCR[22:20]Meaning
b000The corresponding BVR is compared against the IMVA bus. This BRP is not linked with any other one. It generates a breakpoint debug event on an IMVA match.
b001The corresponding BVR is compared against the IMVA bus. This BRP is linked with the one indicated by BCR[19:16] linked BRP field. They generate a breakpoint debug event on a joint IMVA and context ID match.
b010The corresponding BVR is compared against CP15 Context Id Register, c13. This BRP is not linked with any other one. It generates a breakpoint debug event on a context ID match.
b011The corresponding BVR is compared against CP15 Context Id Register, c13. Another BRP, of the BCR[21:20]=b01 type, or WRP, with WCR[20]=b1, is linked with this BRP. They generate a breakpoint or watchpoint debug event on a joint IMVA or DMVA and context ID match.
b100The corresponding BVR is compared against the IMVA bus. This BRP is not linked with any other one. It generates a breakpoint debug event on an IMVA mismatch.
b101The corresponding BVR is compared against the IMVA bus. This BRP is linked with the one indicated by BCR[19:16] linked BRP field. They generate a breakpoint debug event on a joint IMVA mismatch and context ID match.
b110Reserved
b111Reserved

Note

  • The BCR[8:5], BCR[15:14], and BCR[2:1] fields still apply when a BRP is set for context ID comparison. See Setting breakpoints, watchpoints, and vector catch debug events for detailed programming sequences for linked breakpoints and linked watchpoints.

  • The BCR[8:5] field is treated as part of the compared address, For an IMVA mismatch the bits must be set to 1 for the corresponding byte lanes that are excluded from the breakpoint.

The following rules apply to the processor for breakpoint debug event generation:

Copyright © 2004-2009 ARM Limited. All rights reserved.ARM DDI 0301H
Non-Confidential