This forum was built by humans, for humans. AI was used exclusively for security auditing. The forum officially launched on November 24, 2026. Read more

romdump.net
romdump.net › Forum › Silicon & Architectures › External debug and trace register pages: part 1 of 22

Writeup External debug and trace register pages: part 1 of 22

started by admin

admin admin admingod mode Posts 116
Rep 505
Joined Nov 2026
2d ago (edited) OP #80

Archived Arm source pages for the External debug and trace register pages. Part 1 of 22. This part covers DBGAUTHSTATUS_EL1 through DBGWCR_EL1, n = 0 to 63.

DBGAUTHSTATUS_EL1

Debug Authentication Status Register

Provides information about the state of the IMPLEMENTATION DEFINED authentication interface for debug.

Configuration

External register DBGAUTHSTATUS_EL1 bits [31:0] are architecturally mapped to AArch64 System register DBGAUTHSTATUS_EL1[31:0].

External register DBGAUTHSTATUS_EL1 bits [31:0] are architecturally mapped to AArch32 System register DBGAUTHSTATUS[31:0].

When FEAT_DoPD is implemented, DBGAUTHSTATUS_EL1 is in the Core power domain. Otherwise, DBGAUTHSTATUS_EL1 is in the Debug power domain.

Attributes

DBGAUTHSTATUS_EL1 is a 32-bit register.

Field descriptions

313029282726252423222120191817161514131211109876543210
RES0RTNIDRTIDRES0RLNIDRLIDRES0SNIDSIDNSNIDNSID

Bits [31:28]:

Reserved, RES0.

RTNID, bits [27:26]:

Root non-invasive debug.

This field has the same value as DBGAUTHSTATUS_EL1.RTID.

RTID, bits [25:24]:

Root invasive debug.

RTIDMeaning
0b00Not implemented.
0b10Implemented and disabled. ExternalRootInvasiveDebugEnabled() == FALSE.
0b11Implemented and enabled. ExternalRootInvasiveDebugEnabled() == TRUE.

All other values are reserved.

If FEAT_RME is not implemented, the only permitted value is 0b00.

Bits [23:16]:

Reserved, RES0.

RLNID, bits [15:14]:

Realm non-invasive debug.

This field has the same value as DBGAUTHSTATUS_EL1.RLID.

RLID, bits [13:12]:

Realm invasive debug.

RLIDMeaning
0b00Not implemented.
0b10Implemented and disabled. ExternalRealmInvasiveDebugEnabled() == FALSE.
0b11Implemented and enabled. ExternalRealmInvasiveDebugEnabled() == TRUE.

All other values are reserved.

If FEAT_RME is not implemented, the only permitted value is 0b00.

Bits [11:8]:

Reserved, RES0.

SNID, bits [7:6] when FEAT_Debugv8p4 is implemented:

Secure non-invasive debug.

This field has the same value as DBGAUTHSTATUS_EL1.SID.

Otherwise:

Secure non-invasive debug.

SNIDMeaning
0b00Secure state is not implemented.
0b10Implemented and disabled. ExternalSecureNoninvasiveDebugEnabled() == FALSE.
0b11Implemented and enabled. ExternalSecureNoninvasiveDebugEnabled() == TRUE.

All other values are reserved.

SID, bits [5:4]:

Secure invasive debug.

SIDMeaning
0b00Secure state is not implemented.
0b10Implemented and disabled. ExternalSecureInvasiveDebugEnabled() == FALSE.
0b11Implemented and enabled. ExternalSecureInvasiveDebugEnabled() == TRUE.

All other values are reserved.

NSNID, bits [3:2] when FEAT_Debugv8p4 is implemented:

Non-secure non-invasive debug.

NSNIDMeaning
0b00Non-secure state is not implemented.
0b11Implemented and enabled. ExternalNoninvasiveDebugEnabled() == TRUE.

All other values are reserved.

Otherwise:

Non-secure non-invasive debug.

NSNIDMeaning
0b00Non-secure state is not implemented.
0b10Implemented and disabled. ExternalNoninvasiveDebugEnabled() == FALSE.
0b11Implemented and enabled. ExternalNoninvasiveDebugEnabled() == TRUE.

All other values are reserved.

NSID, bits [1:0]:

Non-secure invasive debug.

NSIDMeaning
0b00Non-secure state is not implemented.
0b10Implemented and disabled. ExternalInvasiveDebugEnabled() == FALSE.
0b11Implemented and enabled. ExternalInvasiveDebugEnabled() == TRUE.

All other values are reserved.

Accessing DBGAUTHSTATUS_EL1

DBGAUTHSTATUS_EL1 can be accessed through the external debug interface:

ComponentOffsetInstance
Debug0xFB8DBGAUTHSTATUS_EL1

Accessible as follows:

  • When FEAT_DoPD is implemented and !IsCorePowered(), accesses to this register generate an error response.
  • Otherwise, accesses to this register are RO.

DBGBCR<n>_EL1, n = 0, 63

Debug Breakpoint Control Registers

Holds control information for a breakpoint. Forms breakpoint n together with value register DBGBVR<n>_EL1.

Configuration

External register DBGBCR<n>_EL1 bits [31:0] are architecturally mapped to AArch64 System register DBGBCR<n>_EL1[31:0].

External register DBGBCR<n>_EL1 bits [63:32] are architecturally mapped to AArch64 System register DBGBCR<n>_EL1[63:32] when FEAT_Debugv8p9 is implemented.

External register DBGBCR<n>_EL1 bits [31:0] are architecturally mapped to AArch32 System register DBGBCR<n>[31:0].

DBGBCR<n>_EL1 is in the Core power domain.

If breakpoint n is not implemented, then accesses to this register are:

  • RES0 when IsCorePowered() && !DoubleLockStatus() && !OSLockStatus() && AllowExternalDebugAccess().
  • A CONSTRAINED UNPREDICTABLE choice of RES0 or ERROR otherwise.

Attributes

DBGBCR<n>_EL1 is a 64-bit register.

Field descriptions

6362616059585756555453525150494847464544434241403938373635343332
313029282726252423222120191817161514131211109876543210
RES0
LBNXSSCEMASKBTLBNSSCHMCRES0BASRES0BT2PMCE

When the E field is zero, all the other fields in the register are ignored.

Bits [63:32]:

Reserved, RES0.

LBNX, bits [31:30] when FEAT_Debugv8p9 is implemented:

Linked Breakpoint Number.

For Linked address matching breakpoints, with DBGBCR<n>_EL1.LBN, specifies the index of the breakpoint linked to.

For all other breakpoint types, this field is ignored and reads of the register return an UNKNOWN value.

This field extends DBGBCR<n>_EL1.LBN to support up to 64 implemented breakpoints.

The reset behavior of this field is:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

Otherwise:

Reserved, RES0.

SSCE, bit [29] when FEAT_RME is implemented:

Security State Control Extended.

The fields that indicate when the breakpoint can be generated are: HMC, PMC, SSC, and SSCE. These fields must be considered in combination, and the values that are permitted for these fields are constrained.

The reset behavior of this field is:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

Otherwise:

Reserved, RES0.

MASK, bits [28:24] when FEAT_BWE is implemented:

Address Mask. Only address ranges up to 2GB can be watched using a single mask.

MASKMeaning
0b00000No mask.
0b00011..0b11111Number of address bits masked.

All other values are reserved.

Indicates the number of masked address bits, from 0b00011 masking 3 address bits (0x00000007 mask for address) to 0b11111 masking 31 address bits (0x7FFFFFFF mask for address).

If any of the following apply, then the behavior of the breakpoint is CONSTRAINED UNPREDICTABLE:

  • DBGBCR<n>_EL1.MASK is a reserved value.

  • DBGBCR<n>_EL1.MASK is zero, DBGBCR<n>_EL1.{BT2, BT} is {0, 0b010x} (address mismatch breakpoint without linking enabled), and AArch32 is not supported at EL1. DBGBCR<n>_EL1.MASK is a valid nonzero value and any of the following apply:

    • DBGBCR<n>_EL1.BAS is not 0b1111, and AArch32 is supported at EL0.
    • DBGBVR<n>_EL1[(MASK-1):0] is nonzero.
    • DBGBCR<n>_EL1.{BT2, BT} is {0, 0b0x1x} or {0, 0b1xxx} (Context matching breakpoint). When any of these conditions apply, the breakpoint behaves as if one of the following:
  • DBGBCR<n>_EL1.MASK has been programmed with a defined value, which might be 0b00000 (no mask), other than for a direct read of DBGBCR<n>_EL1.

  • The breakpoint is disabled. The reset behavior of this field is:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

Otherwise:

Reserved, RES0.

BT, bits [23:20]:

Breakpoint Type.

With DBGBCR<n>_EL1.BT2 when implemented, specifies breakpoint type.

BTMeaningApplies when
0b0000Unlinked instruction address match. DBGBVR<n>_EL1 is the address of an instruction.
0b0001Linked instruction address match. As 0b0000, but linked to a breakpoint that has linking enabled.
0b0010Unlinked Context ID match. If the Effective value of HCR_EL2.E2H is 1 and either the PE is executing at EL0 with HCR_EL2.TGE set to 1 or the PE is executing at EL2, then DBGBVR<n>_EL1.ContextID is compared against CONTEXTIDR_EL2. Otherwise, DBGBVR<n>_EL1.ContextID is compared against CONTEXTIDR_EL1.When breakpoint n is context-aware
0b0011As 0b0010, with linking enabled.When breakpoint n is context-aware
0b0100Unlinked instruction address mismatch. DBGBVR<n>_EL1 is the address of an instruction.When FEAT_BWE is implemented or EL1 is using AArch32
0b0101Linked instruction address mismatch. As 0b0100, but linked to a breakpoint that has linking enabled.When FEAT_BWE is implemented or EL1 is using AArch32
0b0110Unlinked CONTEXTIDR_EL1 match. DBGBVR<n>_EL1.ContextID is a Context ID compared against CONTEXTIDR_EL1.When EL2 is implemented, FEAT_Debugv8p1 is implemented, and breakpoint n is context-aware
0b0111As 0b0110, with linking enabled.When EL2 is implemented, FEAT_Debugv8p1 is implemented, and breakpoint n is context-aware
0b1000Unlinked VMID match. DBGBVR<n>_EL1.VMID is a VMID compared against VTTBR_EL2.VMID.When EL2 is implemented and breakpoint n is context-aware
0b1001As 0b1000, with linking enabled.When EL2 is implemented and breakpoint n is context-aware
0b1010Unlinked VMID and Context ID match. DBGBVR<n>_EL1.ContextID is a Context ID compared against CONTEXTIDR_EL1, and DBGBVR<n>_EL1.VMID is a VMID compared against VTTBR_EL2.VMID.When EL2 is implemented and breakpoint n is context-aware
0b1011As 0b1010, with linking enabled.When EL2 is implemented and breakpoint n is context-aware
0b1100Unlinked CONTEXTIDR_EL2 match. DBGBVR<n>_EL1.ContextID2 is a Context ID compared against CONTEXTIDR_EL2.When EL2 is implemented, FEAT_Debugv8p1 is implemented, and breakpoint n is context-aware
0b1101As 0b1100, with linking enabled.When EL2 is implemented, FEAT_Debugv8p1 is implemented, and breakpoint n is context-aware
0b1110Unlinked Full Context ID match. DBGBVR<n>_EL1.ContextID is compared against CONTEXTIDR_EL1, and DBGBVR<n>_EL1.ContextID2 is compared against CONTEXTIDR_EL2.When EL2 is implemented, FEAT_Debugv8p1 is implemented, and breakpoint n is context-aware
0b1111As 0b1110, with linking enabled.When EL2 is implemented, FEAT_Debugv8p1 is implemented, and breakpoint n is context-aware

The reset behavior of this field is:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

LBN, bits [19:16]:

Linked Breakpoint Number.

For Linked address matching breakpoints, with DBGBCR<n>_EL1.LBNX when implemented, specifies the index of the breakpoint linked to.

For all other breakpoint types, this field is ignored and reads of the register return an UNKNOWN value.

The reset behavior of this field is:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

SSC, bits [15:14]:

Security state control. Determines the Security states under which a Breakpoint debug event for breakpoint n is generated. This field must be interpreted along with the HMC and PMC fields, and there are constraints on the permitted values of the {HMC, SSC, PMC} fields. For more information, including the effect of programming the fields to a reserved set of values, see 'Reserved DBGBCR<n>_EL1.{SSC, HMC, PMC} values'.

For more information on the operation of the SSC, HMC, and PMC fields, see 'Execution conditions for which a breakpoint generates Breakpoint exceptions'.

The reset behavior of this field is:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

HMC, bit [13]:

Higher mode control. Determines the debug perspective for deciding when a Breakpoint debug event for breakpoint n is generated. This field must be interpreted along with the SSC and PMC fields, and there are constraints on the permitted values of the {HMC, SSC, PMC} fields. For more information see DBGBCR<n>_EL1.SSC description.

For more information on the operation of the SSC, HMC, and PMC fields, see 'Execution conditions for which a breakpoint generates Breakpoint exceptions'.

The reset behavior of this field is:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

Bits [12:9]:

Reserved, RES0.

BAS, bits [8:5] when FEAT_AA32 is implemented:

Byte address select. Defines which halfwords an address-matching breakpoint matches, regardless of the instruction set and Execution state.

The permitted values depend on the breakpoint type.

For Address match breakpoints in either AArch32 or AArch64 state, the permitted values are:

BASMatch instruction atConstraint for debuggers
0b0011DBGBVR<n>_EL1Use for T32 instructions.
0b1100DBGBVR<n>_EL1 + 2Use for T32 instructions.
0b1111DBGBVR<n>_EL1Use for A64 and A32 instructions.

All other values are reserved.

For more information, see 'Using the BAS field in Address Match breakpoints'.

For Address mismatch breakpoints in an AArch32 stage 1 translation regime, the permitted values are:

BASMatch instruction atConstraint for debuggers
0b0000,Use for a match anywhere breakpoint.
0b0011DBGBVR<n>_EL1Use for stepping T32 instructions.
0b1100DBGBVR<n>_EL1 + 2Use for stepping T32 instructions.
0b1111DBGBVR<n>_EL1Use for stepping A64 and A32 instructions.

All other values are reserved.

For more information, see 'Using the BAS field in Address Match breakpoints'.

For Context matching breakpoints, this field is RES1 and ignored.

The reset behavior of this field is:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

Otherwise:

Reserved, RES1.

Bit [4]:

Reserved, RES0.

BT2, bit [3] when FEAT_ABLE is implemented and breakpoint n supports address breakpoint linking:

Breakpoint Type 2. With DBGBCR<n>_EL1.BT, specifies breakpoint type.

BT2Meaning
0b0As DBGBCR<n>_EL1.BT.
0b1As DBGBCR<n>_EL1.BT, but with linking enabled. This value is only defined for the following DBGBCR<n>_EL1.BT values: 0b0000, 0b0001, 0b0100, and 0b0101. All other values are reserved.

The reset behavior of this field is:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

Otherwise:

Reserved, RES0.

PMC, bits [2:1]:

Privilege mode control. Determines the Exception level or levels at which a Breakpoint debug event for breakpoint n is generated. This field must be interpreted along with the SSC and HMC fields, and there are constraints on the permitted values of the {HMC, SSC, PMC} fields. For more information see the DBGBCR<n>_EL1.SSC description.

For more information on the operation of the SSC, HMC, and PMC fields, see 'Execution conditions for which a breakpoint generates Breakpoint exceptions'.

The reset behavior of this field is:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

E, bit [0]:

Enable breakpoint n.

EMeaning
0b0Breakpoint n disabled.
0b1Breakpoint n enabled.

This field is ignored by the PE and treated as zero when all of the following are true:

Any of the following are true:

  • HaltOnBreakpointOrWatchpoint() is FALSE and the Effective value of MDSCR_EL1.EMBWE is 0.

  • HaltOnBreakpointOrWatchpoint() is TRUE and the Effective value of EDSCR2.EHBWE is 0.

  • FEAT_Debugv8p9 is implemented.

  • n >= 16. The reset behavior of this field is:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

Accessing DBGBCR<n>_EL1

When FEAT_Debugv8p9 is not implemented, this register is 32-bits wide and offset 0x40C + (16 * n) is reserved.

DBGBCR<n>_EL1 can be accessed through the external debug interface:

ComponentOffsetInstance
Debug0x408 + (16 * n)DBGBCR<n>_EL1

Accessible as follows:

  • When DoubleLockStatus(), or !IsCorePowered(), or OSLockStatus(), or !AllowExternalDebugAccess(addrdesc), accesses to this register generate an error response.
  • When SoftwareLockStatus(addrdesc), accesses to this register are RO.
  • Otherwise, accesses to this register are RW.

DBGBVR<n>_EL1, n = 0, 63

Debug Breakpoint Value Registers

Holds a virtual address, or a VMID and/or a context ID, for use in breakpoint matching. Forms breakpoint n together with control register DBGBCR<n>_EL1.

Configuration

External register DBGBVR<n>_EL1 bits [63:0] are architecturally mapped to AArch64 System register DBGBVR<n>_EL1[63:0].

External register DBGBVR<n>_EL1 bits [31:0] are architecturally mapped to AArch32 System register DBGBVR<n>[31:0].

External register DBGBVR<n>_EL1 bits [63:32] are architecturally mapped to AArch32 System register DBGBXVR<n>[31:0].

DBGBVR<n>_EL1 is in the Core power domain.

How this register is interpreted depends on the value of DBGBCR<n>_EL1.BT.

  • When DBGBCR<n>_EL1.BT is 0b000x or 0b010x, this register holds a virtual address.
  • When DBGBCR<n>_EL1.BT is 0b001x, 0b011x, or 0b110x, this register holds a Context ID.
  • When DBGBCR<n>_EL1.BT is 0b100x, this register holds a VMID.
  • When DBGBCR<n>_EL1.BT is 0b101x, this register holds a VMID and a Context ID.
  • When DBGBCR<n>_EL1.BT is 0b111x, this register holds two Context ID values. For other values of DBGBCR<n>_EL1.BT, this register is RES0.

If breakpoint n is not implemented, then accesses to this register are:

  • RES0 when IsCorePowered() && !DoubleLockStatus() && !OSLockStatus() && AllowExternalDebugAccess().
  • A CONSTRAINED UNPREDICTABLE choice of RES0 or ERROR otherwise.

Attributes

DBGBVR<n>_EL1 is a 64-bit register.

Field descriptions

When DBGBCR<n>_EL1.BT IN {'000x'} or ((FEAT_BWE is implemented or EL1 is using AArch32) and DBGBCR<n>_EL1.BT IN {'010x'}):

6362616059585756555453525150494847464544434241403938373635343332
313029282726252423222120191817161514131211109876543210
RESS[14:8]Bits[56:53]Bits[52:49]VA[48:2]
VA[48:2]RES0

RESS[14:8], bits [63:57]:

Reserved, Sign extended. Software must treat this field as RES0 if the most significant bit of VA is 0 or RES0, and as RES1 if the most significant bit of VA is 1.

Hardware always ignores the value of these bits and it is IMPLEMENTATION DEFINED whether:

  • The bits are hardwired to a copy of the most significant bit of VA, meaning writes to these bits are ignored, and reads to the bits always return the hardwired value.
  • The value in those bits can be written, and reads will return the last value written. The value held in those bits is ignored by hardware.

Bits[56:53] when FEAT_LVA3 is implemented:

VA[56:53], bits [3:0] of bits [56:53]

Extension to VA[48:2]. For more information, see VA[48:2].

The reset behavior of this field is:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

Otherwise:

RESS[7:4], bits [3:0] of bits [56:53]

Extension to RESS[14:8]. For more information, see RESS[14:8].

Bits[52:49] when FEAT_LVA is implemented:

VA[52:49], bits [3:0] of bits [52:49]

Extension to VA[48:2]. For more information, see VA[48:2].

The reset behavior of this field is:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

Otherwise:

RESS[3:0], bits [3:0] of bits [52:49]

Extension to RESS[14:8]. For more information, see RESS[14:8].

VA[48:2], bits [48:2]:

If the address is being matched in an AArch64 stage 1 translation regime:

  • This field contains bits[48:2] of the address for comparison.
  • When FEAT_LVA3 is implemented, (VA[56:53]:VA[52:49]) forms the upper part of the address value. If FEAT_LVA3 is not implemented, bits VA[56:53] are part of the RESS field.
  • When FEAT_LVA is implemented, VA[52:49] forms the upper part of the address value. If FEAT_LVA is not implemented, bits [52:49] are part of the RESS field. If the address is being matched in an AArch32 stage 1 translation regime, the first 20 bits of this field are RES0, and the rest of the field contains bits[31:2] of the address for comparison.

The reset behavior of this field is:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

Bits [1:0]:

Reserved, RES0.

When DBGBCR<n>_EL1.BT IN {'001x'}:

6362616059585756555453525150494847464544434241403938373635343332
313029282726252423222120191817161514131211109876543210
RES0
ContextID

Bits [63:32]:

Reserved, RES0.

ContextID, bits [31:0]:

Context ID value for comparison.

The value is compared against CONTEXTIDR_EL2 when the Effective value of HCR_EL2.E2H is 1, and either:

  • The PE is executing at EL2.
  • HCR_EL2.TGE is 1, the PE is executing at EL0, and EL2 is enabled in the current Security state. Otherwise, the value is compared against the following:

CONTEXTIDR when the PE is executing at AArch32.

CONTEXTIDR_EL1 when the PE is executing at AArch64.

The reset behavior of this field is:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

When DBGBCR<n>_EL1.BT IN {'011x'}, EL2 is implemented, and FEAT_Debugv8p1 is implemented:

6362616059585756555453525150494847464544434241403938373635343332
313029282726252423222120191817161514131211109876543210
RES0
ContextID

Bits [63:32]:

Reserved, RES0.

ContextID, bits [31:0]:

Context ID value for comparison against CONTEXTIDR_EL1.

The reset behavior of this field is:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

When DBGBCR<n>_EL1.BT IN {'100x'} and EL2 is implemented:

6362616059585756555453525150494847464544434241403938373635343332
313029282726252423222120191817161514131211109876543210
RES0VMID[15:8]VMID[7:0]
RES0

Bits [63:48]:

Reserved, RES0.

VMID[15:8], bits [47:40] when FEAT_VMID16 is implemented and VTCR_EL2.VS == '1':

Extension to VMID[7:0]. For more information, see DBGBVR<n>_EL1.VMID[7:0].

If EL2 is using AArch32, this field is RES0.

The reset behavior of this field is:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

Otherwise:

Reserved, RES0.

VMID[7:0], bits [39:32]:

VMID value for comparison.

The VMID is 8 bits when any of the following are true:

  • EL2 is using AArch32.

  • VTCR_EL2.VS is 0.

  • FEAT_VMID16 is not implemented. The reset behavior of this field is:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

Bits [31:0]:

Reserved, RES0.

When DBGBCR<n>_EL1.BT IN {'101x'} and EL2 is implemented:

6362616059585756555453525150494847464544434241403938373635343332
313029282726252423222120191817161514131211109876543210
RES0VMID[15:8]VMID[7:0]
ContextID

Bits [63:48]:

Reserved, RES0.

VMID[15:8], bits [47:40] when FEAT_VMID16 is implemented and VTCR_EL2.VS == '1':

Extension to VMID[7:0]. For more information, see DBGBVR<n>_EL1.VMID[7:0].

If EL2 is using AArch32, or if the implementation has an 8-bit VMID, this field is RES0.

The reset behavior of this field is:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

Otherwise:

Reserved, RES0.

VMID[7:0], bits [39:32]:

VMID value for comparison.

The VMID is 8 bits when any of the following are true:

  • EL2 is using AArch32.

  • VTCR_EL2.VS is 0.

  • FEAT_VMID16 is not implemented. The reset behavior of this field is:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

ContextID, bits [31:0]:

Context ID value for comparison against CONTEXTIDR_EL1.

The reset behavior of this field is:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

When DBGBCR<n>_EL1.BT IN {'110x'}, EL2 is implemented, and FEAT_Debugv8p1 is implemented:

6362616059585756555453525150494847464544434241403938373635343332
313029282726252423222120191817161514131211109876543210
ContextID2
RES0

ContextID2, bits [63:32]:

Context ID value for comparison against CONTEXTIDR_EL2.

The reset behavior of this field is:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

Bits [31:0]:

Reserved, RES0.

When DBGBCR<n>_EL1.BT IN {'111x'}, EL2 is implemented, and FEAT_Debugv8p1 is implemented:

6362616059585756555453525150494847464544434241403938373635343332
313029282726252423222120191817161514131211109876543210
ContextID2
ContextID

ContextID2, bits [63:32]:

Context ID value for comparison against CONTEXTIDR_EL2.

The reset behavior of this field is:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

ContextID, bits [31:0]:

Context ID value for comparison against CONTEXTIDR_EL1.

The reset behavior of this field is:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

Accessing DBGBVR<n>_EL1

DBGBVR<n>_EL1 can be accessed through the external debug interface:

| Component | Offset | Instance | Range | | Debug | 0x400 + (16 * n) | DBGBVR<n>_EL1 | 63:0 |

Accessible as follows:

  • When DoubleLockStatus(), or !IsCorePowered(), or OSLockStatus(), or !AllowExternalDebugAccess(addrdesc), accesses to this register generate an error response.
  • When SoftwareLockStatus(addrdesc), accesses to this register are RO.
  • Otherwise, accesses to this register are RW.

DBGCLAIMCLR_EL1

Debug CLAIM Tag Clear Register

Used by software to read the values of the CLAIM tag bits, and to clear CLAIM tag bits to 0.

The architecture does not define any functionality for the CLAIM tag bits.

CLAIM tags are typically used for communication between the debugger and target software.

Used in conjunction with the DBGCLAIMSET_EL1 register.

Configuration

External register DBGCLAIMCLR_EL1 bits [31:0] are architecturally mapped to AArch64 System register DBGCLAIMCLR_EL1[31:0].

External register DBGCLAIMCLR_EL1 bits [31:0] are architecturally mapped to AArch64 System register DBGCLAIMSET_EL1[31:0].

External register DBGCLAIMCLR_EL1 bits [31:0] are architecturally mapped to AArch32 System register DBGCLAIMCLR[31:0].

External register DBGCLAIMCLR_EL1 bits [31:0] are architecturally mapped to AArch32 System register DBGCLAIMSET[31:0].

External register DBGCLAIMCLR_EL1 bits [31:0] are architecturally mapped to External register DBGCLAIMSET_EL1[31:0].

DBGCLAIMCLR_EL1 is in the Core power domain.

An implementation must include eight CLAIM tag bits.

Attributes

DBGCLAIMCLR_EL1 is a 32-bit register.

Field descriptions

313029282726252423222120191817161514131211109876543210
RAZ/WICLAIM7CLAIM6CLAIM5CLAIM4CLAIM3CLAIM2CLAIM1CLAIM0

Bits [31:8]:

Reserved, RAZ/WI.

CLAIM<m>, bit [m], for m = 7 to 0:

Claim Tag Clear. Indicates the current status of Claim Tag bit <m>, and is used to clear Claim Tag bit <m> to 0.

CLAIM<m>Meaning
0b0On a read: Claim Tag bit <m> is not set. On a write: Ignored.
0b1On a read: Claim Tag bit <m> is set. On a write: Clear Claim tag bit <m> to 0.

The reset behavior of this field is:

  • On a Cold reset, this field resets to '0'. Access to this field is W1C.

Accessing DBGCLAIMCLR_EL1

DBGCLAIMCLR_EL1 can be accessed through the external debug interface:

ComponentOffsetInstance
Debug0xFA4DBGCLAIMCLR_EL1

Accessible as follows:

  • When DoubleLockStatus(), or !IsCorePowered(), or OSLockStatus(), accesses to this register generate an error response.
  • When SoftwareLockStatus(addrdesc), accesses to this register are RO.
  • Otherwise, accesses to this register are RW.

DBGCLAIMSET_EL1

Debug CLAIM Tag Set Register

Used by software to set the CLAIM tag bits to 1.

The architecture does not define any functionality for the CLAIM tag bits.

CLAIM tags are typically used for communication between the debugger and target software.

Used in conjunction with the DBGCLAIMCLR_EL1 register.

Configuration

External register DBGCLAIMSET_EL1 bits [31:0] are architecturally mapped to AArch64 System register DBGCLAIMSET_EL1[31:0].

External register DBGCLAIMSET_EL1 bits [31:0] are architecturally mapped to AArch64 System register DBGCLAIMCLR_EL1[31:0].

External register DBGCLAIMSET_EL1 bits [31:0] are architecturally mapped to AArch32 System register DBGCLAIMSET[31:0].

External register DBGCLAIMSET_EL1 bits [31:0] are architecturally mapped to AArch32 System register DBGCLAIMCLR[31:0].

External register DBGCLAIMSET_EL1 bits [31:0] are architecturally mapped to External register DBGCLAIMCLR_EL1[31:0].

DBGCLAIMSET_EL1 is in the Core power domain.

An implementation must include eight CLAIM tag bits.

Attributes

DBGCLAIMSET_EL1 is a 32-bit register.

Field descriptions

313029282726252423222120191817161514131211109876543210
RAZ/WICLAIM7CLAIM6CLAIM5CLAIM4CLAIM3CLAIM2CLAIM1CLAIM0

Bits [31:8]:

Reserved, RAZ/WI.

CLAIM<m>, bit [m], for m = 7 to 0:

Claim Tag Set. Used to set Claim Tag bit <m> to 1.

CLAIM<m>Meaning
0b0On a write: Ignored.
0b1On a write: Set Claim Tag bit <m> to 1.

Access to this field is RAO/W1S.

Accessing DBGCLAIMSET_EL1

DBGCLAIMSET_EL1 can be accessed through the external debug interface:

ComponentOffsetInstance
Debug0xFA0DBGCLAIMSET_EL1

Accessible as follows:

  • When DoubleLockStatus(), or !IsCorePowered(), or OSLockStatus(), accesses to this register generate an error response.
  • When SoftwareLockStatus(addrdesc), accesses to this register are RO.
  • Otherwise, accesses to this register are RW.

DBGDTRRX_EL0

Debug Data Transfer Register, Receive

Transfers data from an external debugger to the PE. For example, it is used by a debugger transferring commands and data to a debug target. See DBGDTR_EL0 for additional architectural mappings. It is a component of the Debug Communications Channel.

Configuration

External register DBGDTRRX_EL0 bits [31:0] are architecturally mapped to AArch64 System register DBGDTRRX_EL0[31:0].

External register DBGDTRRX_EL0 bits [31:0] are architecturally mapped to AArch32 System register DBGDTRRXint[31:0].

DBGDTRRX_EL0 is in the Core power domain.

Attributes

DBGDTRRX_EL0 is a 32-bit register.

Field descriptions

313029282726252423222120191817161514131211109876543210
DTRRX

DTRRX, bits [31:0]:

Update DTRRX.

Writes to this register:

If RXfull is 0, update the value in DTRRX and set RXfull to 1.

If RXfull is 1, the written value is ignored and RXO is set to 1.

Reads of this register return the last value written to DTRRX and do not change RXfull.

For the full behavior of the Debug Communications Channel, see 'The Debug Communication Channel and Instruction Transfer Register'.

The reset behavior of this field is:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

Accessing DBGDTRRX_EL0

If EDSCR.ITE == 0 when the PE exits Debug state on receiving a Restart request trigger event, the behavior of any operation issued by a DTR access in Memory access mode that has not completed execution is CONSTRAINED UNPREDICTABLE, and must do one of the following:

  • It must complete execution in Debug state before the PE executes the restart sequence.
  • It must complete execution in Non-debug state before the PE executes the restart sequence.
  • It must be abandoned. This means that the instruction does not execute. Any registers or memory accessed by the instruction are left in an UNKNOWN state.

DBGDTRRX_EL0 can be accessed through the external debug interface:

ComponentOffsetInstance
Debug0x080DBGDTRRX_EL0

Accessible as follows:

  • When DoubleLockStatus(), or !IsCorePowered(), or OSLockStatus(), accesses to this register generate an error response.
  • When SoftwareLockStatus(addrdesc), accesses to this register are RO.
  • Otherwise, accesses to this register are RW.

DBGDTRTX_EL0

Debug Data Transfer Register, Transmit

Transfers data from the PE to an external debugger. For example, it is used by a debug target to transfer data to the debugger. See DBGDTR_EL0 for additional architectural mappings. It is a component of the Debug Communication Channel.

Configuration

External register DBGDTRTX_EL0 bits [31:0] are architecturally mapped to AArch64 System register DBGDTRTX_EL0[31:0].

External register DBGDTRTX_EL0 bits [31:0] are architecturally mapped to AArch32 System register DBGDTRTXint[31:0].

DBGDTRTX_EL0 is in the Core power domain.

Attributes

DBGDTRTX_EL0 is a 32-bit register.

Field descriptions

313029282726252423222120191817161514131211109876543210
DTRTX

DTRTX, bits [31:0]:

Return DTRTX.

Reads of this register:

If TXfull is 1, return the value in DTRTX and clear TXfull to 0.

If TXfull is 0, return an UNKNOWN value and set TXU to 1.

Writes of this register update the value in DTRTX and do not change TXfull.

For the full behavior of the Debug Communications Channel, see 'The Debug Communication Channel and Instruction Transfer Register'.

The reset behavior of this field is:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

Accessing DBGDTRTX_EL0

If EDSCR.ITE == 0 when the PE exits Debug state on receiving a Restart request trigger event, the behavior of any operation issued by a DTR access in Memory access mode that has not completed execution is CONSTRAINED UNPREDICTABLE, and must do one of the following:

  • It must complete execution in Debug state before the PE executes the restart sequence.
  • It must complete execution in Non-debug state before the PE executes the restart sequence.
  • It must be abandoned. This means that the instruction does not execute. Any registers or memory accessed by the instruction are left in an UNKNOWN state.

DBGDTRTX_EL0 can be accessed through the external debug interface:

ComponentOffsetInstance
Debug0x08CDBGDTRTX_EL0

Accessible as follows:

  • When DoubleLockStatus(), or !IsCorePowered(), or OSLockStatus(), accesses to this register generate an error response.
  • When SoftwareLockStatus(addrdesc), accesses to this register are RO.
  • Otherwise, accesses to this register are RW.

DBGWCR<n>_EL1, n = 0, 63

Debug Watchpoint Control Registers

Holds control information for a watchpoint. Forms watchpoint n together with value register DBGWVR<n>_EL1.

Configuration

External register DBGWCR<n>_EL1 bits [31:0] are architecturally mapped to AArch64 System register DBGWCR<n>_EL1[31:0].

External register DBGWCR<n>_EL1 bits [63:32] are architecturally mapped to AArch64 System register DBGWCR<n>_EL1[63:32] when FEAT_Debugv8p9 is implemented.

External register DBGWCR<n>_EL1 bits [31:0] are architecturally mapped to AArch32 System register DBGWCR<n>[31:0].

DBGWCR<n>_EL1 is in the Core power domain.

If watchpoint n is not implemented, then accesses to this register are:

  • When IsCorePowered() && !DoubleLockStatus() && !OSLockStatus() && AllowExternalDebugAccess(), RES0.
  • Otherwise, a CONSTRAINED UNPREDICTABLE choice of RES0 or ERROR.

Attributes

DBGWCR<n>_EL1 is a 64-bit register.

Field descriptions

6362616059585756555453525150494847464544434241403938373635343332
313029282726252423222120191817161514131211109876543210
RES0
LBNXSSCEMASKRES0WT2RES0WTLBNSSCHMCBASLSCPACE

Bits [63:32]:

Reserved, RES0.

LBNX, bits [31:30] when FEAT_Debugv8p9 is implemented:

Linked Breakpoint Number.

For Linked data address watchpoints, with DBGWCR<n>_EL1.LBN, specifies the index of the breakpoint linked to.

For all other watchpoint types, this field is ignored and reads of the register return an UNKNOWN value.

This field extends DBGWCR<n>_EL1.LBN to support up to 64 implemented breakpoints.

The reset behavior of this field is:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

Otherwise:

Reserved, RES0.

SSCE, bit [29] when FEAT_RME is implemented:

Security State Control Extended.

The fields that indicate when the watchpoint can be generated are: HMC, PAC, SSC, and SSCE. These fields must be considered in combination, and the values that are permitted for these fields are constrained.

The reset behavior of this field is:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

Otherwise:

Reserved, RES0.

MASK, bits [28:24]:

Address Mask. Only address ranges up to 2GB can be watched using a single mask.

MASKMeaning
0b00000No mask.
0b00011..0b11111Number of address bits masked.

All other values are reserved.

Indicates the number of masked address bits, from 0b00011 masking 3 address bits (0x00000007 mask for address) to 0b11111 masking 31 address bits (0x7FFFFFFF mask for address).

If programmed with a reserved value, the watchpoint behaves as if one of the following:

  • DBGWCR<n>_EL1.MASK has been programmed with a defined value, which might be 0b00000 (no mask), other than for a direct read of DBGWCR<n>_EL1.

  • The watchpoint is disabled. The reset behavior of this field is:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

Bit [23]:

Reserved, RES0.

WT2, bit [22] when FEAT_BWE2 is implemented:

Watchpoint Type 2. With DBGWCR<n>_EL1.WT, specifies watchpoint type.

WT2Meaning
0b0Watchpoint n is an address match watchpoint.
0b1Watchpoint n is an address mismatch watchpoint.

The reset behavior of this field is:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

Otherwise:

Reserved, RES0.

Bit [21]:

Reserved, RES0.

WT, bit [20]:

Watchpoint type. Possible values are:

WTMeaning
0b0Unlinked data address match.
0b1Linked data address match.

The reset behavior of this field is:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

LBN, bits [19:16]:

Linked Breakpoint Number.

For Linked data address watchpoints, with DBGWCR<n>_EL1.LBNX when implemented, specifies the index of the breakpoint linked to.

For all other watchpoint types, this field is ignored and reads of the register return an UNKNOWN value.

The reset behavior of this field is:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

SSC, bits [15:14]:

Security state control. Determines the Security states under which a Watchpoint debug event for watchpoint n is generated. This field must be interpreted along with the HMC and PAC fields.

For more information on the operation of the SSC, HMC, and PAC fields, see 'Execution conditions for which a watchpoint generates Watchpoint exceptions'.

The reset behavior of this field is:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

HMC, bit [13]:

Higher mode control. Determines the debug perspective for deciding when a Watchpoint debug event for watchpoint n is generated. This field must be interpreted along with the SSC and PAC fields.

For more information on the operation of the SSC, HMC, and PAC fields, see 'Execution conditions for which a watchpoint generates Watchpoint exceptions'.

The reset behavior of this field is:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

BAS, bits [12:5]:

Byte address select. Each bit of this field selects whether a byte from within the word or doubleword addressed by DBGWVR<n>_EL1 is being watched.

BASDescription
xxxxxxx1Match byte at DBGWVR<n>_EL1
xxxxxx1xMatch byte at DBGWVR<n>_EL1 + 1
xxxxx1xxMatch byte at DBGWVR<n>_EL1 + 2
xxxx1xxxMatch byte at DBGWVR<n>_EL1 + 3

In cases where DBGWVR<n>_EL1 addresses a doubleword:

BASDescription, if DBGWVR<n>_EL1[2] == 0
xxx1xxxxMatch byte at DBGWVR<n>_EL1 + 4
xx1xxxxxMatch byte at DBGWVR<n>_EL1 + 5
x1xxxxxxMatch byte at DBGWVR<n>_EL1 + 6
1xxxxxxxMatch byte at DBGWVR<n>_EL1 + 7

If DBGWVR<n>_EL1[2] == 1, only BAS[3:0] is used. Arm deprecates setting DBGWVR<n>_EL1[2] == 1.

The valid values for BAS are nonzero binary number all of whose set bits are contiguous. All other values are reserved and must not be used by software. See 'Reserved DBGWCR<n>.BAS values'.

The reset behavior of this field is:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

LSC, bits [4:3]:

Load/store control. This field enables watchpoint matching on the type of access being made. Possible values of this field are:

LSCMeaning
0b01Match instructions that load from a watchpointed address.
0b10Match instructions that store to a watchpointed address.
0b11Match instructions that load from or store to a watchpointed address.

All other values are reserved, but must behave as if the watchpoint is disabled. Software must not rely on this property as the behavior of reserved values might change in a future revision of the architecture.

The reset behavior of this field is:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

PAC, bits [2:1]:

Privilege of access control. Determines the Exception level or levels at which a Watchpoint debug event for watchpoint n is generated. This field must be interpreted along with the SSC and HMC fields.

For more information on the operation of the SSC, HMC, and PAC fields, see 'Execution conditions for which a watchpoint generates Watchpoint exceptions'.

The reset behavior of this field is:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

E, bit [0]:

Enable watchpoint n.

EMeaning
0b0Watchpoint n disabled.
0b1Watchpoint n enabled.

This field is ignored by the PE and treated as zero when all of the following are true:

Any of the following are true:

  • HaltOnBreakpointOrWatchpoint() is FALSE and the Effective value of MDSCR_EL1.EMBWE is 0.

  • HaltOnBreakpointOrWatchpoint() is TRUE and the Effective value of EDSCR2.EHBWE is 0.

  • FEAT_Debugv8p9 is implemented.

  • n >= 16. The reset behavior of this field is:

  • On a Cold reset, this field resets to an architecturally UNKNOWN value.

Accessing DBGWCR<n>_EL1

When FEAT_Debugv8p9 is not implemented, this register is 32-bits wide and offset 0x80C + (16 * n) is reserved.

DBGWCR<n>_EL1 can be accessed through the external debug interface:

ComponentOffsetInstance
Debug0x808 + (16 * n)DBGWCR<n>_EL1

Accessible as follows:

  • When DoubleLockStatus(), or !IsCorePowered(), or OSLockStatus(), or !AllowExternalDebugAccess(addrdesc), accesses to this register generate an error response.
  • When SoftwareLockStatus(addrdesc), accesses to this register are RO.
  • Otherwise, accesses to this register are RW.

Log in to reply.