MDSCR_EL1
Monitor Debug System Control Register
Main control register for the debug implementation.
Configuration
AArch64 System register MDSCR_EL1 bits [31:0] are architecturally mapped to AArch32 System register DBGDSCRext[31:0].
AArch64 System register MDSCR_EL1 bit [15] is architecturally mapped to AArch32 System register DBGDSCRint[15].
AArch64 System register MDSCR_EL1 bit [12] is architecturally mapped to AArch32 System register DBGDSCRint[12].
AArch64 System register MDSCR_EL1 bits [5:2] are architecturally mapped to AArch32 System register DBGDSCRint[5:2].
AArch64 System register MDSCR_EL1 bits [31:29, 27:26, 23:21, 19, 14, 6] are architecturally mapped to External register EDSCR[31:29, 27:26, 23:21, 19, 14, 6] when FEAT_AA64 is implemented.
AArch64 System register MDSCR_EL1 bits [35, 33] are architecturally mapped to External register EDSCR2[3, 1].
This register is present only when FEAT_AA64 is implemented. Otherwise, direct accesses to MDSCR_EL1 are UNDEFINED.
Attributes
MDSCR_EL1 is a 64-bit register.
Field descriptions
| 63 | 62 | 61 | 60 | 59 | 58 | 57 | 56 | 55 | 54 | 53 | 52 | 51 | 50 | 49 | 48 | 47 | 46 | 45 | 44 | 43 | 42 | 41 | 40 | 39 | 38 | 37 | 36 | 35 | 34 | 33 | 32 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 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 | EnSTEPOP | RES0 | EHBWE | EnSPM | TTA | EMBWE | |||||||||||||||||||||||||
| TFO | RXfull | TXfull | RES0 | RXO | TXU | RES0 | INTdis | TDA | RES0 | SC2 | RAZ/WI | MDE | HDE | KDE | TDCC | RES0 | ERR | RES0 | SS | ||||||||||||
Bits [63:51]:
Reserved, RES0.
EnSTEPOP, bit [50] when FEAT_STEP2 is implemented:
Software step control bit. Enable execution from MDSTEPOP_EL1. Permitted values are:
| EnSTEPOP | Meaning |
|---|---|
| 0b0 |
Execution from MDSTEPOP_EL1 is disabled. |
| 0b1 |
Execution from MDSTEPOP_EL1 is not disabled by this control. |
The reset behavior of this field is:
- On a Warm reset, this field resets to an architecturally UNKNOWN value.
Otherwise:
Reserved, RES0.
Bits [49:36]:
Reserved, RES0.
EHBWE, bit [35] when FEAT_Debugv8p9 is implemented:
Extended Halting Breakpoint and Watchpoint Enable. Used for save/restore of EDSCR2.EHBWE.
When OSLSR_EL1.OSLK is 0, software must treat this field as UNK/SBZP.
When OSLSR_EL1.OSLK is 1, this field holds the value of EDSCR2.EHBWE. Reads and writes of this field are indirect accesses to EDSCR2.EHBWE.
It is IMPLEMENTATION DEFINED whether this field is implemented or is RES0 when 16 or fewer breakpoints are implemented, 16 or fewer watchpoints are implemented, and MDSELR_EL1 is implemented as RAZ/WI.
The reset behavior of this field is:
- On a Cold reset, this field resets to '0'.
Accessing this field has the following behavior:
- When OSLSR_EL1.OSLK == '0', access to this field is RO.
- Otherwise, access to this field is RW.
Otherwise:
Reserved, RES0.
EnSPM, bit [34] when FEAT_SPMU is implemented:
Enable access to System PMU registers. When disabled, accesses to System PMU registers generate a trap to EL1.
| EnSPM | Meaning |
|---|---|
| 0b0 |
Accesses of the specified System PMU registers at EL0 are trapped to EL1, unless the instruction generates a higher priority exception. |
| 0b1 |
Accesses of the specified System PMU registers are not trapped by this mechanism. |
In AArch64 state, the instructions affected by this control are: MRS and MSR accesses to SPMCNTENCLR_EL0, SPMCNTENSET_EL0, SPMCR_EL0, SPMEVCNTR<n>_EL0, SPMEVFILT2R<n>_EL0, SPMEVFILTR<n>_EL0, SPMEVTYPER<n>_EL0, SPMOVSCLR_EL0, SPMOVSSET_EL0, and SPMSELR_EL0.
Unless the instruction generates a higher priority exception:
- If EL2 is implemented and enabled in the current Security state, and HCR_EL2.TGE is 1, then trapped instructions generate an exception to EL2.
- Otherwise, trapped instructions generate an exception to EL1.
Trapped instructions are reported using EC syndrome value 0x18.
The reset behavior of this field is:
- On a Warm reset, this field resets to an architecturally UNKNOWN value.
Otherwise:
Reserved, RES0.
TTA, bit [33] when FEAT_TRBE_EXT is implemented or FEAT_ETEv1p3 is implemented:
Trap Trace Accesses. Used for save/restore of EDSCR2.TTA.
When OSLSR_EL1.OSLK is 0, software must treat this field as UNK/SBZP.
When OSLSR_EL1.OSLK is 1, this field holds the value of EDSCR2.TTA. Reads and writes of this field are indirect accesses to EDSCR2.TTA.
The reset behavior of this field is:
- On a Cold reset, this field resets to '0'.
Accessing this field has the following behavior:
- When OSLSR_EL1.OSLK == '0', access to this field is RO.
- Otherwise, access to this field is RW.
Otherwise:
Reserved, RES0.
EMBWE, bit [32] when FEAT_Debugv8p9 is implemented:
Extended Monitor Breakpoint and Watchpoint Enable. Enables use of additional breakpoints or watchpoints.
| EMBWE | Meaning |
|---|---|
| 0b0 |
Breakpoint and Watchpoint exceptions are disabled for each breakpoint <n> and watchpoint <n>, where n is greater than or equal to 16. The Effective value of MDSELR_EL1.BANK is zero at EL1. |
| 0b1 |
Breakpoint and Watchpoint exceptions are not affected by this mechanism. The Effective value of MDSELR_EL1.BANK is not affected by this field. |
It is IMPLEMENTATION DEFINED whether this field is implemented or is RES0 when 16 or fewer breakpoints are implemented, 16 or fewer watchpoints are implemented, and MDSELR_EL1 is implemented as RAZ/WI.
This field is ignored by the PE and treated as zero when any of the following are true:
- EL3 is implemented and MDCR_EL3.EBWE is 0.
- EL2 is implemented and enabled in the current Security state, and MDCR_EL2.EBWE is 0.
The reset behavior of this field is:
-
On a Warm reset:
- When the highest implemented Exception level is EL1, this field resets to '0'.
- Otherwise, this field resets to an architecturally UNKNOWN value.
Otherwise:
Reserved, RES0.
TFO, bit [31] when FEAT_TRF is implemented:
Trace Filter override. Used for save/restore of EDSCR.TFO.
When OSLSR_EL1.OSLK == 0, software must treat this bit as UNK/SBZP.
When OSLSR_EL1.OSLK == 1, this bit holds the value of EDSCR.TFO. Reads and writes of this bit are indirect accesses to EDSCR.TFO.
The reset behavior of this field is:
- On a Cold reset, this field resets to '0'.
Accessing this field has the following behavior:
- When OSLSR_EL1.OSLK == '1', access to this field is RW.
- When OSLSR_EL1.OSLK == '0', access to this field is RO.
Otherwise:
Reserved, RES0.
RXfull, bit [30]:
Used for save/restore of EDSCR.RXfull.
When OSLSR_EL1.OSLK == 0, software must treat this bit as UNK/SBZP.
When OSLSR_EL1.OSLK == 1, this bit holds the value of EDSCR.RXfull. Reads and writes of this bit are indirect accesses to EDSCR.RXfull.
The reset behavior of this field is:
- On a Cold reset, this field resets to '0'.
Accessing this field has the following behavior:
- When OSLSR_EL1.OSLK == '1', access to this field is RW.
- When OSLSR_EL1.OSLK == '0', access to this field is RO.
TXfull, bit [29]:
Used for save/restore of EDSCR.TXfull.
When OSLSR_EL1.OSLK == 0, software must treat this bit as UNK/SBZP.
When OSLSR_EL1.OSLK == 1, this bit holds the value of EDSCR.TXfull. Reads and writes of this bit are indirect accesses to EDSCR.TXfull.
The reset behavior of this field is:
- On a Cold reset, this field resets to '0'.
Accessing this field has the following behavior:
- When OSLSR_EL1.OSLK == '1', access to this field is RW.
- When OSLSR_EL1.OSLK == '0', access to this field is RO.
Bit [28]:
Reserved, RES0.
RXO, bit [27]:
Used for save/restore of EDSCR.RXO.
When OSLSR_EL1.OSLK == 0, software must treat this bit as UNK/SBZP.
When OSLSR_EL1.OSLK == 1, this bit holds the value of EDSCR.RXO. Reads and writes of this bit are indirect accesses to EDSCR.RXO.
When OSLSR_EL1.OSLK == 1, if bits [27,6] of the value written to MDSCR_EL1 are {1,0}, that is, the RXO bit is 1 and the ERR bit is 0, the PE sets EDSCR.{RXO,ERR} to UNKNOWN values.
The reset behavior of this field is:
- On a Cold reset, this field resets to '0'.
Accessing this field has the following behavior:
- When OSLSR_EL1.OSLK == '1', access to this field is RW.
- When OSLSR_EL1.OSLK == '0', access to this field is RO.
TXU, bit [26]:
Used for save/restore of EDSCR.TXU.
When OSLSR_EL1.OSLK == 0, software must treat this bit as UNK/SBZP.
When OSLSR_EL1.OSLK == 1, this bit holds the value of EDSCR.TXU. Reads and writes of this bit are indirect accesses to EDSCR.TXU.
When OSLSR_EL1.OSLK == 1, if bits [26,6] of the value written to MDSCR_EL1 are {1,0}, that is, the TXU bit is 1 and the ERR bit is 0, the PE sets EDSCR.{TXU,ERR} to UNKNOWN values.
The reset behavior of this field is:
- On a Cold reset, this field resets to '0'.
Accessing this field has the following behavior:
- When OSLSR_EL1.OSLK == '1', access to this field is RW.
- When OSLSR_EL1.OSLK == '0', access to this field is RO.
Bits [25:24]:
Reserved, RES0.
INTdis, bits [23:22]:
Used for save/restore of EDSCR.INTdis.
When OSLSR_EL1.OSLK == 0, software must treat this bit as UNK/SBZP.
When OSLSR_EL1.OSLK == 1, this field holds the value of EDSCR.INTdis. Reads and writes of this field are indirect accesses to EDSCR.INTdis.
The reset behavior of this field is:
- On a Cold reset, this field resets to '00'.
Accessing this field has the following behavior:
- When OSLSR_EL1.OSLK == '1', access to this field is RW.
- When OSLSR_EL1.OSLK == '0', access to this field is RO.
TDA, bit [21]:
Used for save/restore of EDSCR.TDA.
When OSLSR_EL1.OSLK == 0, software must treat this bit as UNK/SBZP.
When OSLSR_EL1.OSLK == 1, this bit holds the value of EDSCR.TDA. Reads and writes of this bit are indirect accesses to EDSCR.TDA.
The reset behavior of this field is:
- On a Cold reset, this field resets to '0'.
Accessing this field has the following behavior:
- When OSLSR_EL1.OSLK == '1', access to this field is RW.
- When OSLSR_EL1.OSLK == '0', access to this field is RO.
Bit [20]:
Reserved, RES0.
SC2, bit [19] when FEAT_PCSRv8 is implemented, FEAT_VHE is implemented, and FEAT_PCSRv8p2 is not implemented:
Used for save/restore of EDSCR.SC2.
When OSLSR_EL1.OSLK == 0, software must treat this bit as UNK/SBZP.
When OSLSR_EL1.OSLK == 1, this bit holds the value of EDSCR.SC2. Reads and writes of this bit are indirect accesses to EDSCR.SC2.
The reset behavior of this field is:
- On a Cold reset, this field resets to '0'.
Accessing this field has the following behavior:
- When OSLSR_EL1.OSLK == '1', access to this field is RW.
- When OSLSR_EL1.OSLK == '0', access to this field is RO.
Otherwise:
Reserved, RES0.
Bits [18:16]:
Reserved, RAZ/WI.
Hardware must implement this field as RAZ/WI. Software must not rely on the register reading as zero, and must use a read-modify-write sequence to write to the register.
MDE, bit [15]:
Monitor debug events. Enable Breakpoint, Watchpoint, and Vector Catch exceptions.
| MDE | Meaning |
|---|---|
| 0b0 |
Breakpoint, Watchpoint, and Vector Catch exceptions disabled. |
| 0b1 |
Breakpoint, Watchpoint, and Vector Catch exceptions enabled. |
The reset behavior of this field is:
- On a Warm reset, this field resets to an architecturally UNKNOWN value.
HDE, bit [14]:
Used for save/restore of EDSCR.HDE.
When OSLSR_EL1.OSLK == 0, software must treat this bit as UNK/SBZP.
When OSLSR_EL1.OSLK == 1, this bit holds the value of EDSCR.HDE. Reads and writes of this bit are indirect accesses to EDSCR.HDE.
The reset behavior of this field is:
- On a Cold reset, this field resets to '0'.
Accessing this field has the following behavior:
- When OSLSR_EL1.OSLK == '1', access to this field is RW.
- When OSLSR_EL1.OSLK == '0', access to this field is RO.
KDE, bit [13]:
Local (kernel) debug enable. If ELD is using AArch64, enable debug exceptions within ELD. Permitted values are:
| KDE | Meaning |
|---|---|
| 0b0 |
Debug exceptions, other than Breakpoint Instruction exceptions, disabled within ELD. |
| 0b1 |
All debug exceptions enabled within ELD. |
RES0 if ELD is using AArch32.
The reset behavior of this field is:
- On a Warm reset, this field resets to an architecturally UNKNOWN value.
TDCC, bit [12]:
Traps EL0 accesses to the Debug Communication Channel (DCC) registers to EL1, or to EL2 when it is implemented and enabled for the current Security state and HCR_EL2.TGE is 1, from both Execution states, as follows:
-
In AArch64 state, MRS or MSR accesses to the following DCC System registers are trapped,
reported using EC syndrome value 0x18:
- If not in Debug state, MDCCSR_EL0, DBGDTR_EL0, DBGDTRTX_EL0, and DBGDTRRX_EL0.
- It is CONSTRAINED UNPREDICTABLE whether AArch64 MRS or MSR accesses to MDCCSR_EL0 are trapped in Debug state.
- AArch64 MRS or MSR accesses to DBGDTR_EL0, DBGDTRTX_EL0, and DBGDTRRX_EL0 are not trapped in Debug state.
-
In AArch32 state, MRC or MCR accesses to the following registers are trapped, reported
using EC syndrome value 0x05.
- DBGDSAR, DBGDRAR.
- If not in Debug state, DBGDSCRint, DBGDIDR, DBGDTRRXint, and DBGDTRTXint.
- It is CONSTRAINED UNPREDICTABLE whether AArch32 MRC or MCR accesses to DBGDSCRint and DBGDIDR are trapped in Debug state.
- AArch32 MRC or MCR accesses to DBGDTRRXint and DBGDTRTXint are not trapped in Debug state.
- In AArch32 state, LDC access to DBGDTRRXint and STC access to DBGDTRTXint are trapped, reported using EC syndrome value 0x06.
- In AArch32 state, MRRC accesses to DBGDSAR and DBGDRAR are trapped, reported using EC syndrome value 0x0C.
| TDCC | Meaning |
|---|---|
| 0b0 |
This control does not cause any instructions to be trapped. |
| 0b1 |
EL0 using AArch64: EL0 accesses to the AArch64 DCC System registers are trapped. EL0 using AArch32: EL0 accesses to the AArch32 DCC System registers are trapped. |
The reset behavior of this field is:
- On a Warm reset, this field resets to an architecturally UNKNOWN value.
Bits [11:7]:
Reserved, RES0.
ERR, bit [6]:
Used for save/restore of EDSCR.ERR.
When OSLSR_EL1.OSLK == 0, software must treat this bit as UNK/SBZP.
When OSLSR_EL1.OSLK == 1, this bit holds the value of EDSCR.ERR. Reads and writes of this bit are indirect accesses to EDSCR.ERR.
The reset behavior of this field is:
- On a Cold reset, this field resets to '0'.
Accessing this field has the following behavior:
- When OSLSR_EL1.OSLK == '1', access to this field is RW.
- When OSLSR_EL1.OSLK == '0', access to this field is RO.
Bits [5:1]:
Reserved, RES0.
SS, bit [0]:
Software step control bit. If ELD is using AArch64, enable Software step. Permitted values are:
| SS | Meaning |
|---|---|
| 0b0 |
Software step disabled |
| 0b1 |
Software step enabled. |
RES0 if ELD is using AArch32.
The reset behavior of this field is:
- On a Warm reset, this field resets to an architecturally UNKNOWN value.
Access Instructions
Accesses to this register use the following encodings in the System register encoding space:
MRS <Xt>, MDSCR_EL1
(op0 = 0b10, op1 = 0b000, CRn = 0b0000, CRm = 0b0010, op2 = 0b010)
if !IsFeatureImplemented(FEAT_AA64) then
Undefined();
elsif HaveEL(EL3) && !(EffectivelyAtEL0InHost() || EffectivelyAtEL0NotInHost() || PSTATE.EL == EL3) && EL3SDDUndefPriority() && MDCR_EL3().TDA == '1' then
Undefined();
elsif PSTATE.EL == EL0 then
Undefined();
elsif PSTATE.EL == EL1 then
if EL2Enabled() && IsFeatureImplemented(FEAT_FGT) && (!HaveEL(EL3) || SCR_EL3().FGTEn == '1') && HDFGRTR_EL2().MDSCR_EL1 == '1' then
AArch64_SystemAccessTrap(EL2, 0x18);
elsif EL2Enabled() && MDCR_EL2().[TDE,TDA] != '00' then
AArch64_SystemAccessTrap(EL2, 0x18);
elsif HaveEL(EL3) && MDCR_EL3().TDA == '1' then
if EL3SDDUndef() then
Undefined();
else
AArch64_SystemAccessTrap(EL3, 0x18);
end;
elsif EffectiveHCR_EL2_NVx() IN {'1x1'} then
X{64}(t) = NVMem(0x158);
else
X{64}(t) = MDSCR_EL1();
end;
elsif PSTATE.EL == EL2 then
if HaveEL(EL3) && MDCR_EL3().TDA == '1' then
if EL3SDDUndef() then
Undefined();
else
AArch64_SystemAccessTrap(EL3, 0x18);
end;
else
X{64}(t) = MDSCR_EL1();
end;
elsif PSTATE.EL == EL3 then
X{64}(t) = MDSCR_EL1();
end;
MSR MDSCR_EL1, <Xt>
(op0 = 0b10, op1 = 0b000, CRn = 0b0000, CRm = 0b0010, op2 = 0b010)
if !IsFeatureImplemented(FEAT_AA64) then
Undefined();
elsif HaveEL(EL3) && !(EffectivelyAtEL0InHost() || EffectivelyAtEL0NotInHost() || PSTATE.EL == EL3) && EL3SDDUndefPriority() && MDCR_EL3().TDA == '1' then
Undefined();
elsif PSTATE.EL == EL0 then
Undefined();
elsif PSTATE.EL == EL1 then
if EL2Enabled() && IsFeatureImplemented(FEAT_FGT) && (!HaveEL(EL3) || SCR_EL3().FGTEn == '1') && HDFGWTR_EL2().MDSCR_EL1 == '1' then
AArch64_SystemAccessTrap(EL2, 0x18);
elsif EL2Enabled() && MDCR_EL2().[TDE,TDA] != '00' then
AArch64_SystemAccessTrap(EL2, 0x18);
elsif HaveEL(EL3) && MDCR_EL3().TDA == '1' then
if EL3SDDUndef() then
Undefined();
else
AArch64_SystemAccessTrap(EL3, 0x18);
end;
elsif EffectiveHCR_EL2_NVx() IN {'1x1'} then
NVMem(0x158) = X{64}(t);
else
MDSCR_EL1() = X{64}(t);
end;
elsif PSTATE.EL == EL2 then
if HaveEL(EL3) && MDCR_EL3().TDA == '1' then
if EL3SDDUndef() then
Undefined();
else
AArch64_SystemAccessTrap(EL3, 0x18);
end;
else
MDSCR_EL1() = X{64}(t);
end;
elsif PSTATE.EL == EL3 then
MDSCR_EL1() = X{64}(t);
end;
Version 2026.09 — Copyright © 2010-2026 Arm Limited or its affiliates.
This site is provided as a community resource and is NOT affiliated with nor endorsed by Arm Limited.