Appendix B: Register cheat sheet
This appendix is for looking things up during bring-up and code review. It gives the most used AArch64 control registers with their key fields, the ID register field layouts that 1.1 refers to, and the AArch32-to-AArch64 register mapping that 2.1 refers to. It is not a substitute for the register XML: before writing a new value, read the field’s full description, including its reset value and any RES0/RES1 rules (Reading the Arm ARM).
Bit positions are from the Arm register XML, cross-checked against TF-A’s include/arch/aarch64/arch.h and Linux’s arch/arm64/tools/sysreg. A field shown without a feature is present from v8.0. Fields belonging to a feature are RES0 (or RES1, as the XML says) when the feature is not implemented. Appendix A gives the versions of each feature.
Identification
| Register | Fields | Notes |
|---|---|---|
MIDR_EL1 | Implementer [31:24], Variant [23:20], Architecture [19:16], PartNum [15:4], Revision [3:0] | Architecture reads 0b1111 (“use the ID registers”). Implementer 0x41 is Arm Ltd. rVpR = Variant, Revision (1.3) |
MPIDR_EL1 | Aff3 [39:32], U [30], MT [24], Aff2 [23:16], Aff1 [15:8], Aff0 [7:0] | A logical ID. Platform mapping in 17.5 |
REVIDR_EL1 | IMPLEMENTATION DEFINED | ECO and erratum-fix bits, defined by the core TRM |
CTR_EL0 | DIC [29], IDC [28], CWG [27:24], ERG [23:20], DminLine [19:16], L1Ip [15:14], IminLine [3:0] | Line sizes are log2(words). IDC/DIC relax the I-cache maintenance sequence (8.6) |
CLIDR_EL1, CCSIDR_EL1, CSSELR_EL1 | cache hierarchy and geometry | Format changes with FEAT_CCIDX (8.1) |
DCZID_EL0 | DZP [4], BS [3:0] | DC ZVA block size and prohibit bit |
System control: SCTLR_EL1 (and SCTLR_EL2 with E2H == 1)
SCTLR_EL2 with E2H == 0 and SCTLR_EL3 implement a subset, with several bits RES1. The fields most often involved in bring-up bugs:
| Bit | Field | Meaning (1 =) | Section |
|---|---|---|---|
| 0 | M | Stage 1 MMU on | 9.3 |
| 1 | A | Alignment checking on | 5.8 |
| 2 | C | Data and unified caches may allocate (Normal memory cacheable as mapped) | 9.3 |
| 3, 4 | SA, SA0 | SP alignment check at ELx / EL0 | 3.1 |
| 11 | EOS | ERET is a context synchronization event (FEAT_ExS; RES1 without it) | 7.8 |
| 12 | I | Instruction caches may allocate | 8.6 |
| 19 | WXN | Writable implies execute-never | 5.5 |
| 21 | IESB | Implicit error synchronization barrier on entry and return (FEAT_IESB) | 3.4 |
| 22 | EIS | Exception entry is a context synchronization event (FEAT_ExS) | 7.8 |
| 23 | SPAN | 0 = set PSTATE.PAN on exception entry (FEAT_PAN) | 5.5 |
| 25, 24 | EE, E0E | Big-endian data at ELx / EL0 | |
| 26 | UCI | EL0 cache maintenance by VA allowed | 8.5 |
| 31, 30, 27, 13 | EnIA, EnIB, EnDA, EnDB | PAuth keys enabled for instruction A/B and data A/B | 13.1 |
| 35, 36 | BT0, BT1 | BTI guarding for EL0 / EL1 (FEAT_BTI; BT at EL2/EL3) | 13.1 |
| 37 | ITFSB | Tag check faults synchronized on entry (FEAT_MTE2) | 13.5 |
| 39:38, 41:40 | TCF0, TCF | Tag check fault mode for EL0 / ELx | 13.5 |
| 42, 43 | ATA0, ATA | Allocation tag access at EL0 / ELx | 13.4 |
| 44 | DSSBS | Value of PSTATE.SSBS on exception entry | 14.5 |
| 57 | EPAN | Enhanced PAN: PAN also covers execute-only EL0 pages (FEAT_PAN3) | 5.5 |
| 61, 62 | NMI, SPINTMASK | Non-maskable interrupts (FEAT_NMI) | 4.3 |
SCTLR2_ELx (FEAT_SCTLR2) holds the overflow: NMEA [2] and EASE [5] (FEAT_DoubleFault2), EnADERR [3], EnANERR [4], EnPACM [7] and EnPACM0 [8] (FEAT_PAuth_LR), and the CPTA/CPTM checked-pointer controls [12:9] (FEAT_CPA).
Translation control: TCR_EL1
TCR_EL2 with E2H == 0 and TCR_EL3 have a single range and different positions for PS, TBI and HPD. Use the XML for those. 5.2 covers the fields.
| Bits | Field | Bits | Field |
|---|---|---|---|
| [5:0] | T0SZ | [21:16] | T1SZ |
| [7] | EPD0 | [22] | A1 (which TTBR holds the ASID) |
| [9:8] | IRGN0 | [23] | EPD1 |
| [11:10] | ORGN0 | [25:24] | IRGN1 |
| [13:12] | SH0 | [27:26] | ORGN1 |
| [15:14] | TG0 (0b00 4K, 0b01 64K, 0b10 16K) | [29:28] | SH1 |
| [34:32] | IPS | [31:30] | TG1 (0b01 16K, 0b10 4K, 0b11 64K: a different encoding from TG0) |
| [36] | AS (16-bit ASID) | [38:37] | TBI1, TBI0 |
| [39] | HA (hardware Access flag) | [40] | HD (hardware dirty state) |
| [42:41] | HPD1, HPD0 | [50:43] | HWU bits (FEAT_HPDS2) |
| [52:51] | TBID1, TBID0 | [54:53] | NFD1, NFD0 (SVE non-fault) |
| [56:55] | E0PD1, E0PD0 | [58:57] | TCMA1, TCMA0 (MTE) |
| [59] | DS (FEAT_LPA2) | [61:60] | MTX1, MTX0 (FEAT_MTE_NO_ADDRESS_TAGS) |
TCR2_EL1 (FEAT_TCR2): PnCH [0], PIE [1], E0POE [2], POE [3], AIE [4], D128 [5], PTTWI [10], HAFT [11], DisCH0/DisCH1 [14]/[15], A2 [16], FNG0/FNG1 [17]/[18].
TTBRn_ELx: ASID [63:48], BADDR [47:1], CnP [0]. With FEAT_D128 the register is 128 bits wide and is accessed with MRRS/MSRR (5.7).
MAIR_ELx attribute bytes in common use (6.5): 0x00 Device-nGnRnE, 0x04 Device-nGnRE, 0x08 Device-nGRE, 0x0C Device-GRE, 0x44 Normal Non-cacheable, 0xBB Normal Write-Through, 0xFF Normal Write-Back read/write-allocate, 0xF0 Tagged Normal Write-Back (FEAT_MTE2).
PAR_EL1 after AT (5.9): F [0]. If F == 0: SH [8:7], NS [9], PA from bit 12 upward, ATTR [63:56]. If F == 1: FST [6:1] (a DFSC-style code, Appendix D), PTW [8], S [9] (stage 2).
EL3 controls
SCR_EL3
| Bit | Field | Bit | Field |
|---|---|---|---|
| 0 | NS | 25 | EnSCXT (FEAT_CSV2_2) |
| 1 | IRQ (route to EL3) | 26 | ATA (FEAT_MTE2) |
| 2 | FIQ (route to EL3) | 27 | FGTEn (FEAT_FGT) |
| 3 | EA (route External aborts and SError to EL3) | 28 | ECVEn (FEAT_ECV) |
| 5:4 | RES1 | 29 | TWEDEn (FEAT_TWED), with TWEDEL [33:30] |
| 7 | SMD (disable SMC) | 35 | AMVOFFEN (FEAT_AMUv1p1) |
| 8 | HCE (enable HVC) | 36 | EnAS0 (FEAT_LS64_ACCDATA) |
| 9 | SIF (Secure instruction fetch from Non-secure memory faults) | 37 | ADEn (FEAT_LS64_ACCDATA) |
| 10 | RW (next lower EL is AArch64) | 38 | HXEn (FEAT_HCX) |
| 11 | ST (Secure EL1 access to CNTPS_*_EL1) | 39 | GCSEn (FEAT_GCS) |
| 12 | TWI | 40 | TRNDR (FEAT_RNG_TRAP; 1 = trap) |
| 13 | TWE | 41 | EnTP2 (FEAT_SME) |
| 14 | TLOR (FEAT_LOR) | 42 | RCWMASKEn (FEAT_THE) |
| 15 | TERR (trap error record accesses, FEAT_RAS) | 43 | TCR2En (FEAT_TCR2) |
| 16 | APK (FEAT_PAuth; 1 = don’t trap key registers) | 44 | SCTLR2En (FEAT_SCTLR2) |
| 17 | API (FEAT_PAuth; 1 = don’t trap PAC instructions) | 45 | PIEn (FEAT_S1PIE/S1POE) |
| 18 | EEL2 (FEAT_SEL2) | 46 | AIEn (FEAT_AIE) |
| 19 | EASE (FEAT_DoubleFault) | 47 | D128En (FEAT_D128) |
| 20 | NMEA (FEAT_DoubleFault) | 48 | GPF (route GPFs to EL3, FEAT_RME) |
| 21 | FIEN (fault injection, FEAT_RASv1p1) | 49 | MECEn (FEAT_MEC) |
| 22 | TID3 (FEAT_IDTE3) | 50 | EnFPM (FEAT_FPMR) |
| 23 | TID5 (FEAT_IDTE3) | 51 | TMEA (FEAT_DoubleFault2) |
| 52 | TWERR (trap error-record writes, FEAT_RASv2) | ||
| 53 | PFAREn (FEAT_PFAR) | ||
| 54 | SRMASKEn (FEAT_SRMASK) | ||
| 55 | EnIDCP128 (IMPLEMENTATION DEFINED 128-bit registers, FEAT_SYSREG128) | ||
| 57, 58 | DSE, EnDSE (delegated SError, FEAT_E3DSE) | ||
| 59 | FGTEn2 (FEAT_FGT2) | ||
| 60, 61 | HDBSSEn, HACDBSEn | ||
| 62 | NSE (with NS: Secure, Non-secure, Root, Realm; FEAT_RME) |
The Security state encoding with FEAT_RME is {NSE, NS}: 00 Secure, 01 Non-secure, 11 Realm, 10 reserved (Root is EL3 itself) (12.4). 17.3 explains which bits need a per-world value.
CPTR_EL3, MDCR_EL3
| Register | Bit | Field | Meaning |
|---|---|---|---|
CPTR_EL3 | 8 | EZ | 1 = SVE not trapped |
| 10 | TFP | 1 = trap FP/SIMD (and SVE/SME) | |
| 12 | ESM | 1 = SME not trapped | |
| 20 | TTA | 1 = trap trace System registers | |
| 30 | TAM | 1 = trap AMU registers | |
| 31 | TCPAC | 1 = trap EL2/EL1 accesses to CPTR_EL2/CPACR_EL1 | |
MDCR_EL3 | 6 | TPM | Trap PMU registers |
| 9, 10 | TDA, TDOSA | Trap debug registers, OS-lock and power-down registers | |
| 11, 13:12 | NSPBE, NSPB | SPE buffer owner | |
| 16 | SDD | Disable Secure self-hosted debug | |
| 17 | SPME | Allow Secure PMU counting | |
| 19 | TTRF | Trap trace filter registers | |
| 23 | SCCD | Prohibit cycle counting in Secure state | |
| 25:24, 26 | NSTB, NSTBE | Trace buffer owner | |
| 28 | MTPME | Multi-threaded PMU enable | |
| 33:32 | SBRBE | BRBE Secure prohibition and ownership | |
| 34, 35 | MCCD, MPMX | Cycle counting and PMU prohibition at EL3 |
EL2 controls
HCR_EL2
| Bit | Field | Bit | Field |
|---|---|---|---|
| 0 | VM (stage 2 on) | 32 | CD (stage 2 data non-cacheable) |
| 1 | SWIO | 33 | ID (stage 2 instruction non-cacheable) |
| 2 | PTW | 34 | E2H (FEAT_VHE) |
| 3, 4, 5 | FMO, IMO, AMO (route physical FIQ/IRQ/SError to EL2, enable virtual ones) | 35 | TLOR |
| 6, 7, 8 | VF, VI, VSE (pend virtual FIQ/IRQ/SError) | 36, 37 | TERR, TEA |
| 9, 11:10 | FB, BSU (broadcast and upgrade shareability) | 40, 41 | APK, API |
| 12 | DC (default cacheable) | 42, 43 | NV, NV1 |
| 13, 14 | TWI, TWE | 44 | AT |
| 15–18 | TID0–TID3 | 45 | NV2 |
| 19 | TSC (trap SMC) | 46 | FWB (FEAT_S2FWB) |
| 20 | TIDCP | 47 | FIEN |
| 21 | TACR | 48 | GPF (FEAT_RME) |
| 22 | TSW (trap set/way CMOs) | 49 | TID4 (FEAT_EVT) |
| 23 | TPCP (trap CMOs to PoC/PoP) | 50 | TICAB |
| 24 | TPU | 51 | AMVOFFEN |
| 25 | TTLB | 52 | TOCU |
| 26 | TVM (trap EL1 MMU register writes) | 53 | EnSCXT |
| 27 | TGE | 54, 55 | TTLBIS, TTLBOS |
| 28 | TDZ | 56 | ATA (FEAT_MTE2) |
| 29 | HCD | 57 | DCT |
| 30 | TRVM (trap EL1 MMU register reads) | 58 | TID5 |
| 31 | RW (EL1 is AArch64) | 59, 63:60 | TWEDEn, TWEDEL |
HCRX_EL2 (FEAT_HCX)
EnAS0 [0], EnALS [1], EnASR [2] (FEAT_LS64); FnXS [3], FGTnXS [4] (FEAT_XS); SMPME [5]; TALLINT [6], VINMI [7], VFNMI [8] (FEAT_NMI); CMOW [9]; MCE2 [10], MSCEn [11] (FEAT_MOPS); TCR2En [14]; SCTLR2En [15]; PTTWI [16]; D128En [17]; EnSNERR [18]; TMEA [19]; EnSDERR [20]; EnIDCP128 [21]; GCSEn [22]; EnFPM [23]; PACMEn [24]; SRMASKEn [26]. Write it explicitly (usually 0 plus the enables you want) whenever SCR_EL3.HXEn == 1 (17.3).
CPTR_EL2, CPACR_EL1, MDCR_EL2
| Register | Fields |
|---|---|
CPACR_EL1 (and CPTR_EL2 when E2H == 1) | ZEN [17:16], FPEN [21:20], SMEN [25:24] (0b11 = no trap; 0b01 = trap EL0 only), TTA [28], E0POE [29]; in the CPTR_EL2 view also TAM [30], TCPAC [31] |
CPTR_EL2 (E2H == 0) | TZ [8], TFP [10], TSM [12], TTA [20], TAM [30], TCPAC [31]; 1 = trap |
MDCR_EL2 | HPMN [4:0], TPMCR [5], TPM [6], HPME [7], TDE [8], TDA [9], TDOSA [10], TDRA [11], E2PB [13:12], TPMS [14], HPMD [17], TTRF [19], HCCD [23], E2TB [25:24], HLP [26], TDCC [27], MTPME [28] |
Registers covered elsewhere
| Register | Where |
|---|---|
PSTATE, SPSR_ELx | 2.4, 3.2 |
ESR_ELx, FAR_ELx, HPFAR_EL2, PFAR_ELx | Appendix D, 5.8 |
VTCR_EL2, VTTBR_EL2, stage 2 descriptors | 11.3 |
CNTFRQ_EL0, CNT*_EL0, CNTHCTL_EL2, CNTKCTL_EL1 | 4.6, 4.7 |
ICC_*_EL1, ICC_*_EL3, ICH_*_EL2 | 4.1–4.3, 11.4 |
GPCCR_EL3, GPTBR_EL3 | 12.4 |
PM*, AM*, PMS*, TRB*, BRB* | 16.3, 16.4, 16.6 |
ERR* (RAS error records) | 16.7 |
Fine-grained traps (HFG*TR_EL2, HDFG*TR_EL2, HAFGRTR_EL2) | 11.1 |
ID register field layouts
The 4-bit field at bits [n+3:n] is written here as its bit range. “(s)” marks a signed field (1.1, rule 2). Empty ranges are RES0 in the current XML and may be allocated in later issues, which is why they read as zero today. All these registers are read-only and readable at EL1 and above. EL0 access is trapped, and Linux emulates it with sanitised values.
Processor features
| Register | [63:60] | [59:56] | [55:52] | [51:48] | [47:44] | [43:40] | [39:36] | [35:32] |
|---|---|---|---|---|---|---|---|---|
ID_AA64PFR0_EL1 | CSV3 | CSV2 | RME | DIT | AMU | MPAM | SEL2 | SVE |
ID_AA64PFR1_EL1 | PFAR | DF2 | MTEX | THE | GCS | MTE_frac | NMI | CSV2_frac |
ID_AA64PFR2_EL1 | FPMR |
| Register | [31:28] | [27:24] | [23:20] | [19:16] | [15:12] | [11:8] | [7:4] | [3:0] |
|---|---|---|---|---|---|---|---|---|
ID_AA64PFR0_EL1 | RAS | GIC | AdvSIMD (s) | FP (s) | EL3 | EL2 | EL1 | EL0 |
ID_AA64PFR1_EL1 | RNDR_trap | SME | MPAM_frac | RAS_frac | MTE | SSBS | BT | |
ID_AA64PFR2_EL1 | UINJ | GCIE | MTEFAR | MTESTOREONLY | MTEPERM |
ID_AA64PFR0_EL1.EL0–EL3: 0b0000 not implemented (EL2/EL3 only), 0b0001 AArch64 only, 0b0010 AArch64 and AArch32 (2.1). GIC: 0b0001 GICv3/v4 CPU interface System registers, 0b0011 GICv4.1. GCIE reports the GICv5 CPU interface (4.1).
Instruction set
| Register | [63:60] | [59:56] | [55:52] | [51:48] | [47:44] | [43:40] | [39:36] | [35:32] |
|---|---|---|---|---|---|---|---|---|
ID_AA64ISAR0_EL1 | RNDR | TLB | TS | FHM | DP | SM4 | SM3 | SHA3 |
ID_AA64ISAR1_EL1 | LS64 | XS | I8MM | DGH | BF16 | SPECRES | SB | FRINTTS |
ID_AA64ISAR2_EL1 | ATS1A | LUT | CSSC | RPRFM | PCDPHINT | PRFMSLC | SYSINSTR_128 | SYSREG_128 |
| Register | [31:28] | [27:24] | [23:20] | [19:16] | [15:12] | [11:8] | [7:4] | [3:0] |
|---|---|---|---|---|---|---|---|---|
ID_AA64ISAR0_EL1 | RDM | Atomic | CRC32 | SHA2 | SHA1 | AES | ||
ID_AA64ISAR1_EL1 | GPI | GPA | LRCPC | FCMA | JSCVT | API | APA | DPB |
ID_AA64ISAR2_EL1 | CLRBHB | PAC_frac | BC | MOPS | APA3 | GPA3 | RPRES | WFxT |
ID_AA64ISAR3_EL1 | FPRCVT | LSUI | OCCMO | LSFE | PACM | TLBIW | FAMINMAX | CPA |
ID_AA64ISAR3_EL1 [63:32] is RES0 at the time of writing. ID_AA64ISAR0_EL1.SHA2 distinguishes SHA-256 (0b0001) from SHA-512 (0b0010). AES distinguishes AES (0b0001) from AES plus PMULL (0b0010).
Memory model
| Register | [63:60] | [59:56] | [55:52] | [51:48] | [47:44] | [43:40] | [39:36] | [35:32] |
|---|---|---|---|---|---|---|---|---|
ID_AA64MMFR0_EL1 | ECV | FGT | ExS | TGran4_2 | TGran64_2 | TGran16_2 | ||
ID_AA64MMFR1_EL1 | ECBHB | CMOW | TIDCP1 | nTLBPA | AFP | HCX | ETS | TWED |
ID_AA64MMFR2_EL1 | E0PD | EVT | BBM | TTL | FWB | IDS | AT | |
ID_AA64MMFR3_EL1 | Spec_FPACC | ADERR | SDERR | ANERR | SNERR | D128_2 | D128 | |
ID_AA64MMFR4_EL1 | MTEFGT | SCRX | TEV | TPS | SRMASK | TLBID | E3DSE | EAESR |
| Register | [31:28] | [27:24] | [23:20] | [19:16] | [15:12] | [11:8] | [7:4] | [3:0] |
|---|---|---|---|---|---|---|---|---|
ID_AA64MMFR0_EL1 | TGran4 (s) | TGran64 (s) | TGran16 | BigEndEL0 | SNSMem | BigEnd | ASIDBits | PARange |
ID_AA64MMFR1_EL1 | XNX | SpecSEI | PAN | LO | HPDS | VH | VMIDBits | HAFDBS |
ID_AA64MMFR2_EL1 | ST | NV | CCIDX | VARange | IESB | LSM | UAO | CnP |
ID_AA64MMFR3_EL1 | MEC | AIE | S2POE | S1POE | S2PIE | S1PIE | SCTLRX | TCRX |
ID_AA64MMFR4_EL1 | RMEGDI | E2H0 (s) | NV_frac | FGWTE3 | HACDBS | ASID2 | EIESB | PoPS |
Encodings that are easy to get wrong:
PARange:0b000032 bits,0b000136,0b001040,0b001142,0b010044,0b010148,0b011052,0b011156 (5.7).TGran4andTGran64are signed:0b0000supported,0b1111not supported, andTGran4 = 0b0001adds 52-bit addresses (FEAT_LPA2).TGran16is unsigned:0b0000not supported,0b0001supported,0b0010with 52-bit. The_2fields describe stage 2 and use0b0000to mean “same as the stage 1 field”,0b0001not supported,0b0010supported,0b0011with 52-bit.ASIDBits:0b00008 bits,0b001016 bits.VMIDBits:0b00008 bits,0b001016 bits.HAFDBS:0b0001Access flag only,0b0010plus dirty state,0b0011plus table Access flag (FEAT_HAFT),0b0100plus HDBSS.CCIDXandVARangedescribe formats and sizes, not “more is better” in the usual sense:CCIDX = 0b0001means the 64-bitCCSIDR_EL1format, andVARange = 0b0001means 52-bit VAs with the 64K granule.
Debug and monitoring
| Register | [63:60] | [59:56] | [55:52] | [51:48] | [47:44] | [43:40] | [39:36] | [35:32] |
|---|---|---|---|---|---|---|---|---|
ID_AA64DFR0_EL1 | HPMN0 | ExtTrcBuff | BRBE | MTPMU (s) | TraceBuffer | TraceFilt | DoubleLock (s) | PMSVer |
| Register | [31:28] | [27:24] | [23:20] | [19:16] | [15:12] | [11:8] | [7:4] | [3:0] |
|---|---|---|---|---|---|---|---|---|
ID_AA64DFR0_EL1 | CTX_CMPs | SEBEP | WRPs | PMSS | BRPs | PMUVer | TraceVer | DebugVer |
ID_AA64DFR1_EL1 has wider fields: SYSPMUID [7:0], BRPs [15:8], WRPs [23:16], CTX_CMPs [31:24] (the 8-bit forms used when the 4-bit fields in DFR0 saturate), SPMU [35:32], PMICNTR [39:36], ABLE [43:40], ITE [47:44], EBEP [51:48], DPFZS [55:52], ABL_CMPs [63:56]. In ID_AA64DFR0_EL1, BRPs, WRPs and CTX_CMPs hold the count minus one; check DDI0487 for the DFR1 encodings.
PMUVer: 0b0001 PMUv3, 0b0100 v3p1, 0b0101 v3p4, 0b0110 v3p5, 0b0111 v3p7, 0b1000 v3p8, 0b1001 v3p9, 0b1111 IMPLEMENTATION DEFINED (not PMUv3). PMSVer: 0b0001 SPE, then 0b0010–0b0110 for SPEv1p1–v1p5. DebugVer: 0b0110 v8.0, 0b0111 v8.1 (with VHE), 0b1000 v8.2, 0b1001 v8.4, 0b1010 v8.8, 0b1011 v8.9.
SVE, SME and FP8
| Register | Fields |
|---|---|
ID_AA64ZFR0_EL1 | SVEver [3:0] (0b0000 SVE, 0b0001 SVE2, 0b0010 SVE2p1, 0b0011 SVE2p2), AES [7:4], EltPerm [15:12], BitPerm [19:16], BF16 [23:20], B16B16 [27:24], SHA3 [35:32], SM4 [43:40], I8MM [47:44], F16MM [51:48], F32MM [55:52], F64MM [59:56] |
ID_AA64SMFR0_EL1 | FA64 [63], SMEver [59:56] (0b0000 SME, 0b0001 SME2, 0b0010 SME2p1, 0b0011 SME2p2), I16I64 [55:52], F64F64 [48], I16I32 [47:44], B16B16 [43], F16F16 [42], F8F16 [41], F8F32 [40], I8I32 [39:36], and single-bit fields below for the other data-type combinations |
ID_AA64FPFR0_EL1 | F8CVT [31], F8FMA [30], F8DP4 [29], F8DP2 [28], F8E4M3 [1], F8E5M2 [0] and others |
ID_AA64ZFR0_EL1 and ID_AA64SMFR0_EL1 read as zero unless SVE or SME (respectively) is implemented, so a zero SVEver means “SVE” only if ID_AA64PFR0_EL1.SVE != 0 (15.2).
AArch32 register mapping
When EL1 or EL0 can run AArch32 under an AArch64 higher EL, the AArch32 System registers are architecturally mapped onto AArch64 registers: the two names access the same storage, so writing one changes the other. This is what makes an AArch32 guest or process context-switchable from AArch64 code (2.1). In Armv9 only EL0 can be AArch32, so most of the EL1 rows below matter only for Armv8 cores with AArch32 at EL1.
| AArch32 register | AArch64 register | Notes |
|---|---|---|
SCTLR (Non-secure) | SCTLR_EL1[31:0] | |
ACTLR, ACTLR2 | ACTLR_EL1[31:0], ACTLR_EL1[63:32] | IMPLEMENTATION DEFINED contents |
CPACR | CPACR_EL1 | |
TTBR0, TTBR1 | TTBR0_EL1, TTBR1_EL1 | |
TTBCR, TTBCR2 | TCR_EL1[31:0], TCR_EL1[63:32] | |
DACR | DACR32_EL2 | AArch64 EL1 has no domains, so this has its own EL2 register |
PRRR/MAIR0, NMRR/MAIR1 | MAIR_EL1[31:0], MAIR_EL1[63:32] | |
AMAIR0, AMAIR1 | AMAIR_EL1[31:0], AMAIR_EL1[63:32] | |
DFSR | ESR_EL1 | |
IFSR | IFSR32_EL2 | |
DFAR, IFAR | FAR_EL1[31:0], FAR_EL1[63:32] | |
PAR | PAR_EL1 | |
VBAR (Non-secure) | VBAR_EL1 | |
CONTEXTIDR | CONTEXTIDR_EL1 | |
TPIDRURW, TPIDRURO, TPIDRPRW | TPIDR_EL0, TPIDRRO_EL0, TPIDR_EL1 | the EL0 thread pointers an AArch64 kernel must switch for AArch32 tasks |
FPSCR | FPCR and FPSR | the AArch32 register combines the two |
FPEXC | FPEXC32_EL2 | |
SPSR_svc, SPSR_abt, SPSR_und, SPSR_irq, SPSR_fiq | SPSR_EL1, SPSR_abt, SPSR_und, SPSR_irq, SPSR_fiq | the last four are AArch64 registers accessible at EL2 and EL3 |
HSCTLR, HTCR, HTTBR, HMAIR0/1, HVBAR | SCTLR_EL2, TCR_EL2, TTBR0_EL2, MAIR_EL2, VBAR_EL2 | only when EL2 itself is AArch32-capable |
HCR, HCR2 | HCR_EL2[31:0], HCR_EL2[63:32] | |
HSR | ESR_EL2 | |
HDFAR, HIFAR, HPFAR | FAR_EL2[31:0], FAR_EL2[63:32], HPFAR_EL2 | |
VTCR, VTTBR | VTCR_EL2, VTTBR_EL2 | |
CNTKCTL, CNTP_*, CNTV_* | CNTKCTL_EL1, CNTP_*_EL0, CNTV_*_EL0 | |
MIDR, MPIDR, ID_* | MIDR_EL1[31:0], MPIDR_EL1[31:0], ID_*_EL1 | the AArch32 ID_PFR0, ID_ISAR0… are readable from AArch64 as ID_PFR0_EL1, ID_ISAR0_EL1… |
The registers of Secure AArch32 EL3 (Monitor mode) and the Secure banked copies of SCTLR, VBAR and so on only exist when EL3 itself is AArch32. That configuration is outside this book’s scope. Check the “Mapping of AArch32 System registers to AArch64” text in DDI0487 for those, and for the rows above if you depend on a specific bit range.
Bring-up note: Two mappings are commonly missed when an AArch64 hypervisor or kernel context-switches an AArch32 guest or task. One is the registers that have their own AArch64 copy at EL2 (
DACR32_EL2,IFSR32_EL2,FPEXC32_EL2), which have no AArch64 EL1 equivalent to save “for free”. The other isTPIDRRO_EL0, which an AArch32 task uses asTPIDRUROfor its TLS pointer. A missing save shows up as corruption that only affects 32-bit processes, and only after a context switch.