[Writeup] AArch32 system register pages: part 2 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/57 ------------------------------------------------------------------------------ #77 admin, 2026-11-28 17:36 UTC [OP] Source: https://romdump.net/raw/77 Archived Arm source pages for the AArch32 system register pages. Part 2 of 4. This part covers CPPRCTX through ICIALLUIS. CPPRCTX 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_AA32 is implemented and FEAT_SPECRES is implemented. Otherwise, direct accesses to CPPRCTX are UNDEFINED. Attributes CPPRCTX 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 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 CPPRCTX Accesses to this instruction use the following encodings in the System instruction encoding space: MCR{}{} , {#}, , , {, {#}} (coproc = 0b1111, opc1 = 0b000, CRn = 0b0111, CRm = 0b0011, opc2 = 0b111) ``` 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().CPPRCTX == '1' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif EffectivelyAtEL0InHost() && SCTLR_EL2().EnRCTX == '0' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); else AArch32_RestrictPrediction(R(t), RestrictType_CachePrefetch); 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_CachePrefetch); end; elsif PSTATE.EL == EL2 then AArch32_RestrictPrediction(R(t), RestrictType_CachePrefetch); elsif PSTATE.EL == EL3 then AArch32_RestrictPrediction(R(t), RestrictType_CachePrefetch); end; ``` ---- DCCIMVAC Data Cache line Clean and Invalidate by VA to PoC Clean and Invalidate data or unified cache line by virtual address to PoC. Configuration AArch32 System instruction DCCIMVAC performs the same function as AArch64 System instruction DC CIVAC. This instruction is present only when FEAT_AA32EL1 is implemented. Otherwise, direct accesses to DCCIMVAC are UNDEFINED. Attributes DCCIMVAC 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 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | VA, bits [31:0]: Virtual address to use. No alignment restrictions apply to this VA. Executing DCCIMVAC Execution of this instruction might require an address translation from VA to PA, and that translation might fault. For more information about faults, see 'Permission fault'. For more information about data cache maintenance instructions, see 'AArch32 data cache maintenance instructions (DC*)'. Accesses to this instruction use the following encodings in the System instruction encoding space: MCR{}{} , {#}, , , {, {#}} (coproc = 0b1111, opc1 = 0b000, CRn = 0b0111, CRm = 0b1110, opc2 = 0b001) ``` if !IsFeatureImplemented(FEAT_AA32EL1) then Undefined(); elsif PSTATE.EL == EL0 then Undefined(); elsif PSTATE.EL == EL1 then if !AArch32_CanTrapDC(CacheOp_CleanInvalidate, CacheOpScope_PoC) then ExecuteAsNOP(); elsif 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) && HCR_EL2().TPCP == '1' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA32EL2) && ELUsingAArch32(EL2) && HCR().TPC == '1' then AArch32_TakeHypTrapException(0x03); else if AArch32_TreatDCAsNOP(CacheOp_CleanInvalidate, CacheOpScope_PoC) then ExecuteAsNOP(); else AArch32_DC(R(t), CacheOp_CleanInvalidate, CacheOpScope_PoC); end; end; elsif PSTATE.EL == EL2 then if !AArch32_CanTrapDC(CacheOp_CleanInvalidate, CacheOpScope_PoC) then ExecuteAsNOP(); else if AArch32_TreatDCAsNOP(CacheOp_CleanInvalidate, CacheOpScope_PoC) then ExecuteAsNOP(); else AArch32_DC(R(t), CacheOp_CleanInvalidate, CacheOpScope_PoC); end; end; elsif PSTATE.EL == EL3 then if AArch32_TreatDCAsNOP(CacheOp_CleanInvalidate, CacheOpScope_PoC) then ExecuteAsNOP(); else AArch32_DC(R(t), CacheOp_CleanInvalidate, CacheOpScope_PoC); end; end; ``` ---- DCCISW Data Cache line Clean and Invalidate by Set/Way Clean and Invalidate data or unified cache line by set/way. Configuration AArch32 System instruction DCCISW performs the same function as AArch64 System instruction DC CISW. This instruction is present only when FEAT_AA32EL1 is implemented. Otherwise, direct accesses to DCCISW are UNDEFINED. Attributes DCCISW 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 SetWay | | | | | | | | | | | | | | | | | | | | | | | | | | | | Level | | | 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 DCCISW 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. Accesses to this instruction use the following encodings in the System instruction encoding space: MCR{}{} , {#}, , , {, {#}} (coproc = 0b1111, opc1 = 0b000, CRn = 0b0111, CRm = 0b1110, 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); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA64EL2) && !ELUsingAArch32(EL2) && HCR_EL2().TSW == '1' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA32EL2) && ELUsingAArch32(EL2) && HCR().TSW == '1' then AArch32_TakeHypTrapException(0x03); else AArch32_DC(R(t), CacheOp_CleanInvalidate, CacheOpScope_SetWay); end; elsif PSTATE.EL == EL2 then AArch32_DC(R(t), CacheOp_CleanInvalidate, CacheOpScope_SetWay); elsif PSTATE.EL == EL3 then AArch32_DC(R(t), CacheOp_CleanInvalidate, CacheOpScope_SetWay); end; ``` ---- DCCMVAC Data Cache line Clean by VA to PoC Clean data or unified cache line by virtual address to PoC. Configuration AArch32 System instruction DCCMVAC performs the same function as AArch64 System instruction DC CVAC. This instruction is present only when FEAT_AA32EL1 is implemented. Otherwise, direct accesses to DCCMVAC are UNDEFINED. Attributes DCCMVAC 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 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | VA, bits [31:0]: Virtual address to use. No alignment restrictions apply to this VA. Executing DCCMVAC Execution of this instruction might require an address translation from VA to PA, and that translation might fault. For more information, see 'AArch32 data cache maintenance instructions (DC*)'. Accesses to this instruction use the following encodings in the System instruction encoding space: MCR{}{} , {#}, , , {, {#}} (coproc = 0b1111, opc1 = 0b000, CRn = 0b0111, CRm = 0b1010, opc2 = 0b001) ``` if !IsFeatureImplemented(FEAT_AA32EL1) then Undefined(); elsif PSTATE.EL == EL0 then Undefined(); elsif PSTATE.EL == EL1 then if !AArch32_CanTrapDC(CacheOp_Clean, CacheOpScope_PoC) then ExecuteAsNOP(); elsif 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) && HCR_EL2().TPCP == '1' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA32EL2) && ELUsingAArch32(EL2) && HCR().TPC == '1' then AArch32_TakeHypTrapException(0x03); else if AArch32_TreatDCAsNOP(CacheOp_Clean, CacheOpScope_PoC) then ExecuteAsNOP(); else AArch32_DC(R(t), CacheOp_Clean, CacheOpScope_PoC); end; end; elsif PSTATE.EL == EL2 then if !AArch32_CanTrapDC(CacheOp_Clean, CacheOpScope_PoC) then ExecuteAsNOP(); else if AArch32_TreatDCAsNOP(CacheOp_Clean, CacheOpScope_PoC) then ExecuteAsNOP(); else AArch32_DC(R(t), CacheOp_Clean, CacheOpScope_PoC); end; end; elsif PSTATE.EL == EL3 then if AArch32_TreatDCAsNOP(CacheOp_Clean, CacheOpScope_PoC) then ExecuteAsNOP(); else AArch32_DC(R(t), CacheOp_Clean, CacheOpScope_PoC); end; end; ``` ---- DCCMVAU Data Cache line Clean by VA to PoU Clean data or unified cache line by virtual address to PoU. Configuration AArch32 System instruction DCCMVAU performs the same function as AArch64 System instruction DC CVAU. This instruction is present only when FEAT_AA32EL1 is implemented. Otherwise, direct accesses to DCCMVAU are UNDEFINED. Attributes DCCMVAU 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 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | VA, bits [31:0]: Virtual address to use. No alignment restrictions apply to this VA. Executing DCCMVAU Execution of this instruction might require an address translation from VA to PA, and that translation might fault. For more information, see 'AArch32 data cache maintenance instructions (DC*)'. Accesses to this instruction use the following encodings in the System instruction encoding space: MCR{}{} , {#}, , , {, {#}} (coproc = 0b1111, opc1 = 0b000, CRn = 0b0111, CRm = 0b1011, 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); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA64EL2) && !ELUsingAArch32(EL2) && HCR_EL2().TPU == '1' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA64EL2) && !ELUsingAArch32(EL2) && HCR_EL2().TOCU == '1' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA32EL2) && ELUsingAArch32(EL2) && HCR().TPU == '1' then AArch32_TakeHypTrapException(0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA32EL2) && ELUsingAArch32(EL2) && HCR2().TOCU == '1' then AArch32_TakeHypTrapException(0x03); else AArch32_DC(R(t), CacheOp_Clean, CacheOpScope_PoU); end; elsif PSTATE.EL == EL2 then AArch32_DC(R(t), CacheOp_Clean, CacheOpScope_PoU); elsif PSTATE.EL == EL3 then AArch32_DC(R(t), CacheOp_Clean, CacheOpScope_PoU); end; ``` ---- DCCSW Data Cache line Clean by Set/Way Clean data or unified cache line by set/way. Configuration AArch32 System instruction DCCSW performs the same function as AArch64 System instruction DC CSW. This instruction is present only when FEAT_AA32EL1 is implemented. Otherwise, direct accesses to DCCSW are UNDEFINED. Attributes DCCSW 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 SetWay | | | | | | | | | | | | | | | | | | | | | | | | | | | | Level | | | 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 DCCSW 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. Accesses to this instruction use the following encodings in the System instruction encoding space: MCR{}{} , {#}, , , {, {#}} (coproc = 0b1111, opc1 = 0b000, CRn = 0b0111, CRm = 0b1010, 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); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA64EL2) && !ELUsingAArch32(EL2) && HCR_EL2().TSW == '1' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA32EL2) && ELUsingAArch32(EL2) && HCR().TSW == '1' then AArch32_TakeHypTrapException(0x03); else AArch32_DC(R(t), CacheOp_Clean, CacheOpScope_SetWay); end; elsif PSTATE.EL == EL2 then AArch32_DC(R(t), CacheOp_Clean, CacheOpScope_SetWay); elsif PSTATE.EL == EL3 then AArch32_DC(R(t), CacheOp_Clean, CacheOpScope_SetWay); end; ``` ---- DCIMVAC Data Cache line Invalidate by VA to PoC Invalidate data or unified cache line by virtual address to PoC. Configuration AArch32 System instruction DCIMVAC performs the same function as AArch64 System instruction DC IVAC. This instruction is present only when FEAT_AA32EL1 is implemented. Otherwise, direct accesses to DCIMVAC are UNDEFINED. Attributes DCIMVAC 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 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | VA, bits [31:0]: Virtual address to use. No alignment restrictions apply to this VA. Executing DCIMVAC It is IMPLEMENTATION DEFINED whether, when this instruction is executed, it can generate a watchpoint. If this instruction can generate a watchpoint this is prioritized in the same way as other watchpoints. Execution of this instruction might require an address translation from VA to PA, and that translation might fault. For more information, see 'AArch32 data cache maintenance instructions (DC*)'. Accesses to this instruction use the following encodings in the System instruction encoding space: MCR{}{} , {#}, , , {, {#}} (coproc = 0b1111, opc1 = 0b000, CRn = 0b0111, CRm = 0b0110, opc2 = 0b001) ``` if !IsFeatureImplemented(FEAT_AA32EL1) then Undefined(); elsif PSTATE.EL == EL0 then Undefined(); elsif PSTATE.EL == EL1 then if !AArch32_CanTrapDC(CacheOp_Invalidate, CacheOpScope_PoC) then ExecuteAsNOP(); elsif 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) && HCR_EL2().TPCP == '1' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA32EL2) && ELUsingAArch32(EL2) && HCR().TPC == '1' then AArch32_TakeHypTrapException(0x03); else if AArch32_TreatDCAsNOP(CacheOp_Invalidate, CacheOpScope_PoC) then ExecuteAsNOP(); else AArch32_DC(R(t), CacheOp_Invalidate, CacheOpScope_PoC); end; end; elsif PSTATE.EL == EL2 then if !AArch32_CanTrapDC(CacheOp_Invalidate, CacheOpScope_PoC) then ExecuteAsNOP(); else if AArch32_TreatDCAsNOP(CacheOp_Invalidate, CacheOpScope_PoC) then ExecuteAsNOP(); else AArch32_DC(R(t), CacheOp_Invalidate, CacheOpScope_PoC); end; end; elsif PSTATE.EL == EL3 then if AArch32_TreatDCAsNOP(CacheOp_Invalidate, CacheOpScope_PoC) then ExecuteAsNOP(); else AArch32_DC(R(t), CacheOp_Invalidate, CacheOpScope_PoC); end; end; ``` ---- DCISW Data Cache line Invalidate by Set/Way Invalidate data or unified cache line by set/way. Configuration AArch32 System instruction DCISW performs the same function as AArch64 System instruction DC ISW. This instruction is present only when FEAT_AA32EL1 is implemented. Otherwise, direct accesses to DCISW are UNDEFINED. Attributes DCISW 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 SetWay | | | | | | | | | | | | | | | | | | | | | | | | | | | | Level | | | 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 DCISW 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. Accesses to this instruction use the following encodings in the System instruction encoding space: MCR{}{} , {#}, , , {, {#}} (coproc = 0b1111, opc1 = 0b000, CRn = 0b0111, CRm = 0b0110, 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); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA64EL2) && !ELUsingAArch32(EL2) && HCR_EL2().TSW == '1' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA32EL2) && ELUsingAArch32(EL2) && HCR().TSW == '1' then AArch32_TakeHypTrapException(0x03); else AArch32_DC(R(t), CacheOp_Invalidate, CacheOpScope_SetWay); end; elsif PSTATE.EL == EL2 then AArch32_DC(R(t), CacheOp_Invalidate, CacheOpScope_SetWay); elsif PSTATE.EL == EL3 then AArch32_DC(R(t), CacheOp_Invalidate, CacheOpScope_SetWay); end; ``` ---- DTLBIALL Data TLB Invalidate All Invalidate all cached copies of translation table entries from data TLBs that are from any level of the translation table walk. The entries that are invalidated are as follows: If executed at EL1, all entries that: - Would be required for the EL1&0 translation regime. - Match the current VMID, if EL2 is implemented and enabled in the current Security state. - If executed in Secure state when EL3 is using AArch32, all entries that would be required for the Secure PL1&0 translation regime. - If executed at EL2, and if EL2 is enabled in the current Security state, the stage 1 or stage 2 translation table entries that would be required for the Non-secure PL1&0 translation regime and matches the current VMID. The invalidation only applies to the PE that executes this System instruction. Arm deprecates the use of this System instruction. It is only provided for backward compatibility with earlier versions of the Arm architecture. Configuration This instruction is present only when FEAT_AA32EL1 is implemented. Otherwise, direct accesses to DTLBIALL are UNDEFINED. Attributes DTLBIALL is a 32-bit System instruction. Field descriptions This instruction has no applicable fields. The value in the register specified by is ignored. Executing DTLBIALL 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 = 0b0110, 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().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_DTLBI_ALL(SecurityStateAtEL(EL1), Regime_EL10, VMID(), Broadcast_NSH, TLBI_AllAttr); end; elsif PSTATE.EL == EL2 then AArch32_DTLBI_ALL(SecurityStateAtEL(EL1), Regime_EL10, VMID(), Broadcast_NSH, TLBI_AllAttr); elsif PSTATE.EL == EL3 then AArch32_DTLBI_ALL(SecurityStateAtEL(EL3), Regime_EL30, VMID(), Broadcast_NSH, TLBI_AllAttr); end; ``` ---- DTLBIASID Data TLB Invalidate by ASID match Invalidate all cached copies of translation table entries from data TLBs that meet the following requirements: - The entry is a stage 1 translation table entry. The entry would be used for the specified ASID, and either: - Is from a level of lookup above the final level. - Is a non-global entry from the final level of lookup. - 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. Arm deprecates the use of this System instruction. It is only provided for backward compatibility with earlier versions of the Arm architecture. Configuration This instruction is present only when FEAT_AA32EL1 is implemented. Otherwise, direct accesses to DTLBIASID are UNDEFINED. Attributes DTLBIASID 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 | | | | | | | | | | | | | | | | | | | | | | | | ASID | | | | | | | Bits [31:8]: Reserved, RES0. ASID, bits [7:0]: ASID value to match. Any TLB entries for non-global pages that match the ASID values will be affected by this System instruction. Executing DTLBIASID 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 = 0b0110, 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().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_DTLBI_ASID(SecurityStateAtEL(EL1), Regime_EL10, VMID(), Broadcast_NSH, TLBI_AllAttr, R(t)); end; elsif PSTATE.EL == EL2 then AArch32_DTLBI_ASID(SecurityStateAtEL(EL1), Regime_EL10, VMID(), Broadcast_NSH, TLBI_AllAttr, R(t)); elsif PSTATE.EL == EL3 then AArch32_DTLBI_ASID(SecurityStateAtEL(EL3), Regime_EL30, VMID_NONE, Broadcast_NSH, TLBI_AllAttr, R(t)); end; ``` ---- DTLBIMVA Data TLB Invalidate by VA Invalidate all cached copies of translation table entries from data 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. Arm deprecates the use of this System instruction. It is only provided for backward compatibility with earlier versions of the Arm architecture. Configuration This instruction is present only when FEAT_AA32EL1 is implemented. Otherwise, direct accesses to DTLBIMVA are UNDEFINED. Attributes DTLBIMVA 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 DTLBIMVA 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 = 0b0110, 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_DTLBI_VA(SecurityStateAtEL(EL1), Regime_EL10, VMID(), Broadcast_NSH, TLBILevel_Any, TLBI_AllAttr, R(t)); end; elsif PSTATE.EL == EL2 then AArch32_DTLBI_VA(SecurityStateAtEL(EL1), Regime_EL10, VMID(), Broadcast_NSH, TLBILevel_Any, TLBI_AllAttr, R(t)); elsif PSTATE.EL == EL3 then AArch32_DTLBI_VA(SecurityStateAtEL(EL3), Regime_EL30, VMID_NONE, Broadcast_NSH, TLBILevel_Any, TLBI_AllAttr, R(t)); end; ``` ---- DVPRCTX Data Value Prediction Restriction by Context Data Value Prediction Restriction by Context applies to all Data Value Prediction Resources that predict execution based on information gathered within the target execution context or contexts. The prediction of the PSTATE.{N,Z,C,V} values is not considered a data value for this purpose. Data value 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 DVPRCTX are UNDEFINED. Attributes DVPRCTX 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 the Effective value of HCR_EL2.{E2H, TGE} is not {1, 1} or EL2 is using AArch32. 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} or ELUsingAArch32(EL2)), 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. 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 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 DVPRCTX Accesses to this instruction use the following encodings in the System instruction encoding space: MCR{}{} , {#}, , , {, {#}} (coproc = 0b1111, opc1 = 0b000, CRn = 0b0111, CRm = 0b0011, opc2 = 0b101) ``` 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().DVPRCTX == '1' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif EffectivelyAtEL0InHost() && SCTLR_EL2().EnRCTX == '0' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); else AArch32_RestrictPrediction(R(t), RestrictType_DataValue); 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_DataValue); end; elsif PSTATE.EL == EL2 then AArch32_RestrictPrediction(R(t), RestrictType_DataValue); elsif PSTATE.EL == EL3 then AArch32_RestrictPrediction(R(t), RestrictType_DataValue); end; ``` ---- ICIALLU Instruction Cache Invalidate All to PoU Invalidate all instruction caches of the PE executing the instruction to the Point of Unification. If branch predictors are architecturally visible, also flush branch predictors. Configuration AArch32 System instruction ICIALLU performs the same function as AArch64 System instruction IC IALLU. This instruction is present only when FEAT_AA32EL1 is implemented. Otherwise, direct accesses to ICIALLU are UNDEFINED. Attributes ICIALLU is a 32-bit System instruction. Field descriptions This instruction has no applicable fields. The value in the register specified by is ignored. Executing ICIALLU 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 ICIALLUIS. 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 = 0b0111, CRm = 0b0101, opc2 = 0b000) ``` if !IsFeatureImplemented(FEAT_AA32EL1) then Undefined(); elsif PSTATE.EL == EL0 then Undefined(); elsif PSTATE.EL == EL1 then if !AArch32_CanTrapIC(CacheOp_Invalidate, CacheOpScope_PoU) then ExecuteAsNOP(); elsif 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) && HCR_EL2().TPU == '1' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA64EL2) && !ELUsingAArch32(EL2) && HCR_EL2().TOCU == '1' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA32EL2) && ELUsingAArch32(EL2) && HCR().TPU == '1' then AArch32_TakeHypTrapException(0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA32EL2) && ELUsingAArch32(EL2) && HCR2().TOCU == '1' then AArch32_TakeHypTrapException(0x03); else if AArch32_TreatICAsNOP(CacheOp_Invalidate, CacheOpScope_PoU) then ExecuteAsNOP(); else AArch32_IC(CacheOpScope_ALLU); end; end; elsif PSTATE.EL == EL2 then if !AArch32_CanTrapIC(CacheOp_Invalidate, CacheOpScope_PoU) then ExecuteAsNOP(); else if AArch32_TreatICAsNOP(CacheOp_Invalidate, CacheOpScope_PoU) then ExecuteAsNOP(); else AArch32_IC(CacheOpScope_ALLU); end; end; elsif PSTATE.EL == EL3 then if AArch32_TreatICAsNOP(CacheOp_Invalidate, CacheOpScope_PoU) then ExecuteAsNOP(); else AArch32_IC(CacheOpScope_ALLU); end; end; ``` ---- ICIALLUIS Instruction Cache Invalidate All to PoU, Inner Shareable Invalidate all instruction caches in the Inner Shareable domain of the PE executing the instruction to the Point of Unification. If branch predictors are architecturally visible, also flush branch predictors. Configuration AArch32 System instruction ICIALLUIS performs the same function as AArch64 System instruction IC IALLUIS. This instruction is present only when FEAT_AA32EL1 is implemented. Otherwise, direct accesses to ICIALLUIS are UNDEFINED. Attributes ICIALLUIS is a 32-bit System instruction. Field descriptions This instruction has no applicable fields. The value in the register specified by is ignored. Executing ICIALLUIS 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 = 0b000) ``` if !IsFeatureImplemented(FEAT_AA32EL1) then Undefined(); elsif PSTATE.EL == EL0 then Undefined(); elsif PSTATE.EL == EL1 then if !AArch32_CanTrapIC(CacheOp_Invalidate, CacheOpScope_PoU) then ExecuteAsNOP(); elsif 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) && HCR_EL2().TPU == '1' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA64EL2) && !ELUsingAArch32(EL2) && HCR_EL2().TICAB == '1' then AArch64_AArch32SystemAccessTrap(EL2, 0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA32EL2) && ELUsingAArch32(EL2) && HCR().TPU == '1' then AArch32_TakeHypTrapException(0x03); elsif EL2Enabled() && IsFeatureImplemented(FEAT_AA32EL2) && ELUsingAArch32(EL2) && HCR2().TICAB == '1' then AArch32_TakeHypTrapException(0x03); else if AArch32_TreatICAsNOP(CacheOp_Invalidate, CacheOpScope_PoU) then ExecuteAsNOP(); else AArch32_IC(CacheOpScope_ALLUIS); end; end; elsif PSTATE.EL == EL2 then if !AArch32_CanTrapIC(CacheOp_Invalidate, CacheOpScope_PoU) then ExecuteAsNOP(); else if AArch32_TreatICAsNOP(CacheOp_Invalidate, CacheOpScope_PoU) then ExecuteAsNOP(); else AArch32_IC(CacheOpScope_ALLUIS); end; end; elsif PSTATE.EL == EL3 then if AArch32_TreatICAsNOP(CacheOp_Invalidate, CacheOpScope_PoU) then ExecuteAsNOP(); else AArch32_IC(CacheOpScope_ALLUIS); end; end; ``` ------------------------------------------------------------------------------ Page 1 of 1. End of thread.