Appendix D: ESR and fault-status decode card
This card is for decoding ESR_ELx with a crash dump open. 3.2 explains when ESR, ELR and FAR are written and valid. 5.8 explains the abort fields and the fault-address registers. 18.1 works through five complete dumps using this card. Values were checked against the ESR_EL1/ESR_EL2 register XML. When a class here says “see DDI0487”, its ISS has more structure than a card can hold.
Layout and decode order
63 56 55 32 31 26 25 24 0
+----------+--------------+--------+---+------------------------+
| RES0 | ISS2 | EC |IL | ISS |
+----------+--------------+--------+---+------------------------+
- Which ESR. The exception went to the EL whose
ESR_ELxyou are reading. “Lower EL” and “same EL” in the class names are relative to that EL. - EC =
ESR[31:26], then pick the ISS layout below. - IL =
ESR[25]is 1 for every A64 instruction and for exceptions not tied to an instruction length (SError, Instruction Aborts, alignment faults, most debug exceptions). It is 0 only when the trapped or faulting instruction is a 16-bit T32 instruction. - ISS =
ESR[24:0], then ISS2 =ESR[55:32], which only some classes use. - The address registers, only where the class says they are valid:
FAR_ELx(VA),HPFAR_EL2(IPA),PFAR_ELx(PA, FEAT_PFAR) (5.8).
A quick way to read a 32-bit value: ESR >> 26 is the EC, and with IL = 1 the top byte of the value is (EC << 2) | 0b10. So 0x96… is EC 0x25, 0x92… is 0x24, 0x86… is 0x21, 0x62… is 0x18 and 0xBE… is 0x2F.
Exception classes
“Taken to” lists the ELs at which an exception of this class can be reported. AArch32-only classes are listed for completeness at the end.
| EC | ESR (IL = 1, ISS = 0) | Class | Taken to | ISS | Section |
|---|---|---|---|---|---|
0x00 | 0x02000000 | Unknown reason: UNDEFINED instruction, or an access that is UNDEFINED at this EL | EL1, EL2, EL3 | RES0 | 2.3, 17.3 |
0x01 | 0x06000000 + ISS | Trapped WFI, WFE, WFIT, WFET | EL1, EL2, EL3 | below | 10.4, 11.1 |
0x07 | 0x1E000000 | Access to SME, SVE, Advanced SIMD or FP trapped by CPACR_EL1, CPTR_EL2 or CPTR_EL3 | EL1, EL2, EL3 | CV/COND for AArch32; otherwise no detail | 15.3 |
0x09 | 0x26000000 | PAuth instruction trapped by HCR_EL2.API or SCR_EL3.API | EL2, EL3 | RES0 | 13.1 |
0x0A | 0x2A000000 + ISS | LD64B/ST64B* trapped (FEAT_LS64) | EL1, EL2, EL3 | 0x0 ST64BV, 0x1 ST64BV0, 0x2 LD64B/ST64B; recent issues add 0x3/0x4 for trapped TSB CSYNC/PSB CSYNC | 10.3 |
0x0D | 0x36000000 + BTYPE | Branch Target exception (FEAT_BTI) | EL1, EL2, EL3 | BTYPE [1:0] | 13.1 |
0x0E | 0x3A000000 | Illegal Execution state (PSTATE.IL was set by an illegal exception return) | EL1, EL2, EL3 | RES0 | 3.2 |
0x14 | 0x52000000 + ISS | Trapped MRRS, MSRR, SYSP (FEAT_SYSREG128, FEAT_SYSINSTR128) | EL1, EL2, EL3 | like 0x18, with a second register; see DDI0487 | 2.5, 5.7 |
0x15 | 0x56000000 + imm | SVC from AArch64 | EL1, EL2, EL3 | imm16 [15:0] | 3.1 |
0x16 | 0x5A000000 + imm | HVC from AArch64 | EL2, EL3 | imm16 [15:0] | 11.1 |
0x17 | 0x5E000000 + imm | SMC from AArch64, at EL3, or trapped to EL2 by HCR_EL2.TSC | EL2, EL3 | imm16 [15:0] | 12.3 |
0x18 | 0x62000000 + ISS | Trapped MSR, MRS or System instruction | EL1, EL2, EL3 | below | 2.5, 17.3 |
0x19 | 0x66000000 | SVE access trapped by CPACR_EL1.ZEN, CPTR_EL2.ZEN/TZ or CPTR_EL3.EZ | EL1, EL2, EL3 | RES0 | 15.3 |
0x1A | 0x6A000000 + ISS | Trapped ERET, ERETAA, ERETAB (FEAT_NV, or FEAT_PAuth with HCR_EL2.API == 0) | EL2 | ERET vs ERETAx, and key; see DDI0487 | 11.2 |
0x1B | – | TSTART access (FEAT_TME) | EL1, EL2, EL3 | see DDI0487 | – |
0x1C | 0x72000000 + key | PAC authentication failure (FEAT_FPAC) | EL1, EL2, EL3 | [1]: 0 instruction key, 1 data key; [0]: 0 A key, 1 B key | 13.1, 18.1 |
0x1D | 0x76000000 + SMTC | SME trap or illegal SME use | EL1, EL2, EL3 | SMTC [2:0], below | 15.3 |
0x1E | 0x7A000000 + ISS | Granule Protection Check exception (FEAT_RME) | EL3 | GPC fault status, level, S2PTW, InD, WnR; see DDI0487 | 12.4 |
0x1F | – | IMPLEMENTATION DEFINED | EL3 | IMPLEMENTATION DEFINED | core TRM |
0x20 | 0x82000000 + IFSC | Instruction Abort from a lower EL | EL1, EL2, EL3 | below | 5.8 |
0x21 | 0x86000000 + IFSC | Instruction Abort, same EL | EL1, EL2, EL3 | below | 5.8 |
0x22 | 0x8A000000 | PC alignment fault | EL1, EL2, EL3 | RES0 (FAR holds the PC) | 3.2 |
0x24 | 0x92000000 + ISS | Data Abort from a lower EL | EL1, EL2, EL3 | below | 5.8 |
0x25 | 0x96000000 + ISS | Data Abort, same EL | EL1, EL2, EL3 | below | 5.8 |
0x26 | 0x9A000000 | SP alignment fault | EL1, EL2, EL3 | RES0 | 3.1 |
0x27 | 0x9E000000 + ISS | Memory Operation exception (FEAT_MOPS) | EL1, EL2, EL3 | MemInst [24], isSETG [23], Options [22:19], FromEpilogue [18], WrongOption [17], OptionA [16], destreg [14:10], srcreg [9:5], sizereg [4:0] | 2.3 |
0x2C | 0xB2000000 + ISS | Trapped floating-point exception (AArch64), with FPCR trap enables set | EL1, EL2, EL3 | exception flags; see DDI0487 | 15.1 |
0x2D | 0xB6000000 + ISS | GCS exception (FEAT_GCS) | EL1, EL2, EL3 | ExType [23:20], below | 13.2 |
0x2F | 0xBE000000 + ISS | SError | EL1, EL2, EL3 | below | 3.4, 16.8 |
0x30, 0x31 | 0xC2000022, 0xC6000022 | Breakpoint, lower / same EL | EL1, EL2 | IFSC 0x22 | 16.1 |
0x32, 0x33 | 0xCA000022, 0xCE000022 | Software Step, lower / same EL | EL1, EL2 | ISV [24], EX [6], IFSC 0x22 | 16.1 |
0x34, 0x35 | 0xD2000022, 0xD6000022 | Watchpoint, lower / same EL | EL1, EL2 | below | 16.1 |
0x3C | 0xF2000000 + imm | BRK (AArch64) | EL1, EL2, EL3 | Comment [15:0] | 16.1 |
0x3D | 0xF6000000 | PMU exception (FEAT_EBEP) | EL1, EL2, EL3 | SYNC [0] (FEAT_SEBEP: 1 = taken synchronously because PSTATE.PPEND was set); rest RES0 | 2.4 |
AArch32 classes, seen only when a lower EL runs AArch32: 0x03/0x04 (MCR/MRC, MCRR/MRRC to CP15), 0x05/0x06/0x0C (CP14 accesses, LDC/STC), 0x08 (VMRS trapped by HCR_EL2.TID0/TID3, to EL2), 0x11/0x12/0x13 (SVC/HVC/SMC), 0x28 (trapped FP exception), 0x38 (BKPT) and 0x3A (Vector Catch, to EL2). Their ISS carries CV [24] and COND [23:20] for conditional instructions. All other EC values are reserved, and an unexpected one usually means the value being decoded is not an ESR (for example a corrupted save area).
ISS layouts by class
0x18: trapped MSR, MRS, System instruction
| ISS bits | [21:20] | [19:17] | [16:14] | [13:10] | [9:5] | [4:1] | [0] |
|---|---|---|---|---|---|---|---|
| Field | Op0 | Op2 | Op1 | CRn | Rt | CRm | Direction: 1 = read (MRS), 0 = write |
The fields are not in instruction order (2.5). Rebuild the name as S<Op0>_<Op1>_C<CRn>_C<CRm>_<Op2> and look it up. Op0 = 1 is a System instruction (DC, IC, TLBI, AT), and Op0 = 3 is a System register. Worked example: ISS 0x360820 is Op0 3, Op2 3, Op1 0, CRn 2, Rt 1, CRm 0, a write: MSR TCR2_EL1, X1 (18.1). Bits [24:22] are RES0.
0x01: trapped WFx
TI [1:0]: 0b00 WFI, 0b01 WFE, 0b10 WFIT, 0b11 WFET. RV [2] = 1 when RN [9:5] holds the timeout register (FEAT_WFxT). From AArch64, CV [24] = 1 and COND [23:20] = 0b1110, so a trapped AArch64 WFI reads 0x07E00000 and a trapped WFE reads 0x07E00001.
0x1D: SME
SMTC [2:0]: 0b000 access trapped by CPACR_EL1.SMEN, CPTR_EL2.SMEN/TSM or CPTR_EL3.ESM; 0b001 Advanced SIMD, SVE or SVE2 instruction illegal because PSTATE.SM == 1; 0b010 SME instruction illegal because PSTATE.SM == 0; 0b011 instruction illegal because PSTATE.ZA == 0; 0b100 ZT0 access trapped by SMCR_ELx.EZT0 (FEAT_SME2).
0x2D: GCS
ExType [23:20]: 0b0000 GCS data check (a return address did not match the GCS), 0b0001 EXLOCK exception, 0b0010 trapped GCSSTR/GCSSTTR. For a data check, IT [4:0] gives the instruction type (0b00000 RET without PAC, 0b00010/0b00011 RETAA/RETAB, 0b00001 GCSPOPM, and others) and Rn [9:5] the register (13.2).
0x20, 0x21: Instruction Abort
| Bits | Field | Meaning |
|---|---|---|
| [12:11] | SET | With FEAT_RAS, error state of a synchronous External abort |
| [10] | FnV | FAR not valid |
| [9] | EA | IMPLEMENTATION DEFINED External abort classification |
| [7] | S1PTW | Stage 2 fault on a stage 1 table walk |
| [5:0] | IFSC | Fault status, table below |
0x24, 0x25: Data Abort
| Bits | Field | Meaning |
|---|---|---|
| [24] | ISV | [23:14] hold a valid instruction syndrome |
| [23:22] | SAS | Access size: byte, halfword, word, doubleword |
| [21] | SSE | The load sign-extends |
| [20:16] | SRT | Transfer register |
| [15] | SF | 64-bit register |
| [14] | AR | Acquire/release semantics |
| [13] | VNCR | Fault on a VNCR_EL2-redirected access (FEAT_NV2) |
| [12:11] | SET (or LST for LS64 faults) | Error state of a synchronous External abort (FEAT_RAS) |
| [10] | FnV | FAR not valid |
| [9] | EA | IMPLEMENTATION DEFINED External abort classification |
| [8] | CM | Cache maintenance or AT instruction |
| [7] | S1PTW | Stage 2 fault on a stage 1 table walk |
| [6] | WnR | 1 = write. For a cache maintenance fault (CM = 1) it is 1 |
| [5:0] | DFSC | Fault status, table below |
ISV = 1 is mainly a stage 2 feature: a hypervisor gets a decoded syndrome for a single-register load or store without writeback, so it can emulate the MMIO access without fetching the instruction. It is 0 for faults on stage 1 walks, External aborts with FEAT_RAS, MOPS instructions and Allocation Tag accesses, and the LS64 instructions are a special case. Do not rely on ISV in an EL1 or EL3 handler.
ISS2 [55:32] for Data Aborts: Xs [4:0] (status register of ST64BV/ST64BV0), DirtyBit [5] (FEAT_S1PIE), Overlay [6] (a permission-overlay fault, FEAT_S1POE), AssuredOnly [7] (FEAT_THE), GCS [8] (the access was a GCS access), TagAccess [9] (FEAT_MTE_PERM), TnD [10] (tag, not data), HDBSSF [11] (FEAT_HDBSS). A Permission fault is ambiguous until you have read ISS2: the same DFSC 0x0F can be an ordinary AP/XN failure, an overlay failure or a GCS-page failure (5.5, 13.2).
0x34, 0x35: Watchpoint
WPT [23:18] and WPTV [17] give the watchpoint number (FEAT_Debugv8p2), WPF [16] and FnP [15] qualify the address, FnV [10], CM [8], WnR [6], and DFSC [5:0] = 0x22 (Debug exception). FAR holds an address that the access touched, which is not necessarily the watched address. ISS2 GCS [8] (FEAT_GCS) marks a watchpoint hit by a GCS data access.
0x2F: SError
| Bits | Field | Meaning |
|---|---|---|
| [24] | IDS | 1 = bits [23:0] are IMPLEMENTATION DEFINED (read the core TRM). 0 = the architected fields below |
| [13] | IESB | Synchronized by an implicit error synchronization event and taken immediately (FEAT_IESB) |
| [12:10] | AET | 0b000 Uncontainable (UC), 0b001 Unrecoverable (UEU), 0b010 Restartable (UEO), 0b011 Recoverable (UER), 0b110 Corrected (CE) |
| [9] | EA | IMPLEMENTATION DEFINED classification |
| [5:0] | DFSC | 0x00 uncategorized, 0x11 asynchronous SError. Other values reserved |
FEAT_RASv2 and FEAT_PFAR add, when DFSC == 0x11: ELS [18], WU [17:16], VFV [15] (FAR valid), PFV [14] (PFAR valid), WnRV [7] and WnR [6].
AET, EA and IESB are only valid when DFSC == 0x11, and all of them require FEAT_RAS. So 0xBE000011 means “an architected, uncategorized-by-source, Uncontainable asynchronous SError”. The PE has said all it can, and the error records hold the rest (3.4, 16.7, 18.3).
DFSC and IFSC values
The same 6-bit encoding is used by DFSC, IFSC, PAR_EL1.FST and several other fault-status fields. “Data only” marks values that cannot appear in an IFSC.
| Value | Fault | Level or note | Requires |
|---|---|---|---|
0x00–0x03 | Address size fault | level 0 (or the TTBR itself) to level 3 | – |
0x04–0x07 | Translation fault | level 0–3 | – |
0x08 | Access flag fault | level 0 | FEAT_LPA2 |
0x09–0x0B | Access flag fault | level 1–3 | – |
0x0C | Permission fault | level 0 | FEAT_LPA2 |
0x0D–0x0F | Permission fault | level 1–3 | – |
0x10 | Synchronous External abort, not on a translation table walk or hardware update | – | – |
0x11 | Synchronous Tag Check Fault (data only). In an SError ISS, 0x11 instead means “asynchronous SError” | – | FEAT_MTE2 |
0x12 | Synchronous External abort on a walk or hardware update | level −2 | FEAT_D128 |
0x13 | Synchronous External abort on a walk or hardware update | level −1 | FEAT_LPA2 |
0x14–0x17 | Synchronous External abort on a walk or hardware update | level 0–3 | – |
0x18 | Synchronous parity or ECC error on the access, not on a walk | – | only without FEAT_RAS |
0x1B | Synchronous parity or ECC error on a walk | level −1 | FEAT_LPA2, only without FEAT_RAS |
0x1C–0x1F | Synchronous parity or ECC error on a walk | level 0–3 | only without FEAT_RAS |
0x21 | Alignment fault (data only; a misaligned PC is EC 0x22) | – | – |
0x22 | Data Abort: Granule Protection Fault on a walk, level −2. Debug classes: Debug exception | context-dependent | FEAT_D128 and FEAT_RME |
0x23 | Granule Protection Fault on a walk or hardware update | level −1 | FEAT_RME, FEAT_LPA2 |
0x24–0x27 | Granule Protection Fault on a walk or hardware update | level 0–3 | FEAT_RME |
0x28 | Granule Protection Fault, not on a walk | – | FEAT_RME |
0x29 | Address size fault | level −1 | FEAT_LPA2 |
0x2A | Translation fault | level −2 | FEAT_D128 |
0x2B | Translation fault | level −1 | FEAT_LPA2 |
0x2C | Address size fault | level −2 | FEAT_D128 |
0x30 | TLB conflict abort | – | – |
0x31 | Unsupported atomic hardware update fault (data only) | – | FEAT_HAFDBS |
0x34 | IMPLEMENTATION DEFINED fault (Lockdown) | – | – |
0x35 | IMPLEMENTATION DEFINED fault (Unsupported Exclusive or Atomic access, data only) | – | – |
All other values are reserved. A walk-level fault reports the level of the descriptor that caused it: a level 0 Translation fault means the walk stopped at level 0 (or the VA was outside the TxSZ range), not that the leaf is at level 0.
Bring-up note: Software that decodes the level as
DFSC & 0x3gets levels −1 and −2 wrong, because those encodings (0x29–0x2C,0x12,0x13,0x1B,0x22,0x23) are not in the 4-value groups. Decode by table, as Linux’sESR_ELx_FSC_*helpers do, if the platform can have FEAT_LPA2 or FEAT_D128 enabled.
Fault signatures
The first suspect for each common syndrome during bring-up, with the section that explains the diagnosis. The ESR values assume IL = 1.
| Syndrome | Typical context | First suspect | Section |
|---|---|---|---|
EC 0x00 (0x02000000) at EL1 on an MRS/MSR that the core should support | Linux early boot, cpufeature probe | EL3 left the feature’s enable bit at 0, and a recent TF-A injected the trap back as an UNDEF. Older TF-A shows the next row instead | 17.3 |
EC 0x18 in ESR_EL3, ISS names a system register | EL3 panic during kernel boot | Missing SCR_EL3/CPTR_EL3/MDCR_EL3 enable for that register’s feature | 17.3, 18.1 |
EC 0x18 in ESR_EL2 | Guest boot under a hypervisor | HCR_EL2/HCRX_EL2/fine-grained trap, or HCRX_EL2 behaving as 0 because SCR_EL3.HXEn == 0 | 11.1, 18.1 |
EC 0x07 (0x1E000000) on the first FP/SIMD instruction | memcpy, printf or compiler-vectorised code in firmware | CPTR_EL3.TFP == 1 or CPACR_EL1.FPEN not enabled; or firmware built without -mgeneral-regs-only | 15.3 |
EC 0x19 or 0x1D | First SVE/SME use by the OS or the Secure world | CPTR_EL3.EZ/ESM, ZCR_EL3/SMCR_EL3, per-world CPTR_EL3 | 15.3, 17.3 |
EC 0x21, IFSC 0x04–0x07, FAR = the instruction after the MMU-enable MSR | First instruction after SCTLR_ELx.M = 1 | Enabling code not identity-mapped, or wrong TTBR0/T0SZ | 5.8, 9.3, 18.3 |
EC 0x25, DFSC 0x04–0x07 | First data access after MMU-on | TTBR0/TTBR1 range, EPDn, or page tables not cleaned to the PoC while caches were off | 5.8, 9.3 |
EC 0x25, DFSC 0x00–0x03 | Same | TCR_ELx.PS/IPS smaller than the table or output address | 5.8 |
EC 0x25, DFSC 0x09–0x0B | Hand-built tables | Descriptor AF (bit 10) clear, hardware AF not enabled | 5.6 |
EC 0x25, DFSC 0x0D–0x0F | Write to a page that should be writable | AP bits, PAN, WXN, or (read ISS2) an overlay or GCS-page fault | 5.5 |
EC 0x25, DFSC 0x21 (0x96000021/0x96000061) | Early C with MMU off | Data accesses are Device-nGnRnE with the MMU off; unaligned access from compiler code | 5.8, 18.1 |
EC 0x25, DFSC 0x10 | MMIO access | Unclocked, powered-down or unmapped peripheral; interconnect or firewall error response | 3.4, 16.7 |
DFSC 0x14–0x17 | Any walk | Page tables in DRAM that is not trained yet, or behind a firewall for the walk’s PAS | 5.8 |
DFSC 0x30 | Remapping a live region | Break-before-make violation (block to table, or output address change) | 9.2 |
DFSC 0x35 | Spinlock before the MMU and caches are on | Exclusive or atomic on Device or Non-cacheable memory | 10.1, 10.4 |
DFSC 0x11 | MTE-enabled kernel or allocator | A real tag mismatch, or tags not initialised for the granule (STG/DC GZVA missing) | 13.5 |
DFSC 0x23–0x28, or EC 0x1E in ESR_EL3 | RME system, first Realm or Non-secure access to a granule | GPT entry marks the PA for another PAS, or GPCCR_EL3/GPTBR_EL3 set up wrong | 12.4 |
EC 0x0D (0x3600000n) | Indirect branch into assembly or a JIT region | Target lacks a BTI landing pad on a guarded page (n is the BTYPE) | 13.1, 18.1 |
EC 0x1C (0x72000000–0x72000003) | Function return | Corrupted LR or stack, or PAuth keys changed under the code (missing key save/restore across a world switch) | 13.1, 17.3 |
EC 0x2D, ExType = 0 | Function return with GCS enabled | Return address does not match the GCS: stack corruption, or unmatched setjmp/longjmp-style code | 13.2 |
EC 0x22 | RET or ERET | Corrupted LR or ELR_ELx (often a smashed stack) | 3.2 |
EC 0x26 | Handler entry or early C | SP not 16-byte aligned while SCTLR_ELx.SA == 1 | 3.1 |
EC 0x0E | Instruction after an ERET | Illegal exception return: SPSR.M names an EL that is not implemented or enabled, or an execution state that EL cannot use | 3.2, 2.1 |
EC 0x2F, 0xBE000011 | After enabling caches, or at the first DRAM access | Uncontainable error from the memory system: DRAM not ready, or a write-back to bad memory | 3.4, 18.3 |
EC 0x2F with IDS = 1 (0xBF……) | Any | IMPLEMENTATION DEFINED syndrome: decode from the core TRM | 16.7 |
The same EC repeating, ELR inside the vector table | Any early handler | Recursive exception: the handler itself faults (stack unmapped, VBAR wrong) | 18.3 |
Validation note: A directed test for each class above should check three things, not one: the EC, the ISS fields the class defines (for example
WnR,S1PTWand the level for aborts,Op0…Rtfor0x18), and the address registers’ validity (FARwritten or not,FnV). Syndrome bugs in RTL often get the EC right and an ISS field wrong, such as a reported level off by one for a level −1 walk, orWnRset for a read-modify-write atomic. Run the same test with the fault taken to EL1, EL2 and EL3 to cover eachESR_ELx(18.5).