Archived Arm source pages for the External debug and trace register pages. Part 4 of 22. This part covers EDPRSR through EDSCR.
EDPRSR
External Debug Processor Status Register
Holds information about the reset and powerdown state of the PE.
Configuration
When FEAT_DoPD is implemented, EDPRSR is in the Core power domain. Otherwise, EDPRSR contains fields that are in the Core power domain and fields that are in the Debug power domain.
If FEAT_DoPD is implemented, then all fields in this register are in the Core power domain.
Attributes
EDPRSR is a 32-bit register.
Field descriptions
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| RES0 | EPMADE | ETADE | EDADE | STAD | ETAD | SDR | SPMAD | EPMAD | SDAD | EDAD | DLK | OSLK | HALTED | SR | R | SPD | PU |
Bits [31:17]:
Reserved, RES0.
EPMADE, bit [16] when FEAT_RME is implemented and FEAT_PMUv3_EXT is implemented:
External Performance Monitors Access Disable Extended status. Together with EDPRSR.EPMAD, reports whether access to Performance Monitor registers by an external debugger is prohibited by the MDCR_EL3.{EPMAD, EPMADE} controls.
For a description of the values derived by evaluating EDPRSR.EPMAD and EDPRSR.EPMADE together, see EDPRSR.EPMAD.
This field is in the Core power domain.
Accessing this field has the following behavior:
Access to this field is UNKNOWN/WI if any of the following are true:
- FEAT_DoPD is not implemented and !IsCorePowered().
- EDPRSR.R == '1'.
- Otherwise, access to this field is RO.
Otherwise:
Reserved, RES0.
ETADE, bit [15] when FEAT_RME is implemented, FEAT_TRC_EXT is implemented, and FEAT_TRBE is implemented:
External Trace Access Disable Extended status. Together with EDPRSR.ETAD, reports whether access to trace unit registers by an external debugger is prohibited by the MDCR_EL3.{ETAD, ETADE} controls.
For a description of the values derived by evaluating EDPRSR.ETAD and EDPRSR.ETADE together, see EDPRSR.ETAD.
This field is in the Core power domain.
Accessing this field has the following behavior:
Access to this field is UNKNOWN/WI if any of the following are true:
- FEAT_DoPD is not implemented and !IsCorePowered().
- EDPRSR.R == '1'.
- Otherwise, access to this field is RO.
Otherwise:
Reserved, RES0.
EDADE, bit [14] when FEAT_RME is implemented:
External Debug Access Disable Extended status. Together with EDPRSR.EDAD, reports whether access to breakpoint registers, watchpoint registers, and OSLAR_EL1 by an external debugger is prohibited by the MDCR_EL3.{EDAD, EDADE} controls.
For a description of the values derived by evaluating EDPRSR.EDAD and EDPRSR.EDADE together, see EDPRSR.EDAD.
This field is in the Core power domain.
Accessing this field has the following behavior:
Access to this field is UNKNOWN/WI if any of the following are true:
- FEAT_DoPD is not implemented and !IsCorePowered().
- EDPRSR.R == '1'.
- Otherwise, access to this field is RO.
Otherwise:
Reserved, RES0.
STAD, bit [13] when FEAT_TRC_EXT is implemented and FEAT_TRBE is implemented:
Sticky ETAD error. Set to 1 when a Non-secure external debug interface access to an external trace register returns an error because AllowExternalTraceAccess() == FALSE for the access.
| STAD | Meaning |
|---|---|
| 0b0 | Since EDPRSR was last read, no external accesses to the trace unit registers have failed because AllowExternalTraceAccess() was FALSE for the access. |
| 0b1 | Since EDPRSR was last read, at least one external access to the trace unit registers has failed because AllowExternalTraceAccess() was FALSE for the access. |
If IsCorePowered() == TRUE, the Core power domain is powered up, then, following a read of EDPRSR, then this bit clears to 0.
This field is in the Core power domain.
The reset behavior of this field is:
- On a Cold reset, this field resets to '0'. Accessing this field has the following behavior:
Access to this field is UNKNOWN/WI if all the following are true:
- FEAT_DoPD is not implemented.
- !IsCorePowered().
- Otherwise, access to this field is RC/WI.
Otherwise:
Reserved, RES0.
ETAD, bit [12] when FEAT_RME is implemented, FEAT_TRC_EXT is implemented, and FEAT_TRBE is implemented:
External Trace Access Disable status. Together with EDPRSR.ETADE, reports whether access to trace unit registers by an external debugger is prohibited by the MDCR_EL3.{ETAD, ETADE} controls.
| ETADE | ETAD | Meaning |
|---|---|---|
| 0b0 | 0b0 | No accesses from an external debugger to trace unit registers are prohibited. |
| 0b0 | 0b1 | Realm and Non-secure accesses from an external debugger to trace unit registers are prohibited. Other accesses from an external debugger to trace unit registers are not affected. |
| 0b1 | 0b0 | Secure and Non-secure accesses from an external debugger to trace unit registers are prohibited. Other accesses from an external debugger to trace unit registers are not affected. |
| 0b1 | 0b1 | Secure, Non-secure, and Realm accesses from an external debugger to trace unit registers are prohibited. Other accesses from an external debugger to trace unit registers are not affected. |
This field is in the Core power domain.
Accessing this field has the following behavior:
Access to this field is UNKNOWN/WI if any of the following are true:
- FEAT_DoPD is not implemented and !IsCorePowered().
- EDPRSR.R == '1'.
- Otherwise, access to this field is RO.
when FEAT_TRC_EXT is implemented and FEAT_TRBE is implemented:
External Trace Access Disable status. Reports whether Non-secure access to trace unit registers by an external debugger is prohibited by the MDCR_EL3.ETAD control.
| ETAD | Meaning |
|---|---|
| 0b0 | External Non-secure trace unit accesses not affected. AllowExternalTraceAccess() == TRUE for a Non-secure access. |
| 0b1 | External Non-secure trace unit accesses are prohibited. AllowExternalTraceAccess() == FALSE for a Non-secure access. |
This field is in the Core power domain.
Accessing this field has the following behavior:
Access to this field is UNKNOWN/WI if any of the following are true:
- FEAT_DoPD is not implemented and !IsCorePowered().
- EDPRSR.R == '1'.
- Otherwise, access to this field is RO.
Otherwise:
Reserved, RES0.
SDR, bit [11]:
Sticky Debug Restart. Set to 1 when the PE exits Debug state.
| SDR | Meaning |
|---|---|
| 0b0 | The PE has not restarted since EDPRSR was last read. |
| 0b1 | The PE has restarted since EDPRSR was last read. |
If a reset occurs when the PE is in Debug state, the PE exits Debug state. SDR is UNKNOWN on Warm reset, meaning a debugger must also use the SR bit to determine whether the PE has left Debug state.
If the Core power domain is powered up, then following a read of EDPRSR:
- If FEAT_DoubleLock is not implemented or DoubleLockStatus() == FALSE, this bit clears to 0.
- If FEAT_DoubleLock is implemented and DoubleLockStatus() == TRUE, it is CONSTRAINED UNPREDICTABLE whether this bit clears to 0 or is unchanged. This field is in the Core power domain.
The reset behavior of this field is:
- On a Warm reset, this field resets to an architecturally UNKNOWN value. Accessing this field has the following behavior:
Access to this field is UNKNOWN/WI if all the following are true:
- FEAT_DoPD is not implemented.
- !IsCorePowered().
- When DoubleLockStatus(), access to this field is UNKNOWN/WI.
- When SoftwareLockStatus(addrdesc), access to this field is RO.
- Otherwise, access to this field is RC/WI.
SPMAD, bit [10] when FEAT_Debugv8p4 is implemented and FEAT_PMUv3_EXT is implemented:
Sticky EPMAD error. Set to 1 if an external debug interface access to a Performance Monitors register returns an error because AllowExternalPMUAccess() == FALSE.
| SPMAD | Meaning |
|---|---|
| 0b0 | No Non-secure external debug interface accesses to the external Performance Monitors registers have failed because AllowExternalPMUAccess() == FALSE for the access since EDPRSR was last read. |
| 0b1 | At least one Non-secure external debug interface access to the external Performance Monitors register has failed and returned an error because AllowExternalPMUAccess() == FALSE for the access since EDPRSR was last read. |
If the Core power domain is powered up, then following a read of EDPRSR:
- If FEAT_DoubleLock is not implemented or DoubleLockStatus() == FALSE, this bit clears to 0.
- If FEAT_DoubleLock is implemented and DoubleLockStatus() == TRUE, it is CONSTRAINED UNPREDICTABLE whether this bit clears to 0 or is unchanged. This field is in the Core power domain.
The reset behavior of this field is:
- On a Cold reset, this field resets to '0'. Accessing this field has the following behavior:
Access to this field is UNKNOWN/WI if all the following are true:
- FEAT_DoPD is not implemented.
- !IsCorePowered().
- When DoubleLockStatus(), access to this field is UNKNOWN/WI.
- When SoftwareLockStatus(addrdesc), access to this field is RO.
- Otherwise, access to this field is RC/WI.
when FEAT_PMUv3_EXT is implemented:
Sticky EPMAD error.
| SPMAD | Meaning |
|---|---|
| 0b0 | No external debug interface accesses to the Performance Monitors registers have failed because AllowExternalPMUAccess() == FALSE since EDPRSR was last read. |
| 0b1 | At least one external debug interface access to the Performance Monitors registers has failed and returned an error because AllowExternalPMUAccess() == FALSE since EDPRSR was last read. |
If the Core power domain is powered up, then, following a read of EDPRSR:
- If FEAT_DoubleLock is not implemented or DoubleLockStatus() == FALSE, this bit clears to 0.
- If FEAT_DoubleLock is implemented, and DoubleLockStatus() == TRUE, it is CONSTRAINED UNPREDICTABLE whether this bit clears to 0 or is unchanged. This field is in the Core power domain.
The reset behavior of this field is:
- On a Cold reset, this field resets to '0'. Accessing this field has the following behavior:
Access to this field is UNKNOWN/WI if all the following are true:
- FEAT_DoPD is not implemented.
- !IsCorePowered().
- When DoubleLockStatus(), access to this field is UNKNOWN/WI.
- When OSLockStatus(), access to this field is UNKNOWN/WI.
- When SoftwareLockStatus(addrdesc), access to this field is RO.
- Otherwise, access to this field is RC/WI.
Otherwise:
Reserved, RES0.
EPMAD, bit [9] when FEAT_RME is implemented and FEAT_PMUv3_EXT is implemented:
External Performance Monitors Access Disable status. Together with EDPRSR.EPMADE, reports whether access to Performance Monitor registers by an external debugger is prohibited by the MDCR_EL3.{EPMAD, EPMADE} controls.
See MDCR_EL3.EPMAD for the list of affected external Performance Monitor registers.
| EPMADE | EPMAD | Meaning |
|---|---|---|
| 0b0 | 0b0 | No accesses from an external debugger to affected Performance Monitor registers are prohibited. |
| 0b0 | 0b1 | Realm and Non-secure accesses from an external debugger to affected Performance Monitor registers are prohibited. Other accesses from an external debugger to affected Performance Monitor registers are not affected. |
| 0b1 | 0b0 | Secure and Non-secure accesses from an external debugger to affected Performance Monitor registers are prohibited. Other accesses from an external debugger to affected Performance Monitor registers are not affected. |
| 0b1 | 0b1 | Secure, Non-secure, and Realm accesses from an external debugger to affected Performance Monitor registers are prohibited. Other accesses from an external debugger to affected Performance Monitor registers are not affected. |
This field is in the Core power domain.
Accessing this field has the following behavior:
Access to this field is UNKNOWN/WI if any of the following are true:
- FEAT_DoPD is not implemented and !IsCorePowered().
- EDPRSR.R == '1'.
- Otherwise, access to this field is RO.
when FEAT_Debugv8p4 is implemented and FEAT_PMUv3_EXT is implemented:
External Performance Monitors Access Disable status. Reports whether Non-secure access to Performance Monitor registers by an external debugger is prohibited by the MDCR_EL3.EPMAD control.
See MDCR_EL3.EPMAD for the list of affected external Performance Monitor registers.
| EPMAD | Meaning |
|---|---|
| 0b0 | External Non-secure access to Performance Monitor registers not affected. AllowExternalPMUAccess() == TRUE for a Non-secure access. |
| 0b1 | External Non-secure access to affected Performance Monitor registers is prohibited. AllowExternalPMUAccess() == FALSE for a Non-secure access. |
This field is in the Core power domain.
Accessing this field has the following behavior:
Access to this field is UNKNOWN/WI if any of the following are true:
- FEAT_DoPD is not implemented and !IsCorePowered().
- EDPRSR.R == '1'.
- When DoubleLockStatus(), access to this field is UNKNOWN/WI.
- Otherwise, access to this field is RO.
when FEAT_PMUv3_EXT is implemented:
External Performance Monitors Access Disable status. Reports whether access to Performance Monitor registers by an external debugger is prohibited by the MDCR_EL3.EPMAD control.
See MDCR_EL3.EPMAD for the list of affected external Performance Monitor registers.
| EPMAD | Meaning |
|---|---|
| 0b0 | External access to Performance Monitor registers not affected. AllowExternalPMUAccess() == TRUE. |
| 0b1 | External access to affected Performance Monitor registers is prohibited. AllowExternalPMUAccess() == FALSE. |
This field is in the Core power domain.
Accessing this field has the following behavior:
Access to this field is UNKNOWN/WI if any of the following are true:
- FEAT_DoPD is not implemented and !IsCorePowered().
- EDPRSR.R == '1'.
- When DoubleLockStatus(), access to this field is UNKNOWN/WI.
- When OSLockStatus(), access to this field is UNKNOWN/WI.
- Otherwise, access to this field is RO.
when FEAT_PMUv3 is implemented:
Reserved, UNKNOWN.
Otherwise:
Reserved, RES0.
SDAD, bit [8] when FEAT_Debugv8p4 is implemented:
Sticky EDAD error. Set to 1 if an external debug interface access to a debug register returns an error because AllowExternalDebugAccess() == FALSE.
| SDAD | Meaning |
|---|---|
| 0b0 | No Non-secure external debug interface accesses to the debug registers have failed because AllowExternalDebugAccess() == FALSE for the access since EDPRSR was last read. |
| 0b1 | At least one Non-secure external debug interface access to the debug registers has failed and returned an error because AllowExternalDebugAccess() == FALSE for the access since EDPRSR was last read. |
If the Core power domain is powered up, then, following a read of EDPRSR:
- If FEAT_DoubleLock is not implemented or DoubleLockStatus() == FALSE, this bit clears to 0.
- If FEAT_DoubleLock is implemented and DoubleLockStatus() == TRUE, it is CONSTRAINED UNPREDICTABLE whether this bit clears to 0 or is unchanged. This field is in the Core power domain.
The reset behavior of this field is:
- On a Cold reset, this field resets to '0'. Accessing this field has the following behavior:
Access to this field is UNKNOWN/WI if any of the following are true:
- FEAT_DoPD is not implemented and !IsCorePowered().
- EDPRSR.R == '1'.
- When DoubleLockStatus(), access to this field is UNKNOWN/WI.
- Otherwise, access to this field is RO.
Otherwise:
Sticky EDAD error. Set to 1 if an external debug interface access to a debug register returns an error because AllowExternalDebugAccess() == FALSE.
| SDAD | Meaning |
|---|---|
| 0b0 | No external debug interface accesses to the debug registers have failed because AllowExternalDebugAccess() == FALSE since EDPRSR was last read. |
| 0b1 | At least one external debug interface access to the debug registers has failed and returned an error because AllowExternalDebugAccess() == FALSE since EDPRSR was last read. |
If the Core power domain is powered up, then, following a read of EDPRSR:
- If FEAT_DoubleLock is not implemented or DoubleLockStatus() == FALSE, this bit clears to 0.
- If FEAT_DoubleLock is implemented and DoubleLockStatus() == TRUE, it is CONSTRAINED UNPREDICTABLE whether this bit clears to 0 or is unchanged. This field is in the Core power domain.
The reset behavior of this field is:
- On a Cold reset, this field resets to '0'. Accessing this field has the following behavior:
Access to this field is UNKNOWN/WI if any of the following are true:
-
FEAT_DoPD is not implemented and !IsCorePowered().
-
EDPRSR.R == '1'.
-
When DoubleLockStatus(), access to this field is UNKNOWN/WI. Access to this field is UNKNOWN/WI if all the following are true:
- OSLockStatus().
- external debug writes to OSLAR_EL1 do not return an error when AllowExternalDebugAccess(addrdesc) == FALSE.
-
Otherwise, access to this field is RO.
EDAD, bit [7] when FEAT_RME is implemented:
External Debug Access Disable status. Together with EDPRSR.EDADE, reports whether access to breakpoint registers, watchpoint registers, and OSLAR_EL1 by an external debugger is prohibited by the MDCR_EL3.{EDAD, EDADE} controls.
See MDCR_EL3.EDAD for the list of affected external debug registers.
| EDADE | EDAD | Meaning |
|---|---|---|
| 0b0 | 0b0 | No accesses from an external debugger to affected debug registers are prohibited. |
| 0b0 | 0b1 | Realm and Non-secure accesses from an external debugger to affected debug registers are prohibited. Other accesses from an external debugger to affected debug registers are not affected. |
| 0b1 | 0b0 | Secure and Non-secure accesses from an external debugger to affected debug registers are prohibited. Other accesses from an external debugger to affected debug registers are not affected. |
| 0b1 | 0b1 | Secure, Non-secure, and Realm accesses from an external debugger to affected debug registers are prohibited. Other accesses from an external debugger to affected debug registers are not affected. |
This field is in the Core power domain.
Accessing this field has the following behavior:
Access to this field is UNKNOWN/WI if any of the following are true:
- FEAT_DoPD is not implemented and !IsCorePowered().
- EDPRSR.R == '1'.
- Otherwise, access to this field is RO.
when FEAT_Debugv8p4 is implemented:
External Debug Access Disable status. Reports whether Non-secure access to breakpoint registers, watchpoint registers, and OSLAR_EL1 by an external debugger is prohibited by the MDCR_EL3.EDAD control.
See MDCR_EL3.EDAD for the list of affected external debug registers.
| EDAD | Meaning |
|---|---|
| 0b0 | External Non-secure access to debug registers not affected. AllowExternalDebugAccess() == TRUE for a Non-secure access. |
| 0b1 | External Non-secure access to affected debug registers is prohibited. AllowExternalDebugAccess() == FALSE for a Non-secure access. |
This field is in the Core power domain.
Accessing this field has the following behavior:
Access to this field is UNKNOWN/WI if any of the following are true:
- FEAT_DoPD is not implemented and !IsCorePowered().
- EDPRSR.R == '1'.
- When DoubleLockStatus(), access to this field is UNKNOWN/WI.
- Otherwise, access to this field is RO.
when FEAT_Debugv8p2 is implemented:
External Debug Access Disable status. Reports whether access to breakpoint registers, watchpoint registers, and OSLAR_EL1 by an external debugger is prohibited by the MDCR_EL3.EDAD control.
See MDCR_EL3.EDAD for the list of affected external debug registers.
| EDAD | Meaning |
|---|---|
| 0b0 | External access to debug registers not affected. AllowExternalDebugAccess() == TRUE. |
| 0b1 | External access to affected debug registers is prohibited. AllowExternalDebugAccess() == FALSE. |
This field is in the Core power domain.
Accessing this field has the following behavior:
Access to this field is UNKNOWN/WI if any of the following are true:
-
FEAT_DoPD is not implemented and !IsCorePowered().
-
EDPRSR.R == '1'.
-
When DoubleLockStatus(), access to this field is UNKNOWN/WI. Access to this field is UNKNOWN/WI if all the following are true:
- OSLockStatus().
- external debug writes to OSLAR_EL1 do not return an error when AllowExternalDebugAccess(addrdesc) == FALSE.
-
Otherwise, access to this field is RO.
Otherwise:
External Debug Access Disable status. Reports whether access to breakpoint registers, watchpoint registers, and optionally OSLAR_EL1 by an external debugger is prohibited by the MDCR_EL3.EDAD control.
See MDCR_EL3.EDAD for the list of affected external debug registers.
| EDAD | Meaning |
|---|---|
| 0b0 | External access to debug registers not affected. AllowExternalDebugAccess() == TRUE. |
| 0b1 | External access to affected debug registers is prohibited. AllowExternalDebugAccess() == FALSE. |
This field is in the Core power domain.
Accessing this field has the following behavior:
Access to this field is UNKNOWN/WI if any of the following are true:
- FEAT_DoPD is not implemented and !IsCorePowered().
- EDPRSR.R == '1'.
- When DoubleLockStatus(), access to this field is UNKNOWN/WI.
- Otherwise, access to this field is RO.
DLK, bit [6] when FEAT_Debugv8p4 is implemented:
This field is RES0.
when FEAT_Debugv8p2 is implemented and FEAT_DoubleLock is implemented:
Double Lock. From Armv8.2, use of this field is deprecated.
This field is in the Core power domain.
Accessing this field has the following behavior:
Access to this field is UNKNOWN/WI if any of the following are true:
- !IsCorePowered().
- DoubleLockStatus().
- Otherwise, access to this field is RAZ/WI.
when FEAT_DoubleLock is implemented:
Double Lock.
This field returns the result of the pseudocode function DoubleLockStatus().
If the Core power domain is powered up and DoubleLockStatus() == TRUE, it is IMPLEMENTATION DEFINED whether:
- EDPRSR.PU reads as 1, EDPRSR.DLK reads as 1, and EDPRSR.SPD is UNKNOWN.
- EDPRSR.PU reads as 0, EDPRSR.DLK is UNKNOWN, and EDPRSR.SPD reads as 0. This field is in the Core power domain.
| DLK | Meaning |
|---|---|
| 0b0 | DoubleLockStatus() returns FALSE. |
| 0b1 | DoubleLockStatus() returns TRUE and the Core power domain is powered up. |
Accessing this field has the following behavior:
- When !IsCorePowered(), access to this field is UNKNOWN/WI.
- Otherwise, access to this field is RO.
Otherwise:
Reserved, RES0.
OSLK, bit [5]:
OS Lock status bit.
A read of this bit returns the value of OSLSR_EL1.OSLK.
This field is in the Core power domain.
Accessing this field has the following behavior:
Access to this field is UNKNOWN/WI if any of the following are true:
- FEAT_DoPD is not implemented and !IsCorePowered().
- EDPRSR.R == '1'.
- When DoubleLockStatus(), access to this field is UNKNOWN/WI.
- Otherwise, access to this field is RO.
HALTED, bit [4]:
Halted status bit.
| HALTED | Meaning |
|---|---|
| 0b0 | PE is in Non-debug state. |
| 0b1 | PE is in Debug state. |
This field is in the Core power domain.
Accessing this field has the following behavior:
Access to this field is UNKNOWN/WI if all the following are true:
- FEAT_DoPD is not implemented.
- !IsCorePowered().
- Otherwise, access to this field is RO.
SR, bit [3]:
Sticky core Reset status bit.
| SR | Meaning |
|---|---|
| 0b0 | The non-debug logic of the PE is not in reset state and has not been reset since the last time EDPRSR was read. |
| 0b1 | The non-debug logic of the PE is in reset state or has been reset since the last time EDPRSR was read. |
If EDPRSR.PU reads as 1 and EDPRSR.R reads as 0, which means that the Core power domain is in a powerup state and that the non-debug logic of the PE is not in reset state, then following a read of EDPRSR:
- If FEAT_DoubleLock is not implemented or DoubleLockStatus() == FALSE, this bit clears to 0.
- If FEAT_DoubleLock is implemented and DoubleLockStatus() == TRUE, it is CONSTRAINED UNPREDICTABLE whether this bit clears to 0 or is unchanged. This field is in the Core power domain.
The reset behavior of this field is:
- On a Warm reset, this field resets to '1'. Accessing this field has the following behavior:
Access to this field is UNKNOWN/WI if all the following are true:
- FEAT_DoPD is not implemented.
- !IsCorePowered().
- When DoubleLockStatus(), access to this field is UNKNOWN/WI.
- When SoftwareLockStatus(addrdesc), access to this field is RO.
- Otherwise, access to this field is RC/WI.
R, bit [2]:
PE Reset status bit.
| R | Meaning |
|---|---|
| 0b0 | The non-debug logic of the PE is not in reset state. |
| 0b1 | The non-debug logic of the PE is in reset state. |
If FEAT_DoubleLock is implemented, the PE is in reset state, and the PE entered reset state with the OS Double Lock locked this bit has a CONSTRAINED UNPREDICTABLE value. For more information, see 'EDPRSR.{DLK, R} and reset state'.
This field is in the Core power domain.
Accessing this field has the following behavior:
Access to this field is UNKNOWN/WI if any of the following are true:
- FEAT_DoPD is not implemented and !IsCorePowered().
- DoubleLockStatus().
- Otherwise, access to this field is RO.
SPD, bit [1]:
Sticky core Powerdown status bit.
If FEAT_DoubleLock is implemented and DoubleLockStatus() == TRUE, then:
- If FEAT_Debugv8p2 is implemented, this bit reads as 0.
- If FEAT_Debugv8p2 is not implemented, this bit might read as 0 or 1. For more information, see 'EDPRSR.{DLK, SPD, PU} and the Core power domain'.
| SPD | Meaning |
|---|---|
| 0b0 | If EDPRSR.PU is 0, it is not known whether the state of the debug registers in the Core power domain is lost. If EDPRSR.PU is 1, the state of the debug registers in the Core power domain has not been lost. |
| 0b1 | The state of the debug registers in the Core power domain has been lost. |
If the Core power domain is powered up, then, following a read of EDPRSR:
- If FEAT_DoubleLock is not implemented or DoubleLockStatus() == FALSE, this bit clears to 0.
- If FEAT_DoubleLock is implemented and DoubleLockStatus() == TRUE, it is CONSTRAINED UNPREDICTABLE whether this bit clears to 0 or is unchanged. EDPRSR.{DLK, SPD, PU} describe whether registers in the Core power domain can be accessed, and whether their state has been lost since the last time the register was read. For more information, see 'EDPRSR.{DLK, SPD, PU} and the Core power domain'.
When FEAT_DoPD is not implemented and the Core power domain is in either retention or powerdown state, the value of EDPRSR.SPD is IMPLEMENTATION DEFINED. For more information, see 'EDPRSR.SPD when the Core domain is in either retention or powerdown state'.
The reset behavior of this field is:
- On a Cold reset, this field resets to '1'. Accessing this field has the following behavior:
Access to this field is RAZ/WI if all the following are true:
-
FEAT_DoPD is not implemented.
-
!IsCorePowered(). Access to this field is UNKNOWN/WI if all the following are true:
-
IsCorePowered().
-
DoubleLockStatus().
-
Otherwise, access to this field is RC/WI.
PU, bit [0] when FEAT_DoPD is implemented:
Core powerup status bit.
Access to this field is RAO/WI.
when FEAT_Debugv8p2 is implemented:
Core Powerup status bit. Indicates whether the debug registers in the Core power domain can be accessed.
| PU | Meaning |
|---|---|
| 0b0 | Either the Core power domain is in a low-power or powerdown state, or FEAT_DoubleLock is implemented and DoubleLockStatus() == TRUE, meaning the debug registers in the Core power domain cannot be accessed. |
| 0b1 | The Core power domain is in a powerup state, and either FEAT_DoubleLock is not implemented or DoubleLockStatus() == FALSE, meaning the debug registers in the Core power domain can be accessed. |
If FEAT_DoubleLock is implemented, the PE is in reset state, and the PE entered reset state with the OS Double Lock locked this bit has a CONSTRAINED UNPREDICTABLE value. For more information, see 'EDPRSR.{DLK, R} and reset state'
EDPRSR.{DLK, SPD, PU} describe whether registers in the Core power domain can be accessed, and whether their state has been lost since the last time the register was read. For more information, see 'EDPRSR.{DLK, SPD, PU} and the Core power domain'
Access to this field is RO.
Otherwise:
Core Powerup status bit. Indicates whether the debug registers in the Core power domain can be accessed.
| PU | Meaning |
|---|---|
| 0b0 | Core power domain is in a low-power or powerdown state where the debug registers in the Core power domain cannot be accessed. |
| 0b1 | Core power domain is in a powerup state where the debug registers in the Core power domain can be accessed. |
If FEAT_DoubleLock is implemented, the PE is in reset state, and the PE entered reset state with the OS Double Lock locked this bit has a CONSTRAINED UNPREDICTABLE value. For more information see 'EDPRSR.{DLK, R} and reset state'
EDPRSR.{DLK, SPD, PU} describe whether registers in the Core power domain can be accessed, and whether their state has been lost since the last time the register was read. For more information, see 'EDPRSR.{DLK, SPD, PU} and the Core power domain'.
When the Core power domain is powered-up and DoubleLockStatus() == TRUE, then the value of EDPRSR.PU is IMPLEMENTATION DEFINED. See the description of the DLK bit for more information.
If FEAT_DoubleLock is implemented, the Core power domain is powered up, and DoubleLockStatus() == TRUE, it is IMPLEMENTATION DEFINED whether this bit reads as 0 or 1.
Access to this field is RO.
Accessing EDPRSR
On permitted accesses to the register, other access controls affect the behavior of some fields. See the field descriptions for more information.
If the Core power domain is powered up (EDPRSR.PU == 1), then following a read of EDPRSR:
If FEAT_DoubleLock is not implemented or DoubleLockStatus() == FALSE, then:
-
EDPRSR.{SDR, SPMAD, SDAD, SPD} are cleared to 0.
-
EDPRSR.SR is cleared to 0 if the non-debug logic of the PE is not in reset state (EDPRSR.R == 0).
-
If FEAT_DoubleLock is implemented and DoubleLockStatus() == TRUE, it is CONSTRAINED UNPREDICTABLE whether or not this clearing occurs. If FEAT_DoPD is not implemented and the Core power domain is powered down (EDPRSR.PU == 0), then:
-
EDPRSR.{SDR, SPMAD, SDAD, SR} are all UNKNOWN, and are either reset or restored on being powered up.
-
EDPRSR.SPD is not cleared following a read of EDPRSR. See the SPD bit description for more information. The clearing of bits is an indirect write to EDPRSR.
EDPRSR can be accessed through the external debug interface:
| Component | Offset | Instance |
|---|---|---|
| Debug | 0x314 | EDPRSR |
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.
EDRCR
External Debug Reserve Control Register
This register is used to allow imprecise entry to Debug state and clear sticky bits in EDSCR.
Configuration
EDRCR is in the Core power domain.
Attributes
EDRCR is a 32-bit register.
Field descriptions
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| RES0 | CBRRQ | CSPA | CSE | RES0 |
Bits [31:5]:
Reserved, RES0.
CBRRQ, bit [4]:
Allow imprecise entry to Debug state. The actions on writing to this bit are:
| CBRRQ | Meaning |
|---|---|
| 0b0 | No action. |
| 0b1 | Allow imprecise entry to Debug state, for example by canceling pending bus accesses. |
Setting this bit to 1 allows a debugger to request imprecise entry to Debug state. An External Debug Request debug event must be pending before the debugger sets this bit to 1.
This feature is optional. If this feature is not implemented, writes to this bit are ignored.
CSPA, bit [3]:
Clear Sticky Pipeline Advance. This bit is used to clear the EDSCR.PipeAdv bit to 0. The actions on writing to this bit are:
| CSPA | Meaning |
|---|---|
| 0b0 | No action. |
| 0b1 | Clear the EDSCR.PipeAdv bit to 0. |
CSE, bit [2]:
Clear Sticky Error. Used to clear the EDSCR cumulative error bits to 0. The actions on writing to this bit are:
| CSE | Meaning |
|---|---|
| 0b0 | No action. |
| 0b1 | Clear the EDSCR.{TXU, RXO, ERR} bits, and, if the PE is in Debug state, the EDSCR.ITO bit, to 0. |
Bits [1:0]:
Reserved, RES0.
Accessing EDRCR
EDRCR can be accessed through the external debug interface:
| Component | Offset | Instance |
|---|---|---|
| Debug | 0x090 | EDRCR |
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 WI.
- Otherwise, accesses to this register are WO.
EDSCR
External Debug Status and Control Register
Main control register for the debug implementation.
Configuration
External register EDSCR bits [31:29, 27:26, 23:21, 19, 14, 6] are architecturally mapped to AArch64 System register MDSCR_EL1[31:29, 27:26, 23:21, 19, 14, 6] when FEAT_AA64 is implemented.
External register EDSCR bits [31:29, 27:26, 23:21, 19, 14, 6] are architecturally mapped to AArch32 System register DBGDSCRext[31:29, 27:26, 23:21, 19, 14, 6] when FEAT_AA32EL1 is implemented.
External register EDSCR bits [30:29] are architecturally mapped to AArch64 System register MDCCSR_EL0[30:29] when FEAT_AA64 is implemented.
External register EDSCR bits [30:29] are architecturally mapped to AArch32 System register DBGDSCRint[30:29] when FEAT_AA32EL0 is implemented.
EDSCR is in the Core power domain.
Attributes
EDSCR is a 32-bit register.
Field descriptions
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| TFO | RXfull | TXfull | ITO | RXO | TXU | PipeAdv | ITE | INTdis | TDA | MA | SC2 | NS | RES0 | SDD | NSE | HDE | RW | EL | A | ERR | STATUS |
TFO, bit [31] when FEAT_TRF is implemented:
Trace Filter Override. Overrides the Trace Filter controls allowing the external debugger to trace any visible Exception level.
| TFO | Meaning |
|---|---|
| 0b0 | Trace Filter controls are not affected. |
| 0b1 | Trace Filter controls in TRFCR_EL1 and TRFCR_EL2 are ignored. Trace Filter controls TRFCR and HTRFCR are ignored. |
When OSLSR_EL1.OSLK is 1, this bit can be indirectly read and written through MDSCR_EL1 and DBGDSCRext.
This bit is ignored by the PE when any of the following is true:
-
ExternalSecureNoninvasiveDebugEnabled() is FALSE and the Effective value of MDCR_EL3.STE is 1.
-
FEAT_RME is implemented, ExternalRealmNoninvasiveDebugEnabled() is FALSE, and the Effective value of MDCR_EL3.RLTE is 1. The reset behavior of this field is:
-
On a Cold reset, this field resets to '0'.
Otherwise:
Reserved, RES0.
RXfull, bit [30]:
DTRRX full.
When OSLSR_EL1.OSLK is 1, this bit can be indirectly read and written through MDSCR_EL1 and DBGDSCRext.
The reset behavior of this field is:
- On a Cold reset, this field resets to '0'. Access to this field is RO.
TXfull, bit [29]:
DTRTX full.
When OSLSR_EL1.OSLK is 1, this bit can be indirectly read and written through MDSCR_EL1 and DBGDSCRext.
The reset behavior of this field is:
- On a Cold reset, this field resets to '0'. Access to this field is RO.
ITO, bit [28]:
ITR overrun. Set to 0 on entry to Debug state.
Accessing this field has the following behavior:
- When the PE is in Non-debug state, access to this field is UNKNOWN/WI.
- Otherwise, access to this field is RO.
RXO, bit [27]:
DTRRX overrun.
When OSLSR_EL1.OSLK is 1, this bit can be indirectly read and written through MDSCR_EL1 and DBGDSCRext.
The reset behavior of this field is:
- On a Cold reset, this field resets to '0'. Access to this field is RO.
TXU, bit [26]:
DTRTX underrun.
When OSLSR_EL1.OSLK is 1, this bit can be indirectly read and written through MDSCR_EL1 and DBGDSCRext.
The reset behavior of this field is:
- On a Cold reset, this field resets to '0'. Access to this field is RO.
PipeAdv, bit [25]:
Pipeline Advance. Indicates that software execution is progressing.
| PipeAdv | Meaning |
|---|---|
| 0b0 | No progress has been made by the PE since the last time this field was cleared to zero by writing 1 to EDRCR.CSPA. |
| 0b1 | Progress has been made by the PE since the last time this field was cleared to zero by writing 1 to EDRCR.CSPA. |
The architecture does not define precisely when this field is set to 1. It requires only that this happen periodically in Non-debug state to indicate that software execution is progressing. For example, a PE might set this field to 1 each time the PE retires one or more instructions, or at periodic intervals during the progression of an instruction.
When FEAT_MOPS is implemented, CPY, CPYF, SET, and SETG are examples of instructions that periodically make forward progress.
The reset behavior of this field is:
- On a Warm reset, this field resets to an architecturally UNKNOWN value. Access to this field is RO.
ITE, bit [24]:
ITR empty.
Accessing this field has the following behavior:
- When the PE is in Non-debug state, access to this field is UNKNOWN/WI.
- Otherwise, access to this field is RO.
INTdis, bits [23:22] when FEAT_RME is implemented:
Interrupt and SError exception disable. Disables taking interrupts and SError exceptions in Non-debug state.
| INTdis | Meaning |
|---|---|
| 0b00 | This bit has no effect on the masking of interrupts and SError exceptions. |
| 0b01 | If ExternalInvasiveDebugEnabled() is TRUE, then all interrupts and SError exceptions taken to Non-secure state are masked. If ExternalSecureInvasiveDebugEnabled() is TRUE, then all interrupts and SError exceptions taken to Secure state are masked. If ExternalRootInvasiveDebugEnabled() is TRUE, then all interrupts and SError exceptions taken to Root state are masked. If ExternalRealmInvasiveDebugEnabled() is TRUE, then all interrupts and SError exceptions taken to Realm state are masked. |
This control affects both physical and virtual interrupts and SError exceptions.
When OSLSR_EL1.OSLK is 1, this field can be indirectly read and written through the following System registers:
- MDSCR_EL1.
- DBGDSCRext. The Effective value of this field is 0b00 when ExternalInvasiveDebugEnabled() is FALSE.
When FEAT_RME is implemented, bit[23] of this register is RES0.
The reset behavior of this field is:
- On a Cold reset, this field resets to '00'.
when FEAT_Debugv8p4 is implemented:
Interrupt and SError exception disable. Disables taking interrupts and SError exceptions in Non-debug state.
| INTdis | Meaning |
|---|---|
| 0b00 | Masking of interrupts and SError exceptions is controlled by PSTATE and interrupt routing controls. |
| 0b01 | If ExternalInvasiveDebugEnabled() is TRUE, then all interrupts and SError exceptions taken to Non-secure state are masked. If ExternalSecureInvasiveDebugEnabled() is TRUE, then all interrupts and SError exceptions taken to Secure state are masked. |
This control affects both physical and virtual interrupts and SError exceptions.
When OSLSR_EL1.OSLK is 1, this field can be indirectly read and written through the following System registers:
- MDSCR_EL1.
- DBGDSCRext. The Effective value of this field is 0b00 when ExternalInvasiveDebugEnabled() is FALSE.
When FEAT_Debugv8p4 is implemented, bit[23] of this register is RES0.
The reset behavior of this field is:
- On a Cold reset, this field resets to '00'.
Otherwise:
Interrupt and SError exception disable. Disables taking interrupts and SError exceptions in Non-debug state.
| INTdis | Meaning |
|---|---|
| 0b00 | Masking of interrupts and SError exceptions is controlled by PSTATE and interrupt routing controls. |
| 0b01 | If ExternalInvasiveDebugEnabled() is TRUE, then all interrupts and SError exceptions taken to Non-secure EL1 are masked. |
| 0b10 | If ExternalInvasiveDebugEnabled() is TRUE, then all interrupts and SError exceptions taken to Non-secure state are masked. If ExternalSecureInvasiveDebugEnabled() is TRUE, then all interrupts and SError exceptions taken to Secure EL1 are masked. |
| 0b11 | If ExternalInvasiveDebugEnabled() is TRUE, then all interrupts and SError exceptions taken to Non-secure state are masked. If ExternalSecureInvasiveDebugEnabled() is TRUE, then all interrupts and SError exceptions taken to Secure state are masked. |
This control affects both physical and virtual interrupts and SError exceptions.
When OSLSR_EL1.OSLK is 1, this field can be indirectly read and written through the following System registers:
- MDSCR_EL1.
- DBGDSCRext. The Effective value of this field is 0b00 when ExternalInvasiveDebugEnabled() is FALSE.
Support for the values 0b01 and 0b10 is IMPLEMENTATION DEFINED. If these values are not supported, they are reserved. If programmed with a reserved value, the PE behaves as if EDSCR.INTdis has been programmed with a defined value, other than for a direct read of EDSCR, and the value returned by a read of EDSCR.INTdis is UNKNOWN.
The reset behavior of this field is:
- On a Cold reset, this field resets to '00'.
TDA, bit [21]:
Traps accesses to the following debug registers:
- AArch64: DBGBCR<n>_EL1, DBGBVR<n>_EL1, DBGWCR<n>_EL1, DBGWVR<n>_EL1.
- AArch32: DBGBCR<n>, DBGBVR<n>, DBGBXVR<n>, DBGWCR<n>, DBGWVR<n>.
| TDA | Meaning |
|---|---|
| 0b0 | Accesses to debug registers do not generate a Software Access Debug event. |
| 0b1 | Accesses to debug registers generate a Software Access Debug event, if OSLSR_EL1.OSLK is 0 and if halting is allowed. |
When OSLSR_EL1.OSLK is 1, this bit can be indirectly read and written through MDSCR_EL1 and DBGDSCRext.
The reset behavior of this field is:
- On a Cold reset, this field resets to '0'.
MA, bit [20]:
Memory access mode. Controls the use of Memory access mode for accessing ITR and the DCC. This bit is ignored if in Non-debug state and set to zero on entry to Debug state.
Possible values of this field are:
| MA | Meaning |
|---|---|
| 0b0 | Normal access mode. |
| 0b1 | Memory access mode. |
The reset behavior of this field is:
- On a Cold reset, this field resets to '0'.
SC2, bit [19] when FEAT_PCSRv8 is implemented, EL2 is implemented, FEAT_Debugv8p1 is implemented, and FEAT_PCSRv8p2 is not implemented:
Sample CONTEXTIDR_EL2. Controls whether the PC Sample-based Profiling Extension samples CONTEXTIDR_EL2 or VTTBR_EL2.VMID.
| SC2 | Meaning |
|---|---|
| 0b0 | Sample VTTBR_EL2.VMID. |
| 0b1 | Sample CONTEXTIDR_EL2. |
When OSLSR_EL1.OSLK is 1, this bit can be indirectly read and written through MDSCR_EL1 and DBGDSCRext.
The reset behavior of this field is:
- On a Cold reset, this field resets to '0'.
Otherwise:
Reserved, RES0.
NS, bit [18] when FEAT_RME is implemented:
Non-secure status. Together with the NSE field, gives the current Security state:
| NSE | NS | Meaning |
|---|---|---|
| 0b0 | 0b0 | When Secure state is implemented, Secure. Otherwise reserved. |
| 0b0 | 0b1 | Non-secure. |
| 0b1 | 0b0 | Root. |
| 0b1 | 0b1 | Realm. |
Accessing this field has the following behavior:
- When the PE is in Non-debug state, access to this field is UNKNOWN/WI.
- Otherwise, access to this field is RO.
Otherwise:
Non-secure status. In Debug state, gives the current Security state:
| NS | Meaning |
|---|---|
| 0b0 | Secure state. |
| 0b1 | Non-secure state. |
Accessing this field has the following behavior:
- When the PE is in Non-debug state, access to this field is UNKNOWN/WI.
- Otherwise, access to this field is RO.
Bit [17]:
Reserved, RES0.
SDD, bit [16] when FEAT_RME is implemented:
EL3 debug disabled.
On entry to Debug state:
- If entering from EL3, SDD is set to 0.
- Otherwise, SDD is set to the inverse of ExternalRootInvasiveDebugEnabled(). In Debug state, the value of SDD does not change, even if ExternalRootInvasiveDebugEnabled() changes.
In Non-debug state, SDD returns the inverse of ExternalRootInvasiveDebugEnabled(), regardless of the current Security state of the PE.
Access to this field is RO.
when FEAT_Secure is implemented:
Secure debug disabled.
On entry to Debug state:
- If entering in Secure state, then SDD is set to 0.
- If entering in Non-secure state, then SDD is set to the inverse of ExternalSecureInvasiveDebugEnabled(). In Debug state, the value of the SDD bit does not change, even if ExternalSecureInvasiveDebugEnabled() changes.
In Non-debug state, SDD returns the inverse of ExternalSecureInvasiveDebugEnabled(), regardless of the current Security state of the PE. If the authentication signals that control ExternalSecureInvasiveDebugEnabled() change, then a context synchronization event is required to guarantee their effect.
Access to this field is RO.
Otherwise:
Reserved, RES1.
NSE, bit [15] when FEAT_RME is implemented:
Together with the NS field, this field gives the current Security state.
For a description of the values derived by evaluating NS and NSE together, see EDSCR.NS.
In Non-debug state, this bit is UNKNOWN.
Access to this field is RO.
Otherwise:
Reserved, RES0.
HDE, bit [14]:
Halting debug enable.
| HDE | Meaning |
|---|---|
| 0b0 | Halting disabled for Breakpoint, Watchpoint and Halt Instruction debug events. |
| 0b1 | Halting enabled for Breakpoint, Watchpoint and Halt Instruction debug events. |
When OSLSR_EL1.OSLK is 1, this bit can be indirectly read and written through MDSCR_EL1 and DBGDSCRext.
The reset behavior of this field is:
- On a Cold reset, this field resets to '0'.
RW, bits [13:10]:
Exception level Execution state status. In Debug state, each bit gives the current Execution state of each Exception level.
| RW | Meaning | Applies when |
|---|---|---|
| 0b1111 | Any of the following: The PE is in Non-debug state. The PE is at EL0 using AArch64. The PE is not at EL0, and EL1 is using AArch64. If implemented and enabled in the current Security state, EL2 and EL3 are using AArch64. | |
| 0b1110 | The PE is in Debug state at EL0. EL0 is using AArch32. EL1 is using AArch64. If implemented and enabled in the current Security state, EL2 and EL3 are using AArch64. | When FEAT_AA32 is implemented |
| 0b110x | The PE is in Debug state. EL0 and EL1 are using AArch32. EL2 is enabled in the current Security state and is using AArch64. If implemented, EL3 is using AArch64. | When FEAT_AA32 is implemented and EL2 is implemented |
| 0b10xx | The PE is in Debug state. EL0 and EL1 are using AArch32. EL2 is not implemented, disabled in the current Security state, or using AArch32. EL3 is using AArch64. | When FEAT_AA32 is implemented and EL3 is implemented |
| 0b0xxx | The PE is in Debug state. All Exception levels are using AArch32. | When FEAT_AA32 is implemented |
Accessing this field has the following behavior:
- When the PE is in Non-debug state, access to this field is RAO/WI.
- Otherwise, access to this field is RO.
EL, bits [9:8]:
Exception level. In Debug state, gives the current Exception level of the PE.
Accessing this field has the following behavior:
- When the PE is in Non-debug state, access to this field is RAZ/WI.
- Otherwise, access to this field is RO.
A, bit [7]:
SError exception pending. In Debug state, indicates whether an SError exception is pending:
- If EL2 is enabled in the current Security state, the PE is executing at EL0 or EL1, HCR_EL2.TGE is 0 and either HCR_EL2.AMO is 1, a virtual SError exception.
- If EL2 is enabled in the current Security state, the PE is executing at EL0 or EL1, FEAT_DoubleFault2 is implemented and the Effective value of HCRX_EL2.TMEA is 1, a virtual SError exception.
- Otherwise, if FEAT_E3DSE is implemented, the PE is executing at EL0, EL1, or EL2, and the Effective value of SCR_EL3.EnDSE is 1, a delegated SError exception.
- Otherwise, a physical SError exception.
| A | Meaning |
|---|---|
| 0b0 | No SError exception pending. |
| 0b1 | SError exception pending. |
A debugger can read EDSCR to check whether an SError exception is pending without having to execute further instructions. A pending SError might indicate data from target memory is corrupted.
Accessing this field has the following behavior:
- When the PE is in Non-debug state, access to this field is UNKNOWN/WI.
- Otherwise, access to this field is RO.
ERR, bit [6]:
Cumulative error flag. This bit is set to 1 following exceptions in Debug state and on any signaled overrun or underrun on the DTR or EDITR.
When OSLSR_EL1.OSLK is 1, this bit can be indirectly read and written through MDSCR_EL1 and DBGDSCRext.
The reset behavior of this field is:
- On a Cold reset, this field resets to '0'. Access to this field is RO.
STATUS, bits [5:0]:
On entering Debug state, the PE sets this field to indicate the reason for halting.
| STATUS | Meaning |
|---|---|
| 0b000001 | PE is restarting, exiting Debug state. |
| 0b000010 | PE is in Non-debug state. |
| 0b000111 | Breakpoint. |
| 0b010011 | External debug request. |
| 0b011011 | Halting step, normal. |
| 0b011111 | Halting step, exclusive. |
| 0b100011 | OS Unlock Catch. |
| 0b100111 | Reset Catch. |
| 0b101011 | Watchpoint. |
| 0b101111 | HLT instruction. |
| 0b110011 | Software access to debug register. |
| 0b110111 | Exception Catch. |
| 0b111011 | Halting step, no syndrome. |
All other values are reserved.
The PE resets into Non-debug state. However, if the PE enters Debug state immediately after reset, then the reset value is overwritten with the reason for halting.
Arm deprecates software use of the Halting step, normal and Halting step, exclusive values.
The reset behavior of this field is:
- On a Cold reset, this field resets to '000010'. Access to this field is RO.
Accessing EDSCR
EDSCR can be accessed through the external debug interface:
| Component | Offset | Instance |
|---|---|---|
| Debug | 0x088 | EDSCR |
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.