[Writeup] AArch32 system register pages: part 1 of 4 ==================================================== Section: Silicon & Architectures Started: 2026-11-28 17:36 UTC by admin Replies: 0, last post 2026-11-28 17:36 UTC Page: 1 of 1 Web: https://romdump.net/t/56 ------------------------------------------------------------------------------ #76 admin, 2026-11-28 17:36 UTC [OP] Source: https://romdump.net/raw/76 Archived Arm source pages for the AArch32 system register pages. Part 1 of 4. This part covers ATS12NSOPR through CP15ISB. ATS12NSOPR Address Translate Stages 1 and 2 Non-secure Only PL1 Read Performs stage 1 and 2 address translations as defined for PL1 and the Non-secure state, with permissions as if reading from the given virtual address. Configuration This instruction is present only when FEAT_AA32EL2 is implemented. Otherwise, direct accesses to ATS12NSOPR are UNDEFINED. Attributes ATS12NSOPR is a 32-bit System instruction. Field descriptions 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 IA | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | IA, bits [31:0]: Input address for translation. The resulting address can be read from the PAR. This System instruction takes a VA as input. The resulting address is the PA that is the output address of the stage 2 translation. Executing ATS12NSOPR Accesses to this instruction use the following encodings in the System instruction encoding space: MCR{}{} , {#}, , , {, {#}} (coproc = 0b1111, opc1 = 0b000, CRn = 0b0111, CRm = 0b1000, opc2 = 0b100) ``` if !IsFeatureImplemented(FEAT_AA32EL2) then Undefined(); elsif PSTATE.EL == EL0 then Undefined(); elsif PSTATE.EL == EL1 then if EL2Enabled() && IsFeatureImplemented(FEAT_AA64EL2) && !ELUsingAArch32(EL2) && HSTR_EL2().T7 == '1' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA32EL2) && ELUsingAArch32(EL2) && HSTR().T7 == '1' then AArch32_TakeHypTrapException(0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA64EL2) && !ELUsingAArch32(EL2) && IsCurrentSecurityState(SS_Secure) then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif IsFeatureImplemented(FEAT_AA64EL3) && !ELUsingAArch32(EL3) && IsCurrentSecurityState(SS_Secure) then AArch64_AArch32SystemAccessTrap(EL3, 0x03); else Undefined(); end; elsif PSTATE.EL == EL2 then AArch32_AT(R(t), TranslationStage_12, EL1, ATAccess_Read); elsif PSTATE.EL == EL3 then AArch32_AT(R(t), TranslationStage_12, EL1, ATAccess_Read); end; ``` ---- ATS12NSOPW Address Translate Stages 1 and 2 Non-secure Only PL1 Write Performs stage 1 and 2 address translations as defined for PL1 and the Non-secure state, with permissions as if writing to the given virtual address. Configuration This instruction is present only when FEAT_AA32EL2 is implemented. Otherwise, direct accesses to ATS12NSOPW are UNDEFINED. Attributes ATS12NSOPW is a 32-bit System instruction. Field descriptions 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 IA | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | IA, bits [31:0]: Input address for translation. The resulting address can be read from the PAR. This System instruction takes a VA as input. The resulting address is the PA that is the output address of the stage 2 translation. Executing ATS12NSOPW Accesses to this instruction use the following encodings in the System instruction encoding space: MCR{}{} , {#}, , , {, {#}} (coproc = 0b1111, opc1 = 0b000, CRn = 0b0111, CRm = 0b1000, opc2 = 0b101) ``` if !IsFeatureImplemented(FEAT_AA32EL2) then Undefined(); elsif PSTATE.EL == EL0 then Undefined(); elsif PSTATE.EL == EL1 then if EL2Enabled() && IsFeatureImplemented(FEAT_AA64EL2) && !ELUsingAArch32(EL2) && HSTR_EL2().T7 == '1' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA32EL2) && ELUsingAArch32(EL2) && HSTR().T7 == '1' then AArch32_TakeHypTrapException(0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA64EL2) && !ELUsingAArch32(EL2) && IsCurrentSecurityState(SS_Secure) then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif IsFeatureImplemented(FEAT_AA64EL3) && !ELUsingAArch32(EL3) && IsCurrentSecurityState(SS_Secure) then AArch64_AArch32SystemAccessTrap(EL3, 0x03); else Undefined(); end; elsif PSTATE.EL == EL2 then AArch32_AT(R(t), TranslationStage_12, EL1, ATAccess_Write); elsif PSTATE.EL == EL3 then AArch32_AT(R(t), TranslationStage_12, EL1, ATAccess_Write); end; ``` ---- ATS12NSOUR Address Translate Stages 1 and 2 Non-secure Only Unprivileged Read Performs stage 1 and 2 address translations as defined for PL0 and the Non-secure state, with permissions as if reading from the given virtual address. Configuration This instruction is present only when FEAT_AA32EL2 is implemented. Otherwise, direct accesses to ATS12NSOUR are UNDEFINED. Attributes ATS12NSOUR is a 32-bit System instruction. Field descriptions 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 IA | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | IA, bits [31:0]: Input address for translation. The resulting address can be read from the PAR. This System instruction takes a VA as input. The resulting address is the PA that is the output address of the stage 2 translation. Executing ATS12NSOUR Accesses to this instruction use the following encodings in the System instruction encoding space: MCR{}{} , {#}, , , {, {#}} (coproc = 0b1111, opc1 = 0b000, CRn = 0b0111, CRm = 0b1000, opc2 = 0b110) ``` if !IsFeatureImplemented(FEAT_AA32EL2) then Undefined(); elsif PSTATE.EL == EL0 then Undefined(); elsif PSTATE.EL == EL1 then if EL2Enabled() && IsFeatureImplemented(FEAT_AA64EL2) && !ELUsingAArch32(EL2) && HSTR_EL2().T7 == '1' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA32EL2) && ELUsingAArch32(EL2) && HSTR().T7 == '1' then AArch32_TakeHypTrapException(0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA64EL2) && !ELUsingAArch32(EL2) && IsCurrentSecurityState(SS_Secure) then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif IsFeatureImplemented(FEAT_AA64EL3) && !ELUsingAArch32(EL3) && IsCurrentSecurityState(SS_Secure) then AArch64_AArch32SystemAccessTrap(EL3, 0x03); else Undefined(); end; elsif PSTATE.EL == EL2 then AArch32_AT(R(t), TranslationStage_12, EL0, ATAccess_Read); elsif PSTATE.EL == EL3 then AArch32_AT(R(t), TranslationStage_12, EL0, ATAccess_Read); end; ``` ---- ATS12NSOUW Address Translate Stages 1 and 2 Non-secure Only Unprivileged Write Performs stage 1 and 2 address translations as defined for PL0 and the Non-secure state, with permissions as if writing to the given virtual address. Configuration This instruction is present only when FEAT_AA32EL2 is implemented. Otherwise, direct accesses to ATS12NSOUW are UNDEFINED. Attributes ATS12NSOUW is a 32-bit System instruction. Field descriptions 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 IA | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | IA, bits [31:0]: Input address for translation. The resulting address can be read from the PAR. This System instruction takes a VA as input. The resulting address is the PA that is the output address of the stage 2 translation. Executing ATS12NSOUW Accesses to this instruction use the following encodings in the System instruction encoding space: MCR{}{} , {#}, , , {, {#}} (coproc = 0b1111, opc1 = 0b000, CRn = 0b0111, CRm = 0b1000, opc2 = 0b111) ``` if !IsFeatureImplemented(FEAT_AA32EL2) then Undefined(); elsif PSTATE.EL == EL0 then Undefined(); elsif PSTATE.EL == EL1 then if EL2Enabled() && IsFeatureImplemented(FEAT_AA64EL2) && !ELUsingAArch32(EL2) && HSTR_EL2().T7 == '1' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA32EL2) && ELUsingAArch32(EL2) && HSTR().T7 == '1' then AArch32_TakeHypTrapException(0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA64EL2) && !ELUsingAArch32(EL2) && IsCurrentSecurityState(SS_Secure) then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif IsFeatureImplemented(FEAT_AA64EL3) && !ELUsingAArch32(EL3) && IsCurrentSecurityState(SS_Secure) then AArch64_AArch32SystemAccessTrap(EL3, 0x03); else Undefined(); end; elsif PSTATE.EL == EL2 then AArch32_AT(R(t), TranslationStage_12, EL0, ATAccess_Write); elsif PSTATE.EL == EL3 then AArch32_AT(R(t), TranslationStage_12, EL0, ATAccess_Write); end; ``` ---- ATS1CPR Address Translate Stage 1 Current state PL1 Read Performs stage 1 address translation as defined for PL1 and the current Security state, with permissions as if reading from the given virtual address. Configuration This instruction is present only when FEAT_AA32EL1 is implemented. Otherwise, direct accesses to ATS1CPR are UNDEFINED. Attributes ATS1CPR is a 32-bit System instruction. Field descriptions 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 IA | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | IA, bits [31:0]: Input address for translation. The resulting address can be read from the PAR. This System instruction takes a VA as input. If EL2 is implemented and enabled in the current Security state, the resulting address is the IPA that is the output address of the stage 1 translation. Otherwise, the resulting address is a PA. Executing ATS1CPR Accesses to this instruction use the following encodings in the System instruction encoding space: MCR{}{} , {#}, , , {, {#}} (coproc = 0b1111, opc1 = 0b000, CRn = 0b0111, CRm = 0b1000, opc2 = 0b000) ``` if !IsFeatureImplemented(FEAT_AA32EL1) then Undefined(); elsif PSTATE.EL == EL0 then Undefined(); elsif PSTATE.EL == EL1 then if EL2Enabled() && IsFeatureImplemented(FEAT_AA64EL2) && !ELUsingAArch32(EL2) && HSTR_EL2().T7 == '1' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA32EL2) && ELUsingAArch32(EL2) && HSTR().T7 == '1' then AArch32_TakeHypTrapException(0x03); else AArch32_AT(R(t), TranslationStage_1, EL1, ATAccess_Read); end; elsif PSTATE.EL == EL2 then AArch32_AT(R(t), TranslationStage_1, EL1, ATAccess_Read); elsif PSTATE.EL == EL3 then if SCR().NS == '0' then AArch32_AT(R(t), TranslationStage_1, EL3, ATAccess_Read); else AArch32_AT(R(t), TranslationStage_1, EL1, ATAccess_Read); end; end; ``` ---- ATS1CPRP Address Translate Stage 1 Current state PL1 Read PAN Performs a stage 1 address translation at PL1 and in the current Security state, where the value of PSTATE.PAN determines if a read from a location will generate a Permission fault for a privileged access. Configuration This instruction is present only when FEAT_AA32EL1 is implemented and FEAT_PAN2 is implemented. Otherwise, direct accesses to ATS1CPRP are UNDEFINED. Attributes ATS1CPRP is a 32-bit System instruction. Field descriptions 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 IA | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | IA, bits [31:0]: Input address for translation. The resulting address can be read from the PAR. This System instruction takes a VA as input. If EL2 is implemented and enabled in the current Security state, the resulting address is the IPA that is the output address of the stage 1 translation. Otherwise, the resulting address is a PA. Executing ATS1CPRP Accesses to this instruction use the following encodings in the System instruction encoding space: MCR{}{} , {#}, , , {, {#}} (coproc = 0b1111, opc1 = 0b000, CRn = 0b0111, CRm = 0b1001, opc2 = 0b000) ``` if !(IsFeatureImplemented(FEAT_AA32EL1) && IsFeatureImplemented(FEAT_PAN2)) then Undefined(); elsif PSTATE.EL == EL0 then Undefined(); elsif PSTATE.EL == EL1 then if EL2Enabled() && IsFeatureImplemented(FEAT_AA64EL2) && !ELUsingAArch32(EL2) && HSTR_EL2().T7 == '1' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA32EL2) && ELUsingAArch32(EL2) && HSTR().T7 == '1' then AArch32_TakeHypTrapException(0x03); else AArch32_AT(R(t), TranslationStage_1, EL1, ATAccess_ReadPAN); end; elsif PSTATE.EL == EL2 then AArch32_AT(R(t), TranslationStage_1, EL1, ATAccess_ReadPAN); elsif PSTATE.EL == EL3 then if SCR().NS == '0' then AArch32_AT(R(t), TranslationStage_1, EL3, ATAccess_ReadPAN); else AArch32_AT(R(t), TranslationStage_1, EL1, ATAccess_ReadPAN); end; end; ``` ---- ATS1CPW Address Translate Stage 1 Current state PL1 Write Performs stage 1 address translation as defined for PL1 and the current Security state, with permissions as if writing to the given virtual address. Configuration This instruction is present only when FEAT_AA32EL1 is implemented. Otherwise, direct accesses to ATS1CPW are UNDEFINED. Attributes ATS1CPW is a 32-bit System instruction. Field descriptions 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 IA | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | IA, bits [31:0]: Input address for translation. The resulting address can be read from the PAR. This System instruction takes a VA as input. If EL2 is implemented and enabled in the current Security state, the resulting address is the IPA that is the output address of the stage 1 translation. Otherwise, the resulting address is a PA. Executing ATS1CPW Accesses to this instruction use the following encodings in the System instruction encoding space: MCR{}{} , {#}, , , {, {#}} (coproc = 0b1111, opc1 = 0b000, CRn = 0b0111, CRm = 0b1000, opc2 = 0b001) ``` if !IsFeatureImplemented(FEAT_AA32EL1) then Undefined(); elsif PSTATE.EL == EL0 then Undefined(); elsif PSTATE.EL == EL1 then if EL2Enabled() && IsFeatureImplemented(FEAT_AA64EL2) && !ELUsingAArch32(EL2) && HSTR_EL2().T7 == '1' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA32EL2) && ELUsingAArch32(EL2) && HSTR().T7 == '1' then AArch32_TakeHypTrapException(0x03); else AArch32_AT(R(t), TranslationStage_1, EL1, ATAccess_Write); end; elsif PSTATE.EL == EL2 then AArch32_AT(R(t), TranslationStage_1, EL1, ATAccess_Write); elsif PSTATE.EL == EL3 then if SCR().NS == '0' then AArch32_AT(R(t), TranslationStage_1, EL3, ATAccess_Write); else AArch32_AT(R(t), TranslationStage_1, EL1, ATAccess_Write); end; end; ``` ---- ATS1CPWP Address Translate Stage 1 Current state PL1 Write PAN Performs a stage 1 address translation at PL1 and in the current Security state, where the value of PSTATE.PAN determines if a write to the location will generate a Permission fault for a privileged access. Configuration This instruction is present only when FEAT_AA32EL1 is implemented and FEAT_PAN2 is implemented. Otherwise, direct accesses to ATS1CPWP are UNDEFINED. Attributes ATS1CPWP is a 32-bit System instruction. Field descriptions 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 IA | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | IA, bits [31:0]: Input address for translation. The resulting address can be read from the PAR. This System instruction takes a VA as input. If EL2 is implemented and enabled in the current Security state, the resulting address is the IPA that is the output address of the stage 1 translation. Otherwise, the resulting address is a PA. Executing ATS1CPWP Accesses to this instruction use the following encodings in the System instruction encoding space: MCR{}{} , {#}, , , {, {#}} (coproc = 0b1111, opc1 = 0b000, CRn = 0b0111, CRm = 0b1001, opc2 = 0b001) ``` if !(IsFeatureImplemented(FEAT_AA32EL1) && IsFeatureImplemented(FEAT_PAN2)) then Undefined(); elsif PSTATE.EL == EL0 then Undefined(); elsif PSTATE.EL == EL1 then if EL2Enabled() && IsFeatureImplemented(FEAT_AA64EL2) && !ELUsingAArch32(EL2) && HSTR_EL2().T7 == '1' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA32EL2) && ELUsingAArch32(EL2) && HSTR().T7 == '1' then AArch32_TakeHypTrapException(0x03); else AArch32_AT(R(t), TranslationStage_1, EL1, ATAccess_WritePAN); end; elsif PSTATE.EL == EL2 then AArch32_AT(R(t), TranslationStage_1, EL1, ATAccess_WritePAN); elsif PSTATE.EL == EL3 then if SCR().NS == '0' then AArch32_AT(R(t), TranslationStage_1, EL3, ATAccess_WritePAN); else AArch32_AT(R(t), TranslationStage_1, EL1, ATAccess_WritePAN); end; end; ``` ---- ATS1CUR Address Translate Stage 1 Current state Unprivileged Read Performs stage 1 address translation as defined for PL0 and the current Security state, with permissions as if reading from the given virtual address. Configuration This instruction is present only when FEAT_AA32EL1 is implemented. Otherwise, direct accesses to ATS1CUR are UNDEFINED. Attributes ATS1CUR is a 32-bit System instruction. Field descriptions 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 IA | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | IA, bits [31:0]: Input address for translation. The resulting address can be read from the PAR. This System instruction takes a VA as input. If EL2 is implemented and enabled in the current Security state, the resulting address is the IPA that is the output address of the stage 1 translation. Otherwise, the resulting address is a PA. Executing ATS1CUR Accesses to this instruction use the following encodings in the System instruction encoding space: MCR{}{} , {#}, , , {, {#}} (coproc = 0b1111, opc1 = 0b000, CRn = 0b0111, CRm = 0b1000, opc2 = 0b010) ``` if !IsFeatureImplemented(FEAT_AA32EL1) then Undefined(); elsif PSTATE.EL == EL0 then Undefined(); elsif PSTATE.EL == EL1 then if EL2Enabled() && IsFeatureImplemented(FEAT_AA64EL2) && !ELUsingAArch32(EL2) && HSTR_EL2().T7 == '1' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA32EL2) && ELUsingAArch32(EL2) && HSTR().T7 == '1' then AArch32_TakeHypTrapException(0x03); else AArch32_AT(R(t), TranslationStage_1, EL0, ATAccess_Read); end; elsif PSTATE.EL == EL2 then AArch32_AT(R(t), TranslationStage_1, EL0, ATAccess_Read); elsif PSTATE.EL == EL3 then AArch32_AT(R(t), TranslationStage_1, EL0, ATAccess_Read); end; ``` ---- ATS1CUW Address Translate Stage 1 Current state Unprivileged Write Performs stage 1 address translation as defined for PL0 and the current Security state, with permissions as if writing to the given virtual address. Configuration This instruction is present only when FEAT_AA32EL1 is implemented. Otherwise, direct accesses to ATS1CUW are UNDEFINED. Attributes ATS1CUW is a 32-bit System instruction. Field descriptions 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 IA | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | IA, bits [31:0]: Input address for translation. The resulting address can be read from the PAR. This System instruction takes a VA as input. If EL2 is implemented and enabled in the current Security state, the resulting address is the IPA that is the output address of the stage 1 translation. Otherwise, the resulting address is a PA. Executing ATS1CUW Accesses to this instruction use the following encodings in the System instruction encoding space: MCR{}{} , {#}, , , {, {#}} (coproc = 0b1111, opc1 = 0b000, CRn = 0b0111, CRm = 0b1000, opc2 = 0b011) ``` if !IsFeatureImplemented(FEAT_AA32EL1) then Undefined(); elsif PSTATE.EL == EL0 then Undefined(); elsif PSTATE.EL == EL1 then if EL2Enabled() && IsFeatureImplemented(FEAT_AA64EL2) && !ELUsingAArch32(EL2) && HSTR_EL2().T7 == '1' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA32EL2) && ELUsingAArch32(EL2) && HSTR().T7 == '1' then AArch32_TakeHypTrapException(0x03); else AArch32_AT(R(t), TranslationStage_1, EL0, ATAccess_Write); end; elsif PSTATE.EL == EL2 then AArch32_AT(R(t), TranslationStage_1, EL0, ATAccess_Write); elsif PSTATE.EL == EL3 then AArch32_AT(R(t), TranslationStage_1, EL0, ATAccess_Write); end; ``` ---- BPIALL Branch Predictor Invalidate All Invalidate all entries from branch predictors. Configuration This instruction is present only when FEAT_AA32EL1 is implemented. Otherwise, direct accesses to BPIALL are UNDEFINED. In an implementation where the branch predictors are architecturally invisible, this instruction can execute as a NOP. Attributes BPIALL is a 32-bit System instruction. Field descriptions This instruction has no applicable fields. The value in the register specified by is ignored. Executing BPIALL The PE ignores the value of . Software does not have to write a value to this register before issuing this instruction. When HCR.FB is 1, at Non-secure EL1 this instruction executes as a BPIALLIS. Accesses to this instruction use the following encodings in the System instruction encoding space: MCR{}{} , {#}, , , {, {#}} (coproc = 0b1111, opc1 = 0b000, CRn = 0b0111, CRm = 0b0101, opc2 = 0b110) ``` if !IsFeatureImplemented(FEAT_AA32EL1) then Undefined(); elsif PSTATE.EL == EL0 then Undefined(); elsif PSTATE.EL == EL1 then if EL2Enabled() && IsFeatureImplemented(FEAT_AA64EL2) && !ELUsingAArch32(EL2) && HSTR_EL2().T7 == '1' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA32EL2) && ELUsingAArch32(EL2) && HSTR().T7 == '1' then AArch32_TakeHypTrapException(0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA32EL2) && ELUsingAArch32(EL2) && HCR().FB == '1' then BPIALLIS(); else BPIALL(); end; elsif PSTATE.EL == EL2 then BPIALL(); elsif PSTATE.EL == EL3 then BPIALL(); end; ``` ---- BPIALLIS Branch Predictor Invalidate All, Inner Shareable Invalidate all entries from branch predictors Inner Shareable. Configuration This instruction is present only when FEAT_AA32EL1 is implemented. Otherwise, direct accesses to BPIALLIS are UNDEFINED. In an implementation where the branch predictors are architecturally invisible, this instruction can execute as a NOP. Attributes BPIALLIS is a 32-bit System instruction. Field descriptions This instruction has no applicable fields. The value in the register specified by is ignored. Executing BPIALLIS The PE ignores the value of . Software does not have to write a value to this register before issuing this instruction. Accesses to this instruction use the following encodings in the System instruction encoding space: MCR{}{} , {#}, , , {, {#}} (coproc = 0b1111, opc1 = 0b000, CRn = 0b0111, CRm = 0b0001, opc2 = 0b110) ``` if !IsFeatureImplemented(FEAT_AA32EL1) then Undefined(); elsif PSTATE.EL == EL0 then Undefined(); elsif PSTATE.EL == EL1 then if EL2Enabled() && IsFeatureImplemented(FEAT_AA64EL2) && !ELUsingAArch32(EL2) && HSTR_EL2().T7 == '1' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA32EL2) && ELUsingAArch32(EL2) && HSTR().T7 == '1' then AArch32_TakeHypTrapException(0x03); else BPIALLIS(); end; elsif PSTATE.EL == EL2 then BPIALLIS(); elsif PSTATE.EL == EL3 then BPIALLIS(); end; ``` ---- CFPRCTX 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_AA32 is implemented and FEAT_SPECRES is implemented. Otherwise, direct accesses to CFPRCTX are UNDEFINED. Attributes CFPRCTX is a 32-bit System instruction. Field descriptions 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 RES0 | | | | GVMID | NS | EL | | VMID | | | | | | | | RES0 | | | | | | | GASID | ASID | | | | | | | Bits [31:28]: Reserved, RES0. GVMID, bit [27]: 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. NS, bit [26]: Security State. NS | Meaning 0b0 | Secure state. 0b1 | Non-secure state. If the instruction is executed in Non-secure state, this field has an Effective value of 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. VMID, bits [23:16]: Only applies when bit[27] is 0 and the target execution context is either: - EL1. - EL0 when EL2 is using AArch32 or 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, this field is treated as the current VMID if any of the following are true: - EL2 is using AArch32. - The Effective value of HCR_EL2.{E2H, TGE} is not {1, 1}. 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. Bits [15:9]: Reserved, RES0. GASID, bit [8]: 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 is treated as 0. ASID, bits [7:0]: Only applies for an EL0 target execution context and when bit[8] is 0. Otherwise, this field is RES0. When the instruction is executed at EL0, this field is treated as the current ASID. Executing CFPRCTX Accesses to this instruction use the following encodings in the System instruction encoding space: MCR{}{} , {#}, , , {, {#}} (coproc = 0b1111, opc1 = 0b000, CRn = 0b0111, CRm = 0b0011, opc2 = 0b100) ``` if !(IsFeatureImplemented(FEAT_AA32) && IsFeatureImplemented(FEAT_SPECRES)) then Undefined(); elsif PSTATE.EL == EL0 then if IsFeatureImplemented(FEAT_AA64EL1) && !ELUsingAArch32(EL1) && EffectivelyAtEL0NotInHost() && SCTLR_EL1().EnRCTX == '0' then AArch64_AArch32SystemAccessTraptoEL1orEL2(0x03); elsif IsFeatureImplemented(FEAT_AA32EL1) && ELUsingAArch32(EL1) && SCTLR().EnRCTX == '0' then if EL2Enabled() && (IsFeatureImplemented(FEAT_AA64EL2) && !ELUsingAArch32(EL2)) && HCR_EL2().TGE == '1' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif EL2Enabled() && (IsFeatureImplemented(FEAT_AA32EL2) && ELUsingAArch32(EL2)) && HCR().TGE == '1' then AArch32_TakeHypTrapException(0x00); else Undefined(); end; elsif EL2Enabled() && (IsFeatureImplemented(FEAT_AA64EL2) && !ELUsingAArch32(EL2)) && EffectivelyAtEL0NotInHost() && HSTR_EL2().T7 == '1' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif EL2Enabled() && (IsFeatureImplemented(FEAT_AA32EL2) && ELUsingAArch32(EL2)) && HSTR().T7 == '1' then AArch32_TakeHypTrapException(0x03); elsif EL2Enabled() && (IsFeatureImplemented(FEAT_AA64EL1) && !ELUsingAArch32(EL1)) && EffectivelyAtEL0NotInHost() && IsFeatureImplemented(FEAT_FGT) && (!HaveEL(EL3) || SCR_EL3().FGTEn == '1') && HFGITR_EL2().CFPRCTX == '1' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif EffectivelyAtEL0InHost() && SCTLR_EL2().EnRCTX == '0' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); else AArch32_RestrictPrediction(R(t), RestrictType_ControlFlow); end; elsif PSTATE.EL == EL1 then if EL2Enabled() && IsFeatureImplemented(FEAT_AA64EL2) && !ELUsingAArch32(EL2) && HSTR_EL2().T7 == '1' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA32EL2) && ELUsingAArch32(EL2) && HSTR().T7 == '1' then AArch32_TakeHypTrapException(0x03); else AArch32_RestrictPrediction(R(t), RestrictType_ControlFlow); end; elsif PSTATE.EL == EL2 then AArch32_RestrictPrediction(R(t), RestrictType_ControlFlow); elsif PSTATE.EL == EL3 then AArch32_RestrictPrediction(R(t), RestrictType_ControlFlow); end; ``` ---- COSPRCTX Clear Other Speculative Prediction Restriction by Context Clear Other Speculative Prediction Restriction by Context applies to 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. Configuration This instruction is present only when FEAT_AA32 is implemented and FEAT_SPECRES2 is implemented. Otherwise, direct accesses to COSPRCTX are UNDEFINED. Attributes COSPRCTX is a 32-bit System instruction. Field descriptions 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 RES0 | | | | GVMID | NS | EL | | VMID | | | | | | | | RES0 | | | | | | | GASID | ASID | | | | | | | Bits [31:28]: Reserved, RES0. GVMID, bit [27]: 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, then 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. NS, bit [26]: Security State. NS | Meaning 0b0 | Secure state. 0b1 | Non-secure state. If the instruction is executed in Non-secure state, this field is treated as 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. VMID, bits [23:16]: Only applies when bit[27] is 0 and the target execution context is either: - EL1. - EL0 when EL2 is using AArch32 or 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, this field is treated as the current VMID if any of the following are true: - EL2 is using AArch32. - The Effective value of HCR_EL2.{E2H, TGE} is not {1, 1}. 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. Bits [15:9]: Reserved, RES0. GASID, bit [8]: 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 [7:0]: Only applies to an EL0 target execution context and when bit[8] is 0. Otherwise, this field is RES0. When the instruction is executed at EL0, this field is treated as the current ASID. Executing COSPRCTX Accesses to this instruction use the following encodings in the System instruction encoding space: MCR{}{} , {#}, , , {, {#}} (coproc = 0b1111, opc1 = 0b000, CRn = 0b0111, CRm = 0b0011, opc2 = 0b110) ``` if !(IsFeatureImplemented(FEAT_AA32) && IsFeatureImplemented(FEAT_SPECRES2)) then Undefined(); elsif PSTATE.EL == EL0 then if IsFeatureImplemented(FEAT_AA64EL1) && !ELUsingAArch32(EL1) && EffectivelyAtEL0NotInHost() && SCTLR_EL1().EnRCTX == '0' then AArch64_AArch32SystemAccessTraptoEL1orEL2(0x03); elsif IsFeatureImplemented(FEAT_AA32EL1) && ELUsingAArch32(EL1) && SCTLR().EnRCTX == '0' then if EL2Enabled() && (IsFeatureImplemented(FEAT_AA64EL2) && !ELUsingAArch32(EL2)) && HCR_EL2().TGE == '1' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif EL2Enabled() && (IsFeatureImplemented(FEAT_AA32EL2) && ELUsingAArch32(EL2)) && HCR().TGE == '1' then AArch32_TakeHypTrapException(0x00); else Undefined(); end; elsif EL2Enabled() && (IsFeatureImplemented(FEAT_AA64EL2) && !ELUsingAArch32(EL2)) && EffectivelyAtEL0NotInHost() && HSTR_EL2().T7 == '1' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif EL2Enabled() && (IsFeatureImplemented(FEAT_AA32EL2) && ELUsingAArch32(EL2)) && HSTR().T7 == '1' then AArch32_TakeHypTrapException(0x03); elsif EL2Enabled() && (IsFeatureImplemented(FEAT_AA64EL1) && !ELUsingAArch32(EL1)) && EffectivelyAtEL0NotInHost() && IsFeatureImplemented(FEAT_FGT) && (!HaveEL(EL3) || SCR_EL3().FGTEn == '1') && HFGITR_EL2().COSPRCTX == '1' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif EffectivelyAtEL0InHost() && SCTLR_EL2().EnRCTX == '0' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); else AArch32_RestrictPrediction(R(t), RestrictType_Other); end; elsif PSTATE.EL == EL1 then if EL2Enabled() && IsFeatureImplemented(FEAT_AA64EL2) && !ELUsingAArch32(EL2) && HSTR_EL2().T7 == '1' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA32EL2) && ELUsingAArch32(EL2) && HSTR().T7 == '1' then AArch32_TakeHypTrapException(0x03); else AArch32_RestrictPrediction(R(t), RestrictType_Other); end; elsif PSTATE.EL == EL2 then AArch32_RestrictPrediction(R(t), RestrictType_Other); elsif PSTATE.EL == EL3 then AArch32_RestrictPrediction(R(t), RestrictType_Other); end; ``` ---- CP15DMB Data Memory Barrier System instruction Performs a Data Memory Barrier. Arm deprecates any use of this System instruction, and strongly recommends that software use the DMB instruction instead. Configuration This instruction is present only when FEAT_AA32 is implemented. Otherwise, direct accesses to CP15DMB are UNDEFINED. Attributes CP15DMB is a 32-bit System instruction. Field descriptions This instruction has no applicable fields. The value in the register specified by is ignored. Executing CP15DMB Accesses to this instruction use the following encodings in the System instruction encoding space: MCR{}{} , {#}, , , {, {#}} (coproc = 0b1111, opc1 = 0b000, CRn = 0b0111, CRm = 0b1010, opc2 = 0b101) ``` if !IsFeatureImplemented(FEAT_AA32) then Undefined(); elsif PSTATE.EL == EL0 then if IsFeatureImplemented(FEAT_AA64EL1) && !ELUsingAArch32(EL1) && EffectivelyAtEL0NotInHost() && SCTLR_EL1().CP15BEN == '0' then Undefined(); elsif EffectivelyAtEL0InHost() && SCTLR_EL2().CP15BEN == '0' then Undefined(); elsif IsFeatureImplemented(FEAT_AA32EL1) && ELUsingAArch32(EL1) && SCTLR().CP15BEN == '0' then Undefined(); elsif EL2Enabled() && (IsFeatureImplemented(FEAT_AA64EL2) && !ELUsingAArch32(EL2)) && EffectivelyAtEL0NotInHost() && HSTR_EL2().T7 == '1' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif EL2Enabled() && (IsFeatureImplemented(FEAT_AA32EL2) && ELUsingAArch32(EL2)) && HSTR().T7 == '1' then AArch32_TakeHypTrapException(0x03); else CP15DMB(); end; elsif PSTATE.EL == EL1 then if EL2Enabled() && IsFeatureImplemented(FEAT_AA64EL2) && !ELUsingAArch32(EL2) && HSTR_EL2().T7 == '1' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA32EL2) && ELUsingAArch32(EL2) && HSTR().T7 == '1' then AArch32_TakeHypTrapException(0x03); elsif SCTLR().CP15BEN == '0' then Undefined(); else CP15DMB(); end; elsif PSTATE.EL == EL2 then if HSCTLR().CP15BEN == '0' then Undefined(); else CP15DMB(); end; elsif PSTATE.EL == EL3 then if SCTLR().CP15BEN == '0' then Undefined(); else CP15DMB(); end; end; ``` ---- CP15DSB Data Synchronization Barrier System instruction Performs a Data Synchronization Barrier. Arm deprecates any use of this System instruction, and strongly recommends that software use the DSB instruction instead. Configuration This instruction is present only when FEAT_AA32 is implemented. Otherwise, direct accesses to CP15DSB are UNDEFINED. Attributes CP15DSB is a 32-bit System instruction. Field descriptions This instruction has no applicable fields. The value in the register specified by is ignored. Executing CP15DSB Accesses to this instruction use the following encodings in the System instruction encoding space: MCR{}{} , {#}, , , {, {#}} (coproc = 0b1111, opc1 = 0b000, CRn = 0b0111, CRm = 0b1010, opc2 = 0b100) ``` if !IsFeatureImplemented(FEAT_AA32) then Undefined(); elsif PSTATE.EL == EL0 then if IsFeatureImplemented(FEAT_AA64EL1) && !ELUsingAArch32(EL1) && EffectivelyAtEL0NotInHost() && SCTLR_EL1().CP15BEN == '0' then Undefined(); elsif EffectivelyAtEL0InHost() && SCTLR_EL2().CP15BEN == '0' then Undefined(); elsif IsFeatureImplemented(FEAT_AA32EL1) && ELUsingAArch32(EL1) && SCTLR().CP15BEN == '0' then Undefined(); elsif EL2Enabled() && (IsFeatureImplemented(FEAT_AA64EL2) && !ELUsingAArch32(EL2)) && EffectivelyAtEL0NotInHost() && HSTR_EL2().T7 == '1' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif EL2Enabled() && (IsFeatureImplemented(FEAT_AA32EL2) && ELUsingAArch32(EL2)) && HSTR().T7 == '1' then AArch32_TakeHypTrapException(0x03); else CP15DSB(); end; elsif PSTATE.EL == EL1 then if EL2Enabled() && IsFeatureImplemented(FEAT_AA64EL2) && !ELUsingAArch32(EL2) && HSTR_EL2().T7 == '1' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA32EL2) && ELUsingAArch32(EL2) && HSTR().T7 == '1' then AArch32_TakeHypTrapException(0x03); elsif SCTLR().CP15BEN == '0' then Undefined(); else CP15DSB(); end; elsif PSTATE.EL == EL2 then if HSCTLR().CP15BEN == '0' then Undefined(); else CP15DSB(); end; elsif PSTATE.EL == EL3 then if SCTLR().CP15BEN == '0' then Undefined(); else CP15DSB(); end; end; ``` ---- CP15ISB Instruction Synchronization Barrier System instruction Performs an Instruction Synchronization Barrier. Arm deprecates any use of this System instruction, and strongly recommends that software use the ISB instruction instead. Configuration This instruction is present only when FEAT_AA32 is implemented. Otherwise, direct accesses to CP15ISB are UNDEFINED. Attributes CP15ISB is a 32-bit System instruction. Field descriptions This instruction has no applicable fields. The value in the register specified by is ignored. Executing CP15ISB Accesses to this instruction use the following encodings in the System instruction encoding space: MCR{}{} , {#}, , , {, {#}} (coproc = 0b1111, opc1 = 0b000, CRn = 0b0111, CRm = 0b0101, opc2 = 0b100) ``` if !IsFeatureImplemented(FEAT_AA32) then Undefined(); elsif PSTATE.EL == EL0 then if IsFeatureImplemented(FEAT_AA64EL1) && !ELUsingAArch32(EL1) && EffectivelyAtEL0NotInHost() && SCTLR_EL1().CP15BEN == '0' then Undefined(); elsif EffectivelyAtEL0InHost() && SCTLR_EL2().CP15BEN == '0' then Undefined(); elsif IsFeatureImplemented(FEAT_AA32EL1) && ELUsingAArch32(EL1) && SCTLR().CP15BEN == '0' then Undefined(); elsif EL2Enabled() && (IsFeatureImplemented(FEAT_AA64EL2) && !ELUsingAArch32(EL2)) && EffectivelyAtEL0NotInHost() && HSTR_EL2().T7 == '1' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif EL2Enabled() && (IsFeatureImplemented(FEAT_AA32EL2) && ELUsingAArch32(EL2)) && HSTR().T7 == '1' then AArch32_TakeHypTrapException(0x03); else CP15ISB(); end; elsif PSTATE.EL == EL1 then if EL2Enabled() && IsFeatureImplemented(FEAT_AA64EL2) && !ELUsingAArch32(EL2) && HSTR_EL2().T7 == '1' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA32EL2) && ELUsingAArch32(EL2) && HSTR().T7 == '1' then AArch32_TakeHypTrapException(0x03); elsif SCTLR().CP15BEN == '0' then Undefined(); else CP15ISB(); end; elsif PSTATE.EL == EL2 then if HSCTLR().CP15BEN == '0' then Undefined(); else CP15ISB(); end; elsif PSTATE.EL == EL3 then if SCTLR().CP15BEN == '0' then Undefined(); else CP15ISB(); end; end; ``` ------------------------------------------------------------------------------ Page 1 of 1. End of thread.