[Writeup] AArch32 system register pages: part 4 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/59 ------------------------------------------------------------------------------ #79 admin, 2026-11-28 17:36 UTC [OP] Source: https://romdump.net/raw/79 Archived Arm source pages for the AArch32 system register pages. Part 4 of 4. This part covers TLBIIPAS2LIS through TLBIMVALIS. TLBIIPAS2LIS TLB Invalidate by Intermediate Physical Address, Stage 2, Last level, Inner Shareable If EL2 is implemented, invalidate all cached copies of translation table entries from TLBs that meet the following requirements: - The entry is a stage 2 only translation table entry, from the final level of the translation table walk. - SCR.NS is 1. - The entry would be used for the specified IPA. - The entry would be used with the current VMID. - The entry would be required for the PL1&0 translation regime. The invalidation is not required to apply to caching structures that combine stage 1 and stage 2 translation table entries. The invalidation applies to all PEs in the same Inner Shareable shareability domain as the PE that executes this System instruction. Configuration This instruction is present only when FEAT_AA32EL2 is implemented. Otherwise, direct accesses to TLBIIPAS2LIS are UNDEFINED. This System instruction is not implemented in architecture versions before Armv8. Attributes TLBIIPAS2LIS 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 | | | | IPA[39:12] | | | | | | | | | | | | | | | | | | | | | | | | | | | Bits [31:28]: Reserved, RES0. IPA[39:12], bits [27:0]: Bits[39:12] of the intermediate physical address to match. Executing TLBIIPAS2LIS If this instruction is executed in a Secure privileged mode other than Monitor mode, then the behavior is CONSTRAINED UNPREDICTABLE, and one of the following behaviors must occur: - The instruction is UNDEFINED. - The instruction is treated as a NOP. - The instruction executes as if it had been executed in Monitor mode. Accesses to this instruction use the following encodings in the System instruction encoding space: MCR{}{} , {#}, , , {, {#}} (coproc = 0b1111, opc1 = 0b100, CRn = 0b1000, CRm = 0b0000, 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().T8 == '1' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA32EL2) && ELUsingAArch32(EL2) && HSTR().T8 == '1' then AArch32_TakeHypTrapException(0x03); else Undefined(); end; elsif PSTATE.EL == EL2 then AArch32_TLBI_IPAS2(SecurityStateAtEL(EL1), Regime_EL10, VMID(), Broadcast_ISH, TLBILevel_Last, TLBI_AllAttr, R(t)); elsif PSTATE.EL == EL3 then if !HaveEL(EL2) then Undefined(); elsif SCR().NS == '0' then return; else AArch32_TLBI_IPAS2(SS_NonSecure, Regime_EL10, VMID_NONE, Broadcast_ISH, TLBILevel_Last, TLBI_AllAttr, R(t)); end; end; ``` ---- TLBIMVA TLB Invalidate by VA Invalidate all cached copies of translation table entries from TLBs that meet the following requirements: - The entry is a stage 1 translation table entry. The entry would be used to translate the specified address, and one of the following applies: - The entry is from a level of lookup above the final level and matches the specified ASID. - The entry is a global entry from the final level of lookup. - The entry is a non-global entry from the final level of lookup that matches the specified ASID. - If EL2 is implemented and enabled in the current Security state, the entry would be used with the current VMID. From the entries that match these requirements, the entries that are invalidated are required for the following translation regime: - If executed at Secure EL1 when EL3 is using AArch64, the Secure EL1&0 translation regime. - If executed in Secure state when EL3 is using AArch32, the Secure PL1&0 translation regime. - If executed in Non-secure state, the Non-secure PL1&0 translation regime. The invalidation only applies to the PE that executes this System instruction. Configuration This instruction is present only when FEAT_AA32EL1 is implemented. Otherwise, direct accesses to TLBIMVA are UNDEFINED. Attributes TLBIMVA 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 VA | | | | | | | | | | | | | | | | | | | | RES0 | | | | ASID | | | | | | | VA, bits [31:12]: Virtual address to match. Any TLB entries that match the ASID value and VA value will be affected by this System instruction. Bits [11:8]: Reserved, RES0. ASID, bits [7:0]: ASID value to match. Any TLB entries that match the ASID value and VA value will be affected by this System instruction. Global TLB entries that match the VA value will be affected by this System instruction, regardless of the value of the ASID field. Executing TLBIMVA The following pseudocode describes traps which apply to the System instruction. For information about changes to the scope of the invalidation to the instruction under different conditions, see the relevant instruction in the Pseudocode for AArch32 operation. Accesses to this instruction use the following encodings in the System instruction encoding space: MCR{}{} , {#}, , , {, {#}} (coproc = 0b1111, opc1 = 0b000, CRn = 0b1000, CRm = 0b0111, 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().T8 == '1' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA32EL2) && ELUsingAArch32(EL2) && HSTR().T8 == '1' then AArch32_TakeHypTrapException(0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA64EL2) && !ELUsingAArch32(EL2) && HCR_EL2().TTLB == '1' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA32EL2) && ELUsingAArch32(EL2) && HCR().TTLB == '1' then AArch32_TakeHypTrapException(0x03); else AArch32_TLBI_VA(SecurityStateAtEL(EL1), Regime_EL10, VMID(), Broadcast_NSH, TLBILevel_Any, TLBI_AllAttr, R(t)); end; elsif PSTATE.EL == EL2 then AArch32_TLBI_VA(SecurityStateAtEL(EL1), Regime_EL10, VMID(), Broadcast_NSH, TLBILevel_Any, TLBI_AllAttr, R(t)); elsif PSTATE.EL == EL3 then AArch32_TLBI_VA(SecurityStateAtEL(EL3), Regime_EL30, VMID_NONE, Broadcast_NSH, TLBILevel_Any, TLBI_AllAttr, R(t)); end; ``` ---- TLBIMVAA TLB Invalidate by VA, All ASID Invalidate all cached copies of translation table entries from TLBs that meet the following requirements: - The entry is a stage 1 translation table entry, from any level of the translation table walk. - The entry would be used to translate the specified address. - If EL2 is implemented and enabled in the current Security state, the entry would be used with the current VMID. From the entries that match these requirements, the entries that are invalidated are required for the following translation regime: - If executed at Secure EL1 when EL3 is using AArch64, the Secure EL1&0 translation regime. - If executed in Secure state when EL3 is using AArch32, the Secure PL1&0 translation regime. - If executed in Non-secure state, the Non-secure PL1&0 translation regime. The invalidation only applies to the PE that executes this System instruction. Configuration This instruction is present only when FEAT_AA32EL1 is implemented. Otherwise, direct accesses to TLBIMVAA are UNDEFINED. Attributes TLBIMVAA 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 VA | | | | | | | | | | | | | | | | | | | | RES0 | | | | | | | | | | | VA, bits [31:12]: Virtual address to match. Any unlocked TLB entries that match the VA will be affected by this System instruction, regardless of the ASID. Bits [11:0]: Reserved, RES0. Executing TLBIMVAA The following pseudocode describes traps which apply to the System instruction. For information about changes to the scope of the invalidation to the instruction under different conditions, see the relevant instruction in the Pseudocode for AArch32 operation. Accesses to this instruction use the following encodings in the System instruction encoding space: MCR{}{} , {#}, , , {, {#}} (coproc = 0b1111, opc1 = 0b000, CRn = 0b1000, CRm = 0b0111, 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().T8 == '1' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA32EL2) && ELUsingAArch32(EL2) && HSTR().T8 == '1' then AArch32_TakeHypTrapException(0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA64EL2) && !ELUsingAArch32(EL2) && HCR_EL2().TTLB == '1' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA32EL2) && ELUsingAArch32(EL2) && HCR().TTLB == '1' then AArch32_TakeHypTrapException(0x03); else AArch32_TLBI_VAA(SecurityStateAtEL(EL1), Regime_EL10, VMID(), Broadcast_NSH, TLBILevel_Any, TLBI_AllAttr, R(t)); end; elsif PSTATE.EL == EL2 then AArch32_TLBI_VAA(SecurityStateAtEL(EL1), Regime_EL10, VMID(), Broadcast_NSH, TLBILevel_Any, TLBI_AllAttr, R(t)); elsif PSTATE.EL == EL3 then AArch32_TLBI_VAA(SecurityStateAtEL(EL3), Regime_EL30, VMID_NONE, Broadcast_NSH, TLBILevel_Any, TLBI_AllAttr, R(t)); end; ``` ---- TLBIMVAAIS TLB Invalidate by VA, All ASID, Inner Shareable Invalidate all cached copies of translation table entries from TLBs that meet the following requirements: - The entry is a stage 1 translation table entry, from any level of the translation table walk. - The entry would be used to translate the specified address. - If EL2 is implemented and enabled in the current Security state, the entry would be used with the current VMID. From the entries that match these requirements, the entries that are invalidated are required for the following translation regime: - If executed at Secure EL1 when EL3 is using AArch64, the Secure EL1&0 translation regime. - If executed in Secure state when EL3 is using AArch32, the Secure PL1&0 translation regime. - If executed in Non-secure state, the Non-secure PL1&0 translation regime. The invalidation applies to all PEs in the same Inner Shareable shareability domain as the PE that executes this System instruction. Configuration This instruction is present only when FEAT_AA32EL1 is implemented. Otherwise, direct accesses to TLBIMVAAIS are UNDEFINED. Attributes TLBIMVAAIS 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 VA | | | | | | | | | | | | | | | | | | | | RES0 | | | | | | | | | | | VA, bits [31:12]: Virtual address to match. Any unlocked TLB entries that match the VA will be affected by this System instruction, regardless of the ASID. Bits [11:0]: Reserved, RES0. Executing TLBIMVAAIS The following pseudocode describes traps which apply to the System instruction. For information about changes to the scope of the invalidation to the instruction under different conditions, see the relevant instruction in the Pseudocode for AArch32 operation. Accesses to this instruction use the following encodings in the System instruction encoding space: MCR{}{} , {#}, , , {, {#}} (coproc = 0b1111, opc1 = 0b000, CRn = 0b1000, CRm = 0b0011, 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().T8 == '1' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA32EL2) && ELUsingAArch32(EL2) && HSTR().T8 == '1' then AArch32_TakeHypTrapException(0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA64EL2) && !ELUsingAArch32(EL2) && HCR_EL2().TTLB == '1' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA64EL2) && !ELUsingAArch32(EL2) && HCR_EL2().TTLBIS == '1' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA32EL2) && ELUsingAArch32(EL2) && HCR().TTLB == '1' then AArch32_TakeHypTrapException(0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA32EL2) && ELUsingAArch32(EL2) && HCR2().TTLBIS == '1' then AArch32_TakeHypTrapException(0x03); else AArch32_TLBI_VAA(SecurityStateAtEL(EL1), Regime_EL10, VMID(), Broadcast_ISH, TLBILevel_Any, TLBI_AllAttr, R(t)); end; elsif PSTATE.EL == EL2 then AArch32_TLBI_VAA(SecurityStateAtEL(EL1), Regime_EL10, VMID(), Broadcast_ISH, TLBILevel_Any, TLBI_AllAttr, R(t)); elsif PSTATE.EL == EL3 then AArch32_TLBI_VAA(SecurityStateAtEL(EL3), Regime_EL30, VMID_NONE, Broadcast_ISH, TLBILevel_Any, TLBI_AllAttr, R(t)); end; ``` ---- TLBIMVAAL TLB Invalidate by VA, All ASID, Last level Invalidate all cached copies of translation table entries from TLBs that meet the following requirements: - The entry is a stage 1 translation table entry, from the final level of the translation table walk. - The entry would be used to translate the specified address. - If EL2 is implemented and enabled in the current Security state, the entry would be used with the current VMID. From the entries that match these requirements, the entries that are invalidated are required for the following translation regime: - If executed at Secure EL1 when EL3 is using AArch64, the Secure EL1&0 translation regime. - If executed in Secure state when EL3 is using AArch32, the Secure PL1&0 translation regime. - If executed in Non-secure state, the Non-secure PL1&0 translation regime. The invalidation only applies to the PE that executes this System instruction. Configuration This instruction is present only when FEAT_AA32EL1 is implemented. Otherwise, direct accesses to TLBIMVAAL are UNDEFINED. This System instruction is not implemented in architecture versions before Armv8. Attributes TLBIMVAAL 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 VA | | | | | | | | | | | | | | | | | | | | RES0 | | | | | | | | | | | VA, bits [31:12]: Virtual address to match. Any unlocked TLB entries that match the VA will be affected by this System instruction, regardless of the ASID. Bits [11:0]: Reserved, RES0. Executing TLBIMVAAL The following pseudocode describes traps which apply to the System instruction. For information about changes to the scope of the invalidation to the instruction under different conditions, see the relevant instruction in the Pseudocode for AArch32 operation. Accesses to this instruction use the following encodings in the System instruction encoding space: MCR{}{} , {#}, , , {, {#}} (coproc = 0b1111, opc1 = 0b000, CRn = 0b1000, CRm = 0b0111, opc2 = 0b111) ``` 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().T8 == '1' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA32EL2) && ELUsingAArch32(EL2) && HSTR().T8 == '1' then AArch32_TakeHypTrapException(0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA64EL2) && !ELUsingAArch32(EL2) && HCR_EL2().TTLB == '1' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA32EL2) && ELUsingAArch32(EL2) && HCR().TTLB == '1' then AArch32_TakeHypTrapException(0x03); else AArch32_TLBI_VAA(SecurityStateAtEL(EL1), Regime_EL10, VMID(), Broadcast_NSH, TLBILevel_Last, TLBI_AllAttr, R(t)); end; elsif PSTATE.EL == EL2 then AArch32_TLBI_VAA(SecurityStateAtEL(EL1), Regime_EL10, VMID(), Broadcast_NSH, TLBILevel_Last, TLBI_AllAttr, R(t)); elsif PSTATE.EL == EL3 then AArch32_TLBI_VAA(SecurityStateAtEL(EL3), Regime_EL30, VMID_NONE, Broadcast_NSH, TLBILevel_Last, TLBI_AllAttr, R(t)); end; ``` ---- TLBIMVAALIS TLB Invalidate by VA, All ASID, Last level, Inner Shareable Invalidate all cached copies of translation table entries from TLBs that meet the following requirements: - The entry is a stage 1 translation table entry, from the final level of the translation table walk. - The entry would be used to translate the specified address. - If EL2 is implemented and enabled in the current Security state, the entry would be used with the current VMID. From the entries that match these requirements, the entries that are invalidated are required for the following translation regime: - If executed at Secure EL1 when EL3 is using AArch64, the Secure EL1&0 translation regime. - If executed in Secure state when EL3 is using AArch32, the Secure PL1&0 translation regime. - If executed in Non-secure state, the Non-secure PL1&0 translation regime. The invalidation applies to all PEs in the same Inner Shareable shareability domain as the PE that executes this System instruction. Configuration This instruction is present only when FEAT_AA32EL1 is implemented. Otherwise, direct accesses to TLBIMVAALIS are UNDEFINED. This System instruction is not implemented in architecture versions before Armv8. Attributes TLBIMVAALIS 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 VA | | | | | | | | | | | | | | | | | | | | RES0 | | | | | | | | | | | VA, bits [31:12]: Virtual address to match. Any unlocked TLB entries that match the VA will be affected by this System instruction, regardless of the ASID. Bits [11:0]: Reserved, RES0. Executing TLBIMVAALIS The following pseudocode describes traps which apply to the System instruction. For information about changes to the scope of the invalidation to the instruction under different conditions, see the relevant instruction in the Pseudocode for AArch32 operation. Accesses to this instruction use the following encodings in the System instruction encoding space: MCR{}{} , {#}, , , {, {#}} (coproc = 0b1111, opc1 = 0b000, CRn = 0b1000, CRm = 0b0011, opc2 = 0b111) ``` 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().T8 == '1' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA32EL2) && ELUsingAArch32(EL2) && HSTR().T8 == '1' then AArch32_TakeHypTrapException(0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA64EL2) && !ELUsingAArch32(EL2) && HCR_EL2().TTLB == '1' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA64EL2) && !ELUsingAArch32(EL2) && HCR_EL2().TTLBIS == '1' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA32EL2) && ELUsingAArch32(EL2) && HCR().TTLB == '1' then AArch32_TakeHypTrapException(0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA32EL2) && ELUsingAArch32(EL2) && HCR2().TTLBIS == '1' then AArch32_TakeHypTrapException(0x03); else AArch32_TLBI_VAA(SecurityStateAtEL(EL1), Regime_EL10, VMID(), Broadcast_ISH, TLBILevel_Last, TLBI_AllAttr, R(t)); end; elsif PSTATE.EL == EL2 then AArch32_TLBI_VAA(SecurityStateAtEL(EL1), Regime_EL10, VMID(), Broadcast_ISH, TLBILevel_Last, TLBI_AllAttr, R(t)); elsif PSTATE.EL == EL3 then AArch32_TLBI_VAA(SecurityStateAtEL(EL3), Regime_EL30, VMID_NONE, Broadcast_ISH, TLBILevel_Last, TLBI_AllAttr, R(t)); end; ``` ---- TLBIMVAIS TLB Invalidate by VA, Inner Shareable Invalidate all cached copies of translation table entries from TLBs that meet the following requirements: - The entry is a stage 1 translation table entry. The entry would be used to translate the specified address, and one of the following applies: - The entry is from a level of lookup above the final level and matches the specified ASID. - The entry is a global entry from the final level of lookup. - The entry is a non-global entry from the final level of lookup that matches the specified ASID. - If EL2 is implemented and enabled in the current Security state, the entry would be used with the current VMID. From the entries that match these requirements, the entries that are invalidated are required for the following translation regime: - If executed at Secure EL1 when EL3 is using AArch64, the Secure EL1&0 translation regime. - If executed in Secure state when EL3 is using AArch32, the Secure PL1&0 translation regime. - If executed in Non-secure state, the Non-secure PL1&0 translation regime. The invalidation applies to all PEs in the same Inner Shareable shareability domain as the PE that executes this System instruction. Configuration This instruction is present only when FEAT_AA32EL1 is implemented. Otherwise, direct accesses to TLBIMVAIS are UNDEFINED. Attributes TLBIMVAIS 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 VA | | | | | | | | | | | | | | | | | | | | RES0 | | | | ASID | | | | | | | VA, bits [31:12]: Virtual address to match. Any TLB entries that match the ASID value and VA value will be affected by this System instruction. Bits [11:8]: Reserved, RES0. ASID, bits [7:0]: ASID value to match. Any TLB entries that match the ASID value and VA value will be affected by this System instruction. Global TLB entries that match the VA value will be affected by this System instruction, regardless of the value of the ASID field. Executing TLBIMVAIS The following pseudocode describes traps which apply to the System instruction. For information about changes to the scope of the invalidation to the instruction under different conditions, see the relevant instruction in the Pseudocode for AArch32 operation. Accesses to this instruction use the following encodings in the System instruction encoding space: MCR{}{} , {#}, , , {, {#}} (coproc = 0b1111, opc1 = 0b000, CRn = 0b1000, CRm = 0b0011, 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().T8 == '1' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA32EL2) && ELUsingAArch32(EL2) && HSTR().T8 == '1' then AArch32_TakeHypTrapException(0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA64EL2) && !ELUsingAArch32(EL2) && HCR_EL2().TTLB == '1' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA64EL2) && !ELUsingAArch32(EL2) && HCR_EL2().TTLBIS == '1' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA32EL2) && ELUsingAArch32(EL2) && HCR().TTLB == '1' then AArch32_TakeHypTrapException(0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA32EL2) && ELUsingAArch32(EL2) && HCR2().TTLBIS == '1' then AArch32_TakeHypTrapException(0x03); else AArch32_TLBI_VA(SecurityStateAtEL(EL1), Regime_EL10, VMID(), Broadcast_ISH, TLBILevel_Any, TLBI_AllAttr, R(t)); end; elsif PSTATE.EL == EL2 then AArch32_TLBI_VA(SecurityStateAtEL(EL1), Regime_EL10, VMID(), Broadcast_ISH, TLBILevel_Any, TLBI_AllAttr, R(t)); elsif PSTATE.EL == EL3 then AArch32_TLBI_VA(SecurityStateAtEL(EL3), Regime_EL30, VMID_NONE, Broadcast_ISH, TLBILevel_Any, TLBI_AllAttr, R(t)); end; ``` ---- TLBIMVAL TLB Invalidate by VA, Last level Invalidate all cached copies of translation table entries from TLBs that meet the following requirements: - The entry is a stage 1 translation table entry. The entry would be used to translate the specified address, and one of the following applies: - The entry is a global entry from the final level of lookup. - The entry is a non-global entry from the final level of lookup that matches the specified ASID. - If EL2 is implemented and enabled in the current Security state, the entry would be used with the current VMID. From the entries that match these requirements, the entries that are invalidated are required for the following translation regime: - If executed at Secure EL1 when EL3 is using AArch64, the Secure EL1&0 translation regime. - If executed in Secure state when EL3 is using AArch32, the Secure PL1&0 translation regime. - If executed in Non-secure state, the Non-secure PL1&0 translation regime. The invalidation only applies to the PE that executes this System instruction. Configuration This instruction is present only when FEAT_AA32EL1 is implemented. Otherwise, direct accesses to TLBIMVAL are UNDEFINED. This System instruction is not implemented in architecture versions before Armv8. Attributes TLBIMVAL 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 VA | | | | | | | | | | | | | | | | | | | | RES0 | | | | ASID | | | | | | | VA, bits [31:12]: Virtual address to match. Any TLB entries that match the ASID value and VA value will be affected by this System instruction. Bits [11:8]: Reserved, RES0. ASID, bits [7:0]: ASID value to match. Any TLB entries that match the ASID value and VA value will be affected by this System instruction. Global TLB entries that match the VA value will be affected by this System instruction, regardless of the value of the ASID field. Executing TLBIMVAL The following pseudocode describes traps which apply to the System instruction. For information about changes to the scope of the invalidation to the instruction under different conditions, see the relevant instruction in the Pseudocode for AArch32 operation. Accesses to this instruction use the following encodings in the System instruction encoding space: MCR{}{} , {#}, , , {, {#}} (coproc = 0b1111, opc1 = 0b000, CRn = 0b1000, CRm = 0b0111, opc2 = 0b101) ``` 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().T8 == '1' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA32EL2) && ELUsingAArch32(EL2) && HSTR().T8 == '1' then AArch32_TakeHypTrapException(0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA64EL2) && !ELUsingAArch32(EL2) && HCR_EL2().TTLB == '1' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA32EL2) && ELUsingAArch32(EL2) && HCR().TTLB == '1' then AArch32_TakeHypTrapException(0x03); else AArch32_TLBI_VA(SecurityStateAtEL(EL1), Regime_EL10, VMID(), Broadcast_NSH, TLBILevel_Last, TLBI_AllAttr, R(t)); end; elsif PSTATE.EL == EL2 then AArch32_TLBI_VA(SecurityStateAtEL(EL1), Regime_EL10, VMID(), Broadcast_NSH, TLBILevel_Last, TLBI_AllAttr, R(t)); elsif PSTATE.EL == EL3 then AArch32_TLBI_VA(SecurityStateAtEL(EL3), Regime_EL30, VMID_NONE, Broadcast_NSH, TLBILevel_Last, TLBI_AllAttr, R(t)); end; ``` ---- TLBIMVALH TLB Invalidate by VA, Last level, Hyp mode If EL2 is implemented, invalidate all cached copies of translation table entries from TLBs that are from the final level of the translation table walk that would be required for the Non-secure EL2 translation regime and used to translate the specified address. The invalidation only applies to the PE that executes this System instruction. Configuration This instruction is present only when FEAT_AA32EL2 is implemented. Otherwise, direct accesses to TLBIMVALH are UNDEFINED. This System instruction is not implemented in architecture versions before Armv8. Attributes TLBIMVALH 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 VA | | | | | | | | | | | | | | | | | | | | RES0 | | | | | | | | | | | VA, bits [31:12]: Virtual address to match. Any TLB entries that match the ASID value and VA value will be affected by this System instruction. Bits [11:0]: Reserved, RES0. Executing TLBIMVALH If this instruction is executed in a Secure privileged mode other than Monitor mode, then the behavior is CONSTRAINED UNPREDICTABLE, and one of the following behaviors must occur: - The instruction is UNDEFINED. - The instruction is treated as a NOP. - The instruction executes as if it had been executed in Monitor mode. Accesses to this instruction use the following encodings in the System instruction encoding space: MCR{}{} , {#}, , , {, {#}} (coproc = 0b1111, opc1 = 0b100, CRn = 0b1000, CRm = 0b0111, 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().T8 == '1' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA32EL2) && ELUsingAArch32(EL2) && HSTR().T8 == '1' then AArch32_TakeHypTrapException(0x03); else Undefined(); end; elsif PSTATE.EL == EL2 then AArch32_TLBI_VA(SecurityStateAtEL(EL2), Regime_EL2, VMID_NONE, Broadcast_NSH, TLBILevel_Last, TLBI_AllAttr, R(t)); elsif PSTATE.EL == EL3 then if !HaveEL(EL2) then Undefined(); else AArch32_TLBI_VA(SS_NonSecure, Regime_EL2, VMID(), Broadcast_NSH, TLBILevel_Last, TLBI_AllAttr, R(t)); end; end; ``` ---- TLBIMVALHIS TLB Invalidate by VA, Last level, Hyp mode, Inner Shareable If EL2 is implemented, invalidate all cached copies of translation table entries from TLBs that are from the final level of the translation table walk that would be required for the Non-secure EL2 translation regime and used to translate the specified address. The invalidation applies to all PEs in the same Inner Shareable shareability domain as the PE that executes this System instruction. Configuration This instruction is present only when FEAT_AA32EL2 is implemented. Otherwise, direct accesses to TLBIMVALHIS are UNDEFINED. This System instruction is not implemented in architecture versions before Armv8. Attributes TLBIMVALHIS 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 VA | | | | | | | | | | | | | | | | | | | | RES0 | | | | | | | | | | | VA, bits [31:12]: Virtual address to match. Any TLB entries that match the ASID value and VA value will be affected by this System instruction. Bits [11:0]: Reserved, RES0. Executing TLBIMVALHIS If this instruction is executed in a Secure privileged mode other than Monitor mode, then the behavior is CONSTRAINED UNPREDICTABLE, and one of the following behaviors must occur: - The instruction is UNDEFINED. - The instruction is treated as a NOP. - The instruction executes as if it had been executed in Monitor mode. Accesses to this instruction use the following encodings in the System instruction encoding space: MCR{}{} , {#}, , , {, {#}} (coproc = 0b1111, opc1 = 0b100, CRn = 0b1000, CRm = 0b0011, 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().T8 == '1' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA32EL2) && ELUsingAArch32(EL2) && HSTR().T8 == '1' then AArch32_TakeHypTrapException(0x03); else Undefined(); end; elsif PSTATE.EL == EL2 then AArch32_TLBI_VA(SecurityStateAtEL(EL2), Regime_EL2, VMID_NONE, Broadcast_ISH, TLBILevel_Last, TLBI_AllAttr, R(t)); elsif PSTATE.EL == EL3 then if !HaveEL(EL2) then Undefined(); else AArch32_TLBI_VA(SS_NonSecure, Regime_EL2, VMID(), Broadcast_ISH, TLBILevel_Last, TLBI_AllAttr, R(t)); end; end; ``` ---- TLBIMVALIS TLB Invalidate by VA, Last level, Inner Shareable Invalidate all cached copies of translation table entries from TLBs that meet the following requirements: - The entry is a stage 1 translation table entry. The entry would be used to translate the specified address, and one of the following applies: - The entry is a global entry from the final level of lookup. - The entry is a non-global entry from the final level of lookup that matches the specified ASID. - If EL2 is implemented and enabled in the current Security state, the entry would be used with the current VMID. From the entries that match these requirements, the entries that are invalidated are required for the following translation regime: - If executed at Secure EL1 when EL3 is using AArch64, the Secure EL1&0 translation regime. - If executed in Secure state when EL3 is using AArch32, the Secure PL1&0 translation regime. - If executed in Non-secure state, the Non-secure PL1&0 translation regime. The invalidation applies to all PEs in the same Inner Shareable shareability domain as the PE that executes this System instruction. Configuration This instruction is present only when FEAT_AA32EL1 is implemented. Otherwise, direct accesses to TLBIMVALIS are UNDEFINED. This System instruction is not implemented in architecture versions before Armv8. Attributes TLBIMVALIS 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 VA | | | | | | | | | | | | | | | | | | | | RES0 | | | | ASID | | | | | | | VA, bits [31:12]: Virtual address to match. Any TLB entries that match the ASID value and VA value will be affected by this System instruction. Bits [11:8]: Reserved, RES0. ASID, bits [7:0]: ASID value to match. Any TLB entries that match the ASID value and VA value will be affected by this System instruction. Global TLB entries that match the VA value will be affected by this System instruction, regardless of the value of the ASID field. Executing TLBIMVALIS The following pseudocode describes traps which apply to the System instruction. For information about changes to the scope of the invalidation to the instruction under different conditions, see the relevant instruction in the Pseudocode for AArch32 operation. Accesses to this instruction use the following encodings in the System instruction encoding space: MCR{}{} , {#}, , , {, {#}} (coproc = 0b1111, opc1 = 0b000, CRn = 0b1000, CRm = 0b0011, opc2 = 0b101) ``` 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().T8 == '1' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA32EL2) && ELUsingAArch32(EL2) && HSTR().T8 == '1' then AArch32_TakeHypTrapException(0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA64EL2) && !ELUsingAArch32(EL2) && HCR_EL2().TTLB == '1' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA64EL2) && !ELUsingAArch32(EL2) && HCR_EL2().TTLBIS == '1' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA32EL2) && ELUsingAArch32(EL2) && HCR().TTLB == '1' then AArch32_TakeHypTrapException(0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA32EL2) && ELUsingAArch32(EL2) && HCR2().TTLBIS == '1' then AArch32_TakeHypTrapException(0x03); else AArch32_TLBI_VA(SecurityStateAtEL(EL1), Regime_EL10, VMID(), Broadcast_ISH, TLBILevel_Last, TLBI_AllAttr, R(t)); end; elsif PSTATE.EL == EL2 then AArch32_TLBI_VA(SecurityStateAtEL(EL1), Regime_EL10, VMID(), Broadcast_ISH, TLBILevel_Last, TLBI_AllAttr, R(t)); elsif PSTATE.EL == EL3 then AArch32_TLBI_VA(SecurityStateAtEL(EL3), Regime_EL30, VMID_NONE, Broadcast_ISH, TLBILevel_Last, TLBI_AllAttr, R(t)); end; ``` ------------------------------------------------------------------------------ Page 1 of 1. End of thread.