[Writeup] AArch64 system register pages: part 1 of 18 ===================================================== Section: Silicon & Architectures Started: 2026-11-28 17:33 UTC by admin Replies: 0, last post 2026-11-28 17:33 UTC Page: 1 of 1 Web: https://romdump.net/t/38 ------------------------------------------------------------------------------ #58 admin, 2026-11-28 17:33 UTC [OP] Source: https://romdump.net/raw/58 Archived Arm source pages for the AArch64 system register pages. Part 1 of 18. This part covers Jon's Arm Reference through DC CGDSW. This site offers reference documentation for the AArch64 instruction set and system registers defined by the Armv8-A and Armv9-A architectures. You can use the search field below (and at the top of every page) to search for an instruction or system register. Alternatively, you can browse the full listings manually: - All Instructions: Base | SIMD | SVE | SME - All Registers: AArch64 | AArch32 If you see this note instead of a search field, your browser either does not support WebAssembly or it has been disabled, e.g. in Apple's Lockdown Mode . ---- AT S1E0R Address Translate Stage 1 EL0 Read Performs stage 1 address translation, with permissions as if reading from the given virtual address from EL0, using the following translation regime: When EL2 is implemented and enabled in the Security state described by the current Effective value of SCR_EL3.{NSE, NS}: - If the Effective value of HCR_EL2.{E2H, TGE} is not {1, 1}, the EL1&0 translation regime. - If the Effective value of HCR_EL2.{E2H, TGE} is {1, 1}, the EL2&0 translation regime. - Otherwise, the EL1&0 translation regime. When FEAT_RME is implemented, if the Effective value of SCR_EL3.{NSE, NS} is a reserved value, this instruction is UNDEFINED at EL3. Configuration This instruction is present only when FEAT_AA64 is implemented. Otherwise, direct accesses to AT S1E0R are UNDEFINED. Attributes AT S1E0R is a 64-bit System instruction. 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 IA | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | IA | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | IA, bits [63:0]: Input address for translation. The resulting address can be read from the PAR_EL1. If the address translation instructions are targeting a translation regime that is using AArch32, and so has a VA of only 32 bits, then VA[63:32] is RES0. Executing AT S1E0R This system instruction is an alias of the SYS instruction. Accesses to this instruction use the following encodings in the System instruction encoding space: AT S1E0R, (op0 = 0b01, op1 = 0b000, CRn = 0b0111, CRm = 0b1000, op2 = 0b010) ``` if !IsFeatureImplemented(FEAT_AA64) then Undefined(); elsif PSTATE.EL == EL0 then Undefined(); elsif PSTATE.EL == EL1 then if IsFeatureImplemented(FEAT_NV) && EL2Enabled() && HCR_EL2().AT == '1' then AArch64_SystemAccessTrap(EL2, 0x18); elsif EL2Enabled() && IsFeatureImplemented(FEAT_FGT) && (!HaveEL(EL3) || SCR_EL3().FGTEn == '1') && HFGITR_EL2().ATS1E0R == '1' then AArch64_SystemAccessTrap(EL2, 0x18); else AArch64_AT(X{64}(t), TranslationStage_1, EL0, ATAccess_Read); end; elsif PSTATE.EL == EL2 then AArch64_AT(X{64}(t), TranslationStage_1, EL0, ATAccess_Read); elsif PSTATE.EL == EL3 then if IsFeatureImplemented(FEAT_RME) && EffectiveSCR_EL3_NS() == '0' && EffectiveSCR_EL3_NSE() == '1' then Undefined(); else AArch64_AT(X{64}(t), TranslationStage_1, EL0, ATAccess_Read); end; end; ``` ---- AT S1E0W Address Translate Stage 1 EL0 Write Performs stage 1 address translation, with permissions as if writing to the given virtual address from EL0, using the following translation regime: When EL2 is implemented and enabled in the Security state described by the current Effective value of SCR_EL3.{NSE, NS}: - If the Effective value of HCR_EL2.{E2H, TGE} is not {1, 1}, the EL1&0 translation regime. - If the Effective value of HCR_EL2.{E2H, TGE} is {1, 1}, the EL2&0 translation regime. - Otherwise, the EL1&0 translation regime. When FEAT_RME is implemented, if the Effective value of SCR_EL3.{NSE, NS} is a reserved value, this instruction is UNDEFINED at EL3. Configuration This instruction is present only when FEAT_AA64 is implemented. Otherwise, direct accesses to AT S1E0W are UNDEFINED. Attributes AT S1E0W is a 64-bit System instruction. 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 IA | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | IA | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | IA, bits [63:0]: Input address for translation. The resulting address can be read from the PAR_EL1. If the address translation instructions are targeting a translation regime that is using AArch32, and so has a VA of only 32 bits, then VA[63:32] is RES0. Executing AT S1E0W This system instruction is an alias of the SYS instruction. Accesses to this instruction use the following encodings in the System instruction encoding space: AT S1E0W, (op0 = 0b01, op1 = 0b000, CRn = 0b0111, CRm = 0b1000, op2 = 0b011) ``` if !IsFeatureImplemented(FEAT_AA64) then Undefined(); elsif PSTATE.EL == EL0 then Undefined(); elsif PSTATE.EL == EL1 then if IsFeatureImplemented(FEAT_NV) && EL2Enabled() && HCR_EL2().AT == '1' then AArch64_SystemAccessTrap(EL2, 0x18); elsif EL2Enabled() && IsFeatureImplemented(FEAT_FGT) && (!HaveEL(EL3) || SCR_EL3().FGTEn == '1') && HFGITR_EL2().ATS1E0W == '1' then AArch64_SystemAccessTrap(EL2, 0x18); else AArch64_AT(X{64}(t), TranslationStage_1, EL0, ATAccess_Write); end; elsif PSTATE.EL == EL2 then AArch64_AT(X{64}(t), TranslationStage_1, EL0, ATAccess_Write); elsif PSTATE.EL == EL3 then if IsFeatureImplemented(FEAT_RME) && EffectiveSCR_EL3_NS() == '0' && EffectiveSCR_EL3_NSE() == '1' then Undefined(); else AArch64_AT(X{64}(t), TranslationStage_1, EL0, ATAccess_Write); end; end; ``` ---- AT S1E1A Address Translate Stage 1 EL1 Without Permission checks Performs a stage 1 address translation, while ignoring the permission checks using the following translation regime: When EL2 is implemented and enabled in the Security state described by the current Effective value of SCR_EL3.{NSE, NS}: - If the Effective value of HCR_EL2.{E2H, TGE} is not {1, 1}, the EL1&0 translation regime, accessed from EL1. - If the Effective value of HCR_EL2.{E2H, TGE} is {1, 1}, the EL2&0 translation regime, accessed from EL2. - Otherwise, the EL1&0 translation regime, accessed from EL1. When FEAT_RME is implemented, if the Effective value of SCR_EL3.{NSE, NS} is a reserved value, this instruction is UNDEFINED at EL3. Configuration This instruction is present only when FEAT_ATS1A is implemented and FEAT_AA64 is implemented. Otherwise, direct accesses to AT S1E1A are UNDEFINED. Attributes AT S1E1A is a 64-bit System instruction. 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 IA | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | IA | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | IA, bits [63:0]: Input address for translation. The resulting address can be read from the PAR_EL1. Executing AT S1E1A This system instruction is an alias of the SYS instruction. Accesses to this instruction use the following encodings in the System instruction encoding space: AT S1E1A, (op0 = 0b01, op1 = 0b000, CRn = 0b0111, CRm = 0b1001, op2 = 0b010) ``` if !(IsFeatureImplemented(FEAT_ATS1A) && IsFeatureImplemented(FEAT_AA64)) then Undefined(); elsif PSTATE.EL == EL0 then Undefined(); elsif PSTATE.EL == EL1 then if IsFeatureImplemented(FEAT_NV) && EL2Enabled() && HCR_EL2().AT == '1' then AArch64_SystemAccessTrap(EL2, 0x18); elsif EL2Enabled() && IsFeatureImplemented(FEAT_FGT) && (!HaveEL(EL3) || SCR_EL3().FGTEn == '1') && HFGITR_EL2().ATS1E1A == '1' then AArch64_SystemAccessTrap(EL2, 0x18); else AArch64_AT(X{64}(t), TranslationStage_1, EL1, ATAccess_Any); end; elsif PSTATE.EL == EL2 then AArch64_AT(X{64}(t), TranslationStage_1, EL1, ATAccess_Any); elsif PSTATE.EL == EL3 then if IsFeatureImplemented(FEAT_RME) && EffectiveSCR_EL3_NS() == '0' && EffectiveSCR_EL3_NSE() == '1' then Undefined(); else AArch64_AT(X{64}(t), TranslationStage_1, EL1, ATAccess_Any); end; end; ``` ---- AT S1E1R Address Translate Stage 1 EL1 Read Performs stage 1 address translation, with permissions as if reading from the given virtual address from EL1, or from EL2 if the Effective value of HCR_EL2.{E2H, TGE} is {1, 1}, using the following translation regime: When EL2 is implemented and enabled in the Security state described by the current Effective value of SCR_EL3.{NSE, NS}: - If the Effective value of HCR_EL2.{E2H, TGE} is not {1, 1}, the EL1&0 translation regime, accessed from EL1. - If the Effective value of HCR_EL2.{E2H, TGE} is {1, 1}, the EL2&0 translation regime, accessed from EL2. - Otherwise, the EL1&0 translation regime, accessed from EL1. When FEAT_RME is implemented, if the Effective value of SCR_EL3.{NSE, NS} is a reserved value, this instruction is UNDEFINED at EL3. Configuration This instruction is present only when FEAT_AA64 is implemented. Otherwise, direct accesses to AT S1E1R are UNDEFINED. Attributes AT S1E1R is a 64-bit System instruction. 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 IA | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | IA | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | IA, bits [63:0]: Input address for translation. The resulting address can be read from the PAR_EL1. If the address translation instructions are targeting a translation regime that is using AArch32, and so has a VA of only 32 bits, then VA[63:32] is RES0. Executing AT S1E1R This system instruction is an alias of the SYS instruction. Accesses to this instruction use the following encodings in the System instruction encoding space: AT S1E1R, (op0 = 0b01, op1 = 0b000, CRn = 0b0111, CRm = 0b1000, op2 = 0b000) ``` if !IsFeatureImplemented(FEAT_AA64) then Undefined(); elsif PSTATE.EL == EL0 then Undefined(); elsif PSTATE.EL == EL1 then if IsFeatureImplemented(FEAT_NV) && EL2Enabled() && HCR_EL2().AT == '1' then AArch64_SystemAccessTrap(EL2, 0x18); elsif EL2Enabled() && IsFeatureImplemented(FEAT_FGT) && (!HaveEL(EL3) || SCR_EL3().FGTEn == '1') && HFGITR_EL2().ATS1E1R == '1' then AArch64_SystemAccessTrap(EL2, 0x18); else AArch64_AT(X{64}(t), TranslationStage_1, EL1, ATAccess_Read); end; elsif PSTATE.EL == EL2 then AArch64_AT(X{64}(t), TranslationStage_1, EL1, ATAccess_Read); elsif PSTATE.EL == EL3 then if IsFeatureImplemented(FEAT_RME) && EffectiveSCR_EL3_NS() == '0' && EffectiveSCR_EL3_NSE() == '1' then Undefined(); else AArch64_AT(X{64}(t), TranslationStage_1, EL1, ATAccess_Read); end; end; ``` ---- AT S1E1RP Address Translate Stage 1 EL1 Read PAN Performs a stage 1 address translation, where the value of PSTATE.PAN determines if a read from a location will generate a Permission fault for a privileged access, using the following translation regime: When EL2 is implemented and enabled in the Security state described by the current Effective value of SCR_EL3.{NSE, NS}: - If the Effective value of HCR_EL2.{E2H, TGE} is not {1, 1}, the EL1&0 translation regime, accessed from EL1. - If the Effective value of HCR_EL2.{E2H, TGE} is {1, 1}, the EL2&0 translation regime, accessed from EL2. - Otherwise, the EL1&0 translation regime, accessed from EL1. When FEAT_RME is implemented, if the Effective value of SCR_EL3.{NSE, NS} is a reserved value, this instruction is UNDEFINED at EL3. Configuration This instruction is present only when FEAT_PAN2 is implemented and FEAT_AA64 is implemented. Otherwise, direct accesses to AT S1E1RP are UNDEFINED. Attributes AT S1E1RP is a 64-bit System instruction. 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 IA | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | IA | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | IA, bits [63:0]: Input address for translation. The resulting address can be read from the PAR_EL1. If the address translation instructions are targeting a translation regime that is using AArch32, and so has a VA of only 32 bits, then VA[63:32] is RES0. Executing AT S1E1RP This system instruction is an alias of the SYS instruction. Accesses to this instruction use the following encodings in the System instruction encoding space: AT S1E1RP, (op0 = 0b01, op1 = 0b000, CRn = 0b0111, CRm = 0b1001, op2 = 0b000) ``` if !(IsFeatureImplemented(FEAT_PAN2) && IsFeatureImplemented(FEAT_AA64)) then Undefined(); elsif PSTATE.EL == EL0 then Undefined(); elsif PSTATE.EL == EL1 then if IsFeatureImplemented(FEAT_NV) && EL2Enabled() && HCR_EL2().AT == '1' then AArch64_SystemAccessTrap(EL2, 0x18); elsif EL2Enabled() && IsFeatureImplemented(FEAT_FGT) && (!HaveEL(EL3) || SCR_EL3().FGTEn == '1') && HFGITR_EL2().ATS1E1RP == '1' then AArch64_SystemAccessTrap(EL2, 0x18); else AArch64_AT(X{64}(t), TranslationStage_1, EL1, ATAccess_ReadPAN); end; elsif PSTATE.EL == EL2 then AArch64_AT(X{64}(t), TranslationStage_1, EL1, ATAccess_ReadPAN); elsif PSTATE.EL == EL3 then if IsFeatureImplemented(FEAT_RME) && EffectiveSCR_EL3_NS() == '0' && EffectiveSCR_EL3_NSE() == '1' then Undefined(); else AArch64_AT(X{64}(t), TranslationStage_1, EL1, ATAccess_ReadPAN); end; end; ``` ---- AT S1E1W Address Translate Stage 1 EL1 Write Performs stage 1 address translation, with permissions as if writing to the given virtual address from EL1, or from EL2 if the Effective value of HCR_EL2.{E2H, TGE} is {1, 1}, using the following translation regime: When EL2 is implemented and enabled in the Security state described by the current Effective value of SCR_EL3.{NSE, NS}: - If the Effective value of HCR_EL2.{E2H, TGE} is not {1, 1}, the EL1&0 translation regime, accessed from EL1. - If the Effective value of HCR_EL2.{E2H, TGE} is {1, 1}, the EL2&0 translation regime, accessed from EL2. - Otherwise, the EL1&0 translation regime, accessed from EL1. When FEAT_RME is implemented, if the Effective value of SCR_EL3.{NSE, NS} is a reserved value, this instruction is UNDEFINED at EL3. Configuration This instruction is present only when FEAT_AA64 is implemented. Otherwise, direct accesses to AT S1E1W are UNDEFINED. Attributes AT S1E1W is a 64-bit System instruction. 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 IA | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | IA | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | IA, bits [63:0]: Input address for translation. The resulting address can be read from the PAR_EL1. If the address translation instructions are targeting a translation regime that is using AArch32, and so has a VA of only 32 bits, then VA[63:32] is RES0. Executing AT S1E1W This system instruction is an alias of the SYS instruction. Accesses to this instruction use the following encodings in the System instruction encoding space: AT S1E1W, (op0 = 0b01, op1 = 0b000, CRn = 0b0111, CRm = 0b1000, op2 = 0b001) ``` if !IsFeatureImplemented(FEAT_AA64) then Undefined(); elsif PSTATE.EL == EL0 then Undefined(); elsif PSTATE.EL == EL1 then if IsFeatureImplemented(FEAT_NV) && EL2Enabled() && HCR_EL2().AT == '1' then AArch64_SystemAccessTrap(EL2, 0x18); elsif EL2Enabled() && IsFeatureImplemented(FEAT_FGT) && (!HaveEL(EL3) || SCR_EL3().FGTEn == '1') && HFGITR_EL2().ATS1E1W == '1' then AArch64_SystemAccessTrap(EL2, 0x18); else AArch64_AT(X{64}(t), TranslationStage_1, EL1, ATAccess_Write); end; elsif PSTATE.EL == EL2 then AArch64_AT(X{64}(t), TranslationStage_1, EL1, ATAccess_Write); elsif PSTATE.EL == EL3 then if IsFeatureImplemented(FEAT_RME) && EffectiveSCR_EL3_NS() == '0' && EffectiveSCR_EL3_NSE() == '1' then Undefined(); else AArch64_AT(X{64}(t), TranslationStage_1, EL1, ATAccess_Write); end; end; ``` ---- AT S1E1WP Address Translate Stage 1 EL1 Write PAN Performs a stage 1 address translation, where the value of PSTATE.PAN determines if a write to a location will generate a Permission fault for a privileged access, using the following translation regime: When EL2 is implemented and enabled in the Security state described by the current Effective value of SCR_EL3.{NSE, NS}: - If the Effective value of HCR_EL2.{E2H, TGE} is not {1, 1}, the EL1&0 translation regime, accessed from EL1. - If the Effective value of HCR_EL2.{E2H, TGE} is {1, 1}, the EL2&0 translation regime, accessed from EL2. - Otherwise, the EL1&0 translation regime, accessed from EL1. When FEAT_RME is implemented, if the Effective value of SCR_EL3.{NSE, NS} is a reserved value, this instruction is UNDEFINED at EL3. Configuration This instruction is present only when FEAT_PAN2 is implemented and FEAT_AA64 is implemented. Otherwise, direct accesses to AT S1E1WP are UNDEFINED. Attributes AT S1E1WP is a 64-bit System instruction. 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 IA | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | IA | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | IA, bits [63:0]: Input address for translation. The resulting address can be read from the PAR_EL1. If the address translation instructions are targeting a translation regime that is using AArch32, and so has a VA of only 32 bits, then VA[63:32] is RES0. Executing AT S1E1WP This system instruction is an alias of the SYS instruction. Accesses to this instruction use the following encodings in the System instruction encoding space: AT S1E1WP, (op0 = 0b01, op1 = 0b000, CRn = 0b0111, CRm = 0b1001, op2 = 0b001) ``` if !(IsFeatureImplemented(FEAT_PAN2) && IsFeatureImplemented(FEAT_AA64)) then Undefined(); elsif PSTATE.EL == EL0 then Undefined(); elsif PSTATE.EL == EL1 then if IsFeatureImplemented(FEAT_NV) && EL2Enabled() && HCR_EL2().AT == '1' then AArch64_SystemAccessTrap(EL2, 0x18); elsif EL2Enabled() && IsFeatureImplemented(FEAT_FGT) && (!HaveEL(EL3) || SCR_EL3().FGTEn == '1') && HFGITR_EL2().ATS1E1WP == '1' then AArch64_SystemAccessTrap(EL2, 0x18); else AArch64_AT(X{64}(t), TranslationStage_1, EL1, ATAccess_WritePAN); end; elsif PSTATE.EL == EL2 then AArch64_AT(X{64}(t), TranslationStage_1, EL1, ATAccess_WritePAN); elsif PSTATE.EL == EL3 then if IsFeatureImplemented(FEAT_RME) && EffectiveSCR_EL3_NS() == '0' && EffectiveSCR_EL3_NSE() == '1' then Undefined(); else AArch64_AT(X{64}(t), TranslationStage_1, EL1, ATAccess_WritePAN); end; end; ``` ---- BRB IALL Invalidate the Branch Record Buffer Invalidates all Branch records in the Branch Record Buffer. Configuration This instruction is present only when FEAT_BRBE is implemented and FEAT_AA64 is implemented. Otherwise, direct accesses to BRB IALL are UNDEFINED. Attributes BRB IALL is a 64-bit System instruction. Field descriptions This instruction has no applicable fields. The value in the register specified by is ignored. Executing BRB IALL Rt should be encoded as 0b11111. If the Rt field is not set to 0b11111, it is CONSTRAINED UNPREDICTABLE whether: The instruction is UNDEFINED. The instruction behaves as if the Rt field is set to 0b11111. This system instruction is an alias of the SYS instruction. Accesses to this instruction use the following encodings in the System instruction encoding space: BRB IALL (op0 = 0b01, op1 = 0b001, CRn = 0b0111, CRm = 0b0010, op2 = 0b100) ``` if !(IsFeatureImplemented(FEAT_BRBE) && IsFeatureImplemented(FEAT_AA64)) then Undefined(); elsif HaveEL(EL3) && !(EffectivelyAtEL0InHost() || EffectivelyAtEL0NotInHost() || PSTATE.EL == EL3) && EL3SDDUndefPriority() && MDCR_EL3().SBRBE != '11' && SCR_EL3().NS == '0' then Undefined(); elsif HaveEL(EL3) && !(EffectivelyAtEL0InHost() || EffectivelyAtEL0NotInHost() || PSTATE.EL == EL3) && EL3SDDUndefPriority() && MDCR_EL3().SBRBE IN {'x0'} && SCR_EL3().NS == '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') && HFGITR_EL2().nBRBIALL == '0' then AArch64_SystemAccessTrap(EL2, 0x18); elsif HaveEL(EL3) && MDCR_EL3().SBRBE != '11' && SCR_EL3().NS == '0' then if EL3SDDUndef() then Undefined(); else AArch64_SystemAccessTrap(EL3, 0x18); end; elsif HaveEL(EL3) && MDCR_EL3().SBRBE IN {'x0'} && SCR_EL3().NS == '1' then if EL3SDDUndef() then Undefined(); else AArch64_SystemAccessTrap(EL3, 0x18); end; else BRB_IALL(); end; elsif PSTATE.EL == EL2 then if HaveEL(EL3) && MDCR_EL3().SBRBE != '11' && SCR_EL3().NS == '0' then if EL3SDDUndef() then Undefined(); else AArch64_SystemAccessTrap(EL3, 0x18); end; elsif HaveEL(EL3) && MDCR_EL3().SBRBE IN {'x0'} && SCR_EL3().NS == '1' then if EL3SDDUndef() then Undefined(); else AArch64_SystemAccessTrap(EL3, 0x18); end; else BRB_IALL(); end; elsif PSTATE.EL == EL3 then BRB_IALL(); end; ``` ---- BRB INJ Branch Record Injection into the Branch Record Buffer Injects the Branch Record held in BRBINFINJ_EL1, BRBSRCINJ_EL1, and BRBTGTINJ_EL1 into the Branch Record Buffer. Configuration This instruction is present only when FEAT_BRBE is implemented and FEAT_AA64 is implemented. Otherwise, direct accesses to BRB INJ are UNDEFINED. Attributes BRB INJ is a 64-bit System instruction. Field descriptions This instruction has no applicable fields. The value in the register specified by is ignored. Executing BRB INJ Rt should be encoded as 0b11111. If the Rt field is not set to 0b11111, it is CONSTRAINED UNPREDICTABLE whether: The instruction is UNDEFINED. The instruction behaves as if the Rt field is set to 0b11111. This system instruction is an alias of the SYS instruction. Accesses to this instruction use the following encodings in the System instruction encoding space: BRB INJ (op0 = 0b01, op1 = 0b001, CRn = 0b0111, CRm = 0b0010, op2 = 0b101) ``` if !(IsFeatureImplemented(FEAT_BRBE) && IsFeatureImplemented(FEAT_AA64)) then Undefined(); elsif HaveEL(EL3) && !(EffectivelyAtEL0InHost() || EffectivelyAtEL0NotInHost() || PSTATE.EL == EL3) && EL3SDDUndefPriority() && MDCR_EL3().SBRBE != '11' && SCR_EL3().NS == '0' then Undefined(); elsif HaveEL(EL3) && !(EffectivelyAtEL0InHost() || EffectivelyAtEL0NotInHost() || PSTATE.EL == EL3) && EL3SDDUndefPriority() && MDCR_EL3().SBRBE IN {'x0'} && SCR_EL3().NS == '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') && HFGITR_EL2().nBRBINJ == '0' then AArch64_SystemAccessTrap(EL2, 0x18); elsif HaveEL(EL3) && MDCR_EL3().SBRBE != '11' && SCR_EL3().NS == '0' then if EL3SDDUndef() then Undefined(); else AArch64_SystemAccessTrap(EL3, 0x18); end; elsif HaveEL(EL3) && MDCR_EL3().SBRBE IN {'x0'} && SCR_EL3().NS == '1' then if EL3SDDUndef() then Undefined(); else AArch64_SystemAccessTrap(EL3, 0x18); end; else BRB_INJ(); end; elsif PSTATE.EL == EL2 then if HaveEL(EL3) && MDCR_EL3().SBRBE != '11' && SCR_EL3().NS == '0' then if EL3SDDUndef() then Undefined(); else AArch64_SystemAccessTrap(EL3, 0x18); end; elsif HaveEL(EL3) && MDCR_EL3().SBRBE IN {'x0'} && SCR_EL3().NS == '1' then if EL3SDDUndef() then Undefined(); else AArch64_SystemAccessTrap(EL3, 0x18); end; else BRB_INJ(); end; elsif PSTATE.EL == EL3 then BRB_INJ(); end; ``` ---- CFP RCTX Control Flow Prediction Restriction by Context Control Flow Prediction Restriction by Context applies to all Control Flow Prediction Resources that predict execution based on information gathered within the target execution context or contexts. Control flow predictions determined by the actions of code in the target execution context or contexts appearing in program order before the instruction cannot exploitatively control speculative execution occurring after the instruction is complete and synchronized. This instruction is guaranteed to be complete following a DSB that covers both read and write behavior on the same PE as executed the original restriction instruction, and a subsequent context synchronization event is required to ensure that the effect of the completion of the instructions is synchronized to the current execution. This instruction does not require the invalidation of prediction structures so long as the behavior described for completion of this instruction is met by the implementation. On some implementations the instruction is likely to take a significant number of cycles to execute. This instruction is expected to be used very rarely, such as on the roll-over of an ASID or VMID, but should not be used on every context switch. Configuration This instruction is present only when FEAT_SPECRES is implemented and FEAT_AA64 is implemented. Otherwise, direct accesses to CFP RCTX are UNDEFINED. Attributes CFP RCTX is a 64-bit System instruction. 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 | | | | | | | | | | | | | | | GVMID | VMID | | | | | | | | | | | | | | | RES0 | | | | NSE | NS | EL | | RES0 | | | | | | | GASID | ASID | | | | | | | | | | | | | | | Bits [63:49]: Reserved, RES0. GVMID, bit [48]: Execution of this instruction applies to all VMIDs or a specified VMID. GVMID | Meaning 0b0 | Applies to specified VMID for an EL0 or EL1 target execution context. 0b1 | Applies to all VMIDs for an EL0 or EL1 target execution context. For target execution contexts other than EL0 or EL1, this field is RES0. If the instruction is executed at EL0 or EL1, this field has an Effective value of 0. If EL2 is not implemented or not enabled for the target Security state, this field is RES0. VMID, bits [47:32]: Only applies when bit[48] is 0 and the target execution context is either: - EL1. - EL0 when the Effective value of HCR_EL2.{E2H, TGE} is not {1, 1}. Otherwise this field is RES0. When the instruction is executed at EL1, this field is treated as the current VMID. When the instruction is executed at EL0 and the Effective value of HCR_EL2.{E2H, TGE} is not {1, 1}, this field is treated as the current VMID. When the instruction is executed at EL0 and the Effective value of HCR_EL2.{E2H, TGE} is {1, 1}, this field is ignored. If EL2 is not implemented or not enabled for the target Security state, this field is RES0. If the implementation supports 16 bits of VMID, then the upper 8 bits of the VMID must be written to 0 by software when the context being affected only uses 8 bits. Bits [31:28]: Reserved, RES0. NSE, bit [27] when FEAT_RME is implemented: Together with the NS field, selects the Security state. For a description of the values derived by evaluating NS and NSE together, see CFP_RCTX.NS. Otherwise: Reserved, RES0. NS, bit [26] when FEAT_RME is implemented: Together with the NSE field, selects the 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. Some Effective values are determined by the current Security state: - When executed in Secure state, the Effective value of NSE is 0. - When executed in Non-secure state, the Effective value of {NSE, NS} is {0, 1}. - When executed in Realm state, the Effective value of {NSE, NS} is {1, 1}. This instruction is treated as a NOP when executed at EL3 and either: - CFP_RCTX.{NSE, NS} selects a reserved value. - CFP_RCTX.{NSE, NS} == {1, 0} and CFP_RCTX.EL has a value other than 0b11. Otherwise: Security State. NS | Meaning 0b0 | Secure state. 0b1 | Non-secure state. When executed in Non-secure state, the Effective value of NS is 1. EL, bits [25:24]: Exception Level. Indicates the Exception level of the target execution context. EL | Meaning | Applies when 0b00 | EL0. | 0b01 | EL1 | 0b10 | EL2 | When FEAT_EL2 is implemented 0b11 | EL3 | When FEAT_EL3 is implemented If the instruction is executed at an Exception level lower than the specified level, or is specified to apply to a combination of Exception level and Security state that is not implemented, this instruction is treated as a NOP. Bits [23:17]: Reserved, RES0. GASID, bit [16]: Execution of this instruction applies to all ASIDs or a specified ASID. GASID | Meaning 0b0 | Applies to specified ASID for an EL0 target execution context. 0b1 | Applies to all ASIDs for an EL0 target execution context. For target execution contexts other than EL0, this field is RES0. If the instruction is executed at EL0, this field has an Effective value of 0. ASID, bits [15:0]: Only applies for an EL0 target execution context and when bit[16] is 0. Otherwise, this field is RES0. When the instruction is executed at EL0, this field is treated as the current ASID. If the implementation supports 16 bits of ASID, then the upper 8 bits of the ASID must be written to 0 by software when the context being affected only uses 8 bits. Executing CFP RCTX This system instruction is an alias of the SYS instruction. Accesses to this instruction use the following encodings in the System instruction encoding space: CFP RCTX, (op0 = 0b01, op1 = 0b011, CRn = 0b0111, CRm = 0b0011, op2 = 0b100) ``` if !(IsFeatureImplemented(FEAT_SPECRES) && IsFeatureImplemented(FEAT_AA64)) then Undefined(); elsif EffectivelyAtEL0NotInHost() then if SCTLR_EL1().EnRCTX == '0' then AArch64_SystemAccessTraptoEL1orEL2(0x18); elsif EL2Enabled() && IsFeatureImplemented(FEAT_FGT) && (!HaveEL(EL3) || SCR_EL3().FGTEn == '1') && HFGITR_EL2().CFPRCTX == '1' then AArch64_SystemAccessTrap(EL2, 0x18); else AArch64_RestrictPrediction(X{64}(t), RestrictType_ControlFlow); end; elsif EffectivelyAtEL0InHost() then if SCTLR_EL2().EnRCTX == '0' then AArch64_SystemAccessTrap(EL2, 0x18); else AArch64_RestrictPrediction(X{64}(t), RestrictType_ControlFlow); end; elsif PSTATE.EL == EL1 then if EffectiveHCR_EL2_NVx() IN {'xx1'} then AArch64_SystemAccessTrap(EL2, 0x18); elsif EL2Enabled() && IsFeatureImplemented(FEAT_FGT) && (!HaveEL(EL3) || SCR_EL3().FGTEn == '1') && HFGITR_EL2().CFPRCTX == '1' then AArch64_SystemAccessTrap(EL2, 0x18); else AArch64_RestrictPrediction(X{64}(t), RestrictType_ControlFlow); end; elsif PSTATE.EL == EL2 then AArch64_RestrictPrediction(X{64}(t), RestrictType_ControlFlow); elsif PSTATE.EL == EL3 then AArch64_RestrictPrediction(X{64}(t), RestrictType_ControlFlow); end; ``` ---- COSP RCTX Clear Other Speculative Prediction Restriction by Context Clear Other Speculative Prediction Restriction by Context applies to all prediction resources not managed by other speculation restriction System instructions. The actions of code in the target execution context or contexts appearing in program order before the instruction cannot exploitatively control any predictions occurring after the instruction is complete and synchronized. This instruction applies to all speculative access except: - Cache Prefetch predictions. - Control Flow predictions. - Data Value predictions. This instruction is guaranteed to be complete following a DSB that covers both read and write behavior on the PE that executed the original restriction instruction, and a subsequent Context Synchronization event is required to ensure that the effect of the completion of the instructions is synchronized to the current execution. This instruction does not require the invalidation of Cache Allocation Resources so long as the behavior described for completion of this instruction is met by the implementation. On some implementations, the instruction is likely to take a significant number of cycles to execute. This instruction is expected to be used rarely, such as on the roll-over of an ASID or VMID, but should not be used on every context switch. This instruction applies to speculative accesses resulting from address predictions. Configuration This instruction is present only when FEAT_SPECRES2 is implemented and FEAT_AA64 is implemented. Otherwise, direct accesses to COSP RCTX are UNDEFINED. Attributes COSP RCTX is a 64-bit System instruction. 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 | | | | | | | | | | | | | | | GVMID | VMID | | | | | | | | | | | | | | | RES0 | | | | NSE | NS | EL | | RES0 | | | | | | | GASID | ASID | | | | | | | | | | | | | | | Bits [63:49]: Reserved, RES0. GVMID, bit [48]: Execution of this instruction applies to all VMIDs or a specified VMID. GVMID | Meaning 0b0 | Applies to specified VMID for an EL0 or EL1 target execution context. 0b1 | Applies to all VMIDs for an EL0 or EL1 target execution context. For target execution contexts other than EL0 and EL1, this field is RES0. If the instruction is executed at EL0 or EL1, this field has an Effective value of 0. If EL2 is not implemented or not enabled for the target Security state, this field is RES0. VMID, bits [47:32]: Only applies when bit[48] is 0 and the target execution context is either: - EL1. - EL0 when the Effective value of HCR_EL2.{E2H, TGE} is not {1, 1}. Otherwise this field is RES0. When the instruction is executed at EL1, this field is treated as the current VMID. When the instruction is executed at EL0 and the Effective value of HCR_EL2.{E2H, TGE} is not {1, 1}, this field is treated as the current VMID. When the instruction is executed at EL0 and the Effective value of HCR_EL2.{E2H, TGE} is {1, 1}, this field is ignored. If EL2 is not implemented or not enabled for the target Security state, this field is RES0. If the implementation supports 16 bits of VMID, then the upper 8 bits of the VMID must be written to 0 by software when the context being affected only uses 8 bits. Bits [31:28]: Reserved, RES0. NSE, bit [27] when FEAT_RME is implemented: Together with the NS field, selects the Security state. For a description of the values derived by evaluating NS and NSE together, see COSP_RCTX.NS. Otherwise: Reserved, RES0. NS, bit [26] when FEAT_RME is implemented: Together with the NSE field, selects the 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. Some Effective values are determined by the current Security state: - When executed in Secure state, the Effective value of NSE is 0. - When executed in Non-secure state, the Effective value of {NSE, NS} is {0, 1}. - When executed in Realm state, the Effective value of {NSE, NS} is {1, 1}. This instruction is treated as a NOP when executed at EL3 and either: - COSP_RCTX.{NSE, NS} selects a reserved value. - COSP_RCTX.{NSE, NS} == {1, 0} and COSP_RCTX.EL has a value other than 0b11. Otherwise: Security State. NS | Meaning 0b0 | Secure state. 0b1 | Non-secure state. When executed in Non-secure state, the Effective value of NS is 1. EL, bits [25:24]: Exception Level. Indicates the Exception level of the target execution context. EL | Meaning | Applies when 0b00 | EL0. | 0b01 | EL1 | 0b10 | EL2 | When FEAT_EL2 is implemented 0b11 | EL3 | When FEAT_EL3 is implemented If the instruction is executed at an Exception level lower than the specified level, or is specified to apply to a combination of Exception level and Security state that is not implemented, this instruction is treated as a NOP. Bits [23:17]: Reserved, RES0. GASID, bit [16]: Execution of this instruction applies to all ASIDs, or a specified ASID. GASID | Meaning 0b0 | Applies to specified ASID for an EL0 target execution context. 0b1 | Applies to all ASIDs for an EL0 target execution context. For target execution contexts other than EL0, this field is RES0. If the instruction is executed at EL0, this field has an Effective value of 0. ASID, bits [15:0]: Only applies to an EL0 target execution context and when bit[16] is 0. Otherwise, this field is RES0. When the instruction is executed at EL0, this field is treated as the current ASID. If the implementation supports 16 bits of ASID, then the upper 8 bits of the ASID must be written to 0 by software when the context being affected only uses 8 bits. Executing COSP RCTX This system instruction is an alias of the SYS instruction. Accesses to this instruction use the following encodings in the System instruction encoding space: COSP RCTX, (op0 = 0b01, op1 = 0b011, CRn = 0b0111, CRm = 0b0011, op2 = 0b110) ``` if !(IsFeatureImplemented(FEAT_SPECRES2) && IsFeatureImplemented(FEAT_AA64)) then Undefined(); elsif EffectivelyAtEL0NotInHost() then if SCTLR_EL1().EnRCTX == '0' then AArch64_SystemAccessTraptoEL1orEL2(0x18); elsif EL2Enabled() && IsFeatureImplemented(FEAT_FGT) && (!HaveEL(EL3) || SCR_EL3().FGTEn == '1') && HFGITR_EL2().COSPRCTX == '1' then AArch64_SystemAccessTrap(EL2, 0x18); else AArch64_RestrictPrediction(X{64}(t), RestrictType_Other); end; elsif EffectivelyAtEL0InHost() then if SCTLR_EL2().EnRCTX == '0' then AArch64_SystemAccessTrap(EL2, 0x18); else AArch64_RestrictPrediction(X{64}(t), RestrictType_Other); end; elsif PSTATE.EL == EL1 then if EffectiveHCR_EL2_NVx() IN {'xx1'} then AArch64_SystemAccessTrap(EL2, 0x18); elsif EL2Enabled() && IsFeatureImplemented(FEAT_FGT) && (!HaveEL(EL3) || SCR_EL3().FGTEn == '1') && HFGITR_EL2().COSPRCTX == '1' then AArch64_SystemAccessTrap(EL2, 0x18); else AArch64_RestrictPrediction(X{64}(t), RestrictType_Other); end; elsif PSTATE.EL == EL2 then AArch64_RestrictPrediction(X{64}(t), RestrictType_Other); elsif PSTATE.EL == EL3 then AArch64_RestrictPrediction(X{64}(t), RestrictType_Other); end; ``` ---- This site offers reference documentation for the AArch64 instruction set and system registers defined by the Armv8-A and Armv9-A architectures. You can use the search field below (and at the top of every page) to search for an instruction or system register. Alternatively, you can browse the full listings manually: - All Instructions: Base | SIMD | SVE | SME - All Registers: AArch64 | AArch32 If you see this note instead of a search field, your browser either does not support WebAssembly or it has been disabled, e.g. in Apple's Lockdown Mode . ---- CPP RCTX Cache Prefetch Prediction Restriction by Context Cache Prefetch Prediction Restriction by Context applies to all Cache Allocation Resources that predict cache allocations based on information gathered within the target execution context or contexts. The actions of code in the target execution context or contexts appearing in program order before the instruction cannot exploitatively control cache prefetch predictions occurring after the instruction is complete and synchronized. This instruction applies to all: - Instruction caches. - Data caches. - TLB prefetching hardware used by the executing PE that applies to the supplied context or contexts. This instruction is guaranteed to be complete following a DSB that covers both read and write behavior on the same PE as executed the original restriction instruction, and a subsequent context synchronization event is required to ensure that the effect of the completion of the instructions is synchronized to the current execution. This instruction does not require the invalidation of Cache Allocation Resources so long as the behavior described for completion of this instruction is met by the implementation. On some implementations the instruction is likely to take a significant number of cycles to execute. This instruction is expected to be used very rarely, such as on the roll-over of an ASID or VMID, but should not be used on every context switch. Configuration This instruction is present only when FEAT_SPECRES is implemented and FEAT_AA64 is implemented. Otherwise, direct accesses to CPP RCTX are UNDEFINED. Attributes CPP RCTX is a 64-bit System instruction. 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 | | | | | | | | | | | | | | | GVMID | VMID | | | | | | | | | | | | | | | RES0 | | | | NSE | NS | EL | | RES0 | | | | | | | GASID | ASID | | | | | | | | | | | | | | | Bits [63:49]: Reserved, RES0. GVMID, bit [48]: Execution of this instruction applies to all VMIDs or a specified VMID. GVMID | Meaning 0b0 | Applies to specified VMID for an EL0 or EL1 target execution context. 0b1 | Applies to all VMIDs for an EL0 or EL1 target execution context. For target execution contexts other than EL0 and EL1, this field is RES0. If the instruction is executed at EL0 or EL1, this field has an Effective value of 0. If EL2 is not implemented or not enabled for the target Security state, this field is RES0. VMID, bits [47:32]: Only applies when bit[48] is 0 and the target execution context is either: - EL1. - EL0 when the Effective value of HCR_EL2.{E2H, TGE} is not {1, 1}. Otherwise this field is RES0. When the instruction is executed at EL1, this field is treated as the current VMID. When the instruction is executed at EL0 and the Effective value of HCR_EL2.{E2H, TGE} is not {1, 1}, this field is treated as the current VMID. When the instruction is executed at EL0 and the Effective value of HCR_EL2.{E2H, TGE} is {1, 1}, this field is ignored. If EL2 is not implemented or not enabled for the target Security state, this field is RES0. If the implementation supports 16 bits of VMID, then the upper 8 bits of the VMID must be written to 0 by software when the context being affected only uses 8 bits. Bits [31:28]: Reserved, RES0. NSE, bit [27] when FEAT_RME is implemented: Together with the NS field, selects the Security state. For a description of the values derived by evaluating NS and NSE together, see CPP_RCTX.NS. Otherwise: Reserved, RES0. NS, bit [26] when FEAT_RME is implemented: Together with the NSE field, selects the 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. Some Effective values are determined by the current Security state: - When executed in Secure state, the Effective value of NSE is 0. - When executed in Non-secure state, the Effective value of {NSE, NS} is {0, 1}. - When executed in Realm state, the Effective value of {NSE, NS} is {1, 1}. This instruction is treated as a NOP when executed at EL3 and either: - CPP_RCTX.{NSE, NS} selects a reserved value. - CPP_RCTX.{NSE, NS} == {1, 0} and CPP_RCTX.EL has a value other than 0b11. Otherwise: Security State. NS | Meaning 0b0 | Secure state. 0b1 | Non-secure state. When executed in Non-secure state, the Effective value of NS is 1. EL, bits [25:24]: Exception Level. Indicates the Exception level of the target execution context. EL | Meaning | Applies when 0b00 | EL0. | 0b01 | EL1 | 0b10 | EL2 | When FEAT_EL2 is implemented 0b11 | EL3 | When FEAT_EL3 is implemented If the instruction is executed at an Exception level lower than the specified level, or is specified to apply to a combination of Exception level and Security state that is not implemented, this instruction is treated as a NOP. Bits [23:17]: Reserved, RES0. GASID, bit [16]: Execution of this instruction applies to all ASIDs or a specified ASID. GASID | Meaning 0b0 | Applies to specified ASID for an EL0 target execution context. 0b1 | Applies to all ASIDs for an EL0 target execution context. For target execution contexts other than EL0, this field is RES0. If the instruction is executed at EL0, this field has an Effective value of 0. ASID, bits [15:0]: Only applies for an EL0 target execution context and when bit[16] is 0. Otherwise, this field is RES0. When the instruction is executed at EL0, this field is treated as the current ASID. If the implementation supports 16 bits of ASID, then the upper 8 bits of the ASID must be written to 0 by software when the context being affected only uses 8 bits. Executing CPP RCTX This system instruction is an alias of the SYS instruction. Accesses to this instruction use the following encodings in the System instruction encoding space: CPP RCTX, (op0 = 0b01, op1 = 0b011, CRn = 0b0111, CRm = 0b0011, op2 = 0b111) ``` if !(IsFeatureImplemented(FEAT_SPECRES) && IsFeatureImplemented(FEAT_AA64)) then Undefined(); elsif EffectivelyAtEL0NotInHost() then if SCTLR_EL1().EnRCTX == '0' then AArch64_SystemAccessTraptoEL1orEL2(0x18); elsif EL2Enabled() && IsFeatureImplemented(FEAT_FGT) && (!HaveEL(EL3) || SCR_EL3().FGTEn == '1') && HFGITR_EL2().CPPRCTX == '1' then AArch64_SystemAccessTrap(EL2, 0x18); else AArch64_RestrictPrediction(X{64}(t), RestrictType_CachePrefetch); end; elsif EffectivelyAtEL0InHost() then if SCTLR_EL2().EnRCTX == '0' then AArch64_SystemAccessTrap(EL2, 0x18); else AArch64_RestrictPrediction(X{64}(t), RestrictType_CachePrefetch); end; elsif PSTATE.EL == EL1 then if EffectiveHCR_EL2_NVx() IN {'xx1'} then AArch64_SystemAccessTrap(EL2, 0x18); elsif EL2Enabled() && IsFeatureImplemented(FEAT_FGT) && (!HaveEL(EL3) || SCR_EL3().FGTEn == '1') && HFGITR_EL2().CPPRCTX == '1' then AArch64_SystemAccessTrap(EL2, 0x18); else AArch64_RestrictPrediction(X{64}(t), RestrictType_CachePrefetch); end; elsif PSTATE.EL == EL2 then AArch64_RestrictPrediction(X{64}(t), RestrictType_CachePrefetch); elsif PSTATE.EL == EL3 then AArch64_RestrictPrediction(X{64}(t), RestrictType_CachePrefetch); end; ``` ---- DC CGDSW Clean of Data and Allocation Tags by Set/Way Clean data and Allocation Tags in data cache by set/way. Configuration This instruction is present only when FEAT_MTE2 is implemented. Otherwise, direct accesses to DC CGDSW are UNDEFINED. Attributes DC CGDSW is a 64-bit System instruction. 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 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SetWay | | | | | | | | | | | | | | | | | | | | | | | | | | | | Level | | | RES0 Bits [63:32]: Reserved, RES0. SetWay, bits [31:4]: Contains two fields: - Way, bits[31:32-A], the number of the way to operate on. - Set, bits[B-1:L], the number of the set to operate on. Bits[L-1:4] are RES0. A = Log2(ASSOCIATIVITY), L = Log2(LINELEN), B = (L + S), S = Log2(NSETS). ASSOCIATIVITY, LINELEN (line length, in bytes), and NSETS (number of sets) have their usual meanings and are the values for the cache level being operated on. The values of A and S are rounded up to the next integer. Level, bits [3:1]: Cache level to operate on, minus 1. For example, this field is 0 for operations on L1 cache, or 1 for operations on L2 cache. Bit [0]: Reserved, RES0. Executing DC CGDSW If this instruction is executed with a set, way or level argument that is larger than the value supported by the implementation then the behavior is CONSTRAINED UNPREDICTABLE and one of the following occurs: - The instruction is UNDEFINED. The instruction performs cache maintenance on one of: - No cache lines. - A single arbitrary cache line. - Multiple arbitrary cache lines. This system instruction is an alias of the SYS instruction. Accesses to this instruction use the following encodings in the System instruction encoding space: DC CGDSW, (op0 = 0b01, op1 = 0b000, CRn = 0b0111, CRm = 0b1010, op2 = 0b110) ``` if !IsFeatureImplemented(FEAT_MTE2) then Undefined(); elsif PSTATE.EL == EL0 then Undefined(); elsif PSTATE.EL == EL1 then if EL2Enabled() && HCR_EL2().TSW == '1' then AArch64_SystemAccessTrap(EL2, 0x18); elsif EL2Enabled() && IsFeatureImplemented(FEAT_FGT) && (!HaveEL(EL3) || SCR_EL3().FGTEn == '1') && HFGITR_EL2().DCCSW == '1' then AArch64_SystemAccessTrap(EL2, 0x18); else AArch64_DC(X{64}(t), CacheType_Data_Tag, CacheOp_Clean, CacheOpScope_SetWay); end; elsif PSTATE.EL == EL2 then AArch64_DC(X{64}(t), CacheType_Data_Tag, CacheOp_Clean, CacheOpScope_SetWay); elsif PSTATE.EL == EL3 then AArch64_DC(X{64}(t), CacheType_Data_Tag, CacheOp_Clean, CacheOpScope_SetWay); end; ``` ------------------------------------------------------------------------------ Page 1 of 1. End of thread.