Non-Confidential | ![]() | ARM 100095_0002_04_en | ||
| ||||
Home > Debug > AArch64 debug register descriptions > Debug Breakpoint Control Registers, EL1 |
n
_EL1characteristics are:n
_EL1 is associated
with DBGBCRn
_EL1to form BRPn
.n
for DBGBCRn
_EL1 is
0 to 5.
n
_EL1
by Exception level is:EL0 | EL1(NS) | EL1(S) | EL2 | EL3(SCR.NS = 1) | EL3(SCR.NS = 0) |
---|---|---|---|---|---|
- | RW | RW | RW | RW | RW |
n
_EL1
by condition code is:Off | DLK | OSLK | EDAD | SLK | Default |
---|---|---|---|---|---|
Error | Error | Error | Error | RO | RW |
n
_EL1 is Common to Secure
and Non-secure states and architecturally mapped to:n
registers.n
_EL1 registers.n
_EL1
is UNKNOWN.n
_EL1bit assignments.n
_EL1
bit assignments.Table 10-4 DBGBCRn_EL1 bit assignments
Bits | Name | Function | ||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
[31:24] | - | Reserved, RES0.
|
||||||||||||||||||||||||||||||||||
[23:20] | BT | Breakpoint Type. This field controls
the behavior of Breakpoint debug event generation. This includes
the meaning of the value held in the associated DBGBVR, indicating
whether it is an instruction address match or mismatch or a Context
match. It also controls whether the breakpoint is linked to another
breakpoint. The possible values are:
All
other values are reserved.
The field break down is:
|
||||||||||||||||||||||||||||||||||
[19:16] | LBN | Linked breakpoint number. For Linked
address matching breakpoints, this specifies the index of the Context-matching
breakpoint linked to.
|
||||||||||||||||||||||||||||||||||
[15:14] | SSC | Security State Control. Determines the Security
states that a breakpoint debug event for breakpoint
n is
generated. This field must be interpreted along with the AMC and
PMC fields.This field is used with the Higher
Mode Control (HMC), and Privileged Mode Control (PMC),
fields to determine the mode and Security states that can be tested.
See
the ARM® Architecture Reference
Manual ARMv8 for possible values of the fields.
|
||||||||||||||||||||||||||||||||||
[13] | HMC | Hyp Mode Control bit. Determines the
debug perspective for deciding when a breakpoint debug event for breakpoint
n is
generated. This bit must be interpreted along with the SSC and PMC
fields.This bit is used with the SSC and PMC fields
to determine the mode and Security states that can be tested.
See
the ARM® Architecture Reference
Manual ARMv8 for possible values of the fields.
|
||||||||||||||||||||||||||||||||||
[12:9] | - | Reserved, RES0. | ||||||||||||||||||||||||||||||||||
[8:5] | BASa | Byte Address Select. Defines which halfwords
a regular breakpoint matches, regardless of the instruction set
and Execution state. A debugger must program this field as follows:
All
other values are reserved.
NoteARMv8 does not support direct execution of Java bytecodes. BAS[3] and BAS[1] ignore writes and on reads return the values of BAS[2] and BAS[0] respectively. |
||||||||||||||||||||||||||||||||||
[4:3] | - | Reserved, RES0. | ||||||||||||||||||||||||||||||||||
[2:1] | PMC | Privileged Mode Control. Determines the Exception
level or levels that a breakpoint debug event for breakpoint
n is
generated. This field must be interpreted along with the SSC and
AMC fields.This field is used with the SSC and HMC
fields to determine the mode and Security states that can be tested.
See
the ARM® Architecture Reference
Manual ARMv8 for possible values of the fields.
NoteBits[2:1] has no effect for accesses made in Hyp mode. |
||||||||||||||||||||||||||||||||||
[0] | E | Enable breakpoint. This bit enables the
BRP:
A
BRP never generates a Breakpoint debug event when it is disabled.
NoteThe value of DBGBCR.E is UNKNOWN on reset. A debugger must ensure that DBGBCR.E has a defined value before it programs DBGDSCR.MDBGen and DBGDSCR.HDBGen to enable debug. |
n
_EL1 in AArch64 state, read
or write the register with:MRS <Xt>, DBGBCRn
_EL1; Read Debug Breakpoint Control Registern
MSR DBGBCRn
_EL1, <Xt>; Write Debug Breakpoint Control Registern
n
in AArch32 state, read
or write the CP14 register with:MRC p14, 0, <Rt>, c0, cn, 4; Read Debug Breakpoint Control Registern
MCR p14, 0, <Rt>, c0, cn, 4; Write Debug Breakpoint Control Registern
n
_EL1 can be accessed through the internal
memory-mapped interface and the external debug interface, offset 0x4n8
.