[Writeup] AArch64 system register pages: part 2 of 18 ===================================================== Section: Silicon & Architectures Started: 2026-11-28 17:33 UTC by admin Replies: 0, last post 2026-11-28 17:33 UTC Page: 1 of 1 Web: https://romdump.net/t/39 ------------------------------------------------------------------------------ #59 admin, 2026-11-28 17:33 UTC [OP] Source: https://romdump.net/raw/59 Archived Arm source pages for the AArch64 system register pages. Part 2 of 18. This part covers DC CGDVAC through DC CIGSW. DC CGDVAC Clean of Data and Allocation Tags by VA to PoC Clean data and Allocation Tags in data cache by address to Point of Coherency. If FEAT_MTE2 is not implemented, then this instruction behaves as a DC CVAC. Configuration This instruction is present only when FEAT_MTE is implemented. Otherwise, direct accesses to DC CGDVAC are UNDEFINED. Attributes DC CGDVAC is a 64-bit System instruction. Field descriptions 63 | 62 | 61 | 60 | 59 | 58 | 57 | 56 | 55 | 54 | 53 | 52 | 51 | 50 | 49 | 48 | 47 | 46 | 45 | 44 | 43 | 42 | 41 | 40 | 39 | 38 | 37 | 36 | 35 | 34 | 33 | 32 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 VA | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | VA | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | VA, bits [63:0]: Virtual address to use. No alignment restrictions apply to this VA. Executing DC CGDVAC If EL0 access is enabled, when executed at EL0, the instruction may generate a Permission fault, subject to the constraints described in 'MMU faults generated by cache maintenance operations'. Execution of this instruction might require an address translation from VA to PA, and that translation might fault. For more information, see 'The data cache maintenance instruction (DC)'. This system instruction is an alias of the SYS instruction. Accesses to this instruction use the following encodings in the System instruction encoding space: DC CGDVAC, (op0 = 0b01, op1 = 0b011, CRn = 0b0111, CRm = 0b1010, op2 = 0b101) ``` if !IsFeatureImplemented(FEAT_MTE) then Undefined(); elsif EffectivelyAtEL0NotInHost() then if !AArch64_CanTrapDC(CacheType_Data_Tag, CacheOp_Clean, CacheOpScope_PoC) then ExecuteAsNOP(); elsif SCTLR_EL1().UCI == '0' then AArch64_SystemAccessTraptoEL1orEL2(0x18); elsif EL2Enabled() && HCR_EL2().TPCP == '1' then AArch64_SystemAccessTrap(EL2, 0x18); elsif EL2Enabled() && IsFeatureImplemented(FEAT_FGT) && (!HaveEL(EL3) || SCR_EL3().FGTEn == '1') && HFGITR_EL2().DCCVAC == '1' then AArch64_SystemAccessTrap(EL2, 0x18); else if AArch64_TreatDCAsNOP(CacheType_Data_Tag, CacheOp_Clean, CacheOpScope_PoC) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data_Tag, CacheOp_Clean, CacheOpScope_PoC); end; end; elsif EffectivelyAtEL0InHost() then if !AArch64_CanTrapDC(CacheType_Data_Tag, CacheOp_Clean, CacheOpScope_PoC) then ExecuteAsNOP(); elsif SCTLR_EL2().UCI == '0' then AArch64_SystemAccessTrap(EL2, 0x18); else if AArch64_TreatDCAsNOP(CacheType_Data_Tag, CacheOp_Clean, CacheOpScope_PoC) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data_Tag, CacheOp_Clean, CacheOpScope_PoC); end; end; elsif PSTATE.EL == EL1 then if !AArch64_CanTrapDC(CacheType_Data_Tag, CacheOp_Clean, CacheOpScope_PoC) then ExecuteAsNOP(); elsif EL2Enabled() && HCR_EL2().TPCP == '1' then AArch64_SystemAccessTrap(EL2, 0x18); elsif EL2Enabled() && IsFeatureImplemented(FEAT_FGT) && (!HaveEL(EL3) || SCR_EL3().FGTEn == '1') && HFGITR_EL2().DCCVAC == '1' then AArch64_SystemAccessTrap(EL2, 0x18); else if AArch64_TreatDCAsNOP(CacheType_Data_Tag, CacheOp_Clean, CacheOpScope_PoC) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data_Tag, CacheOp_Clean, CacheOpScope_PoC); end; end; elsif PSTATE.EL == EL2 then if !AArch64_CanTrapDC(CacheType_Data_Tag, CacheOp_Clean, CacheOpScope_PoC) then ExecuteAsNOP(); else if AArch64_TreatDCAsNOP(CacheType_Data_Tag, CacheOp_Clean, CacheOpScope_PoC) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data_Tag, CacheOp_Clean, CacheOpScope_PoC); end; end; elsif PSTATE.EL == EL3 then if AArch64_TreatDCAsNOP(CacheType_Data_Tag, CacheOp_Clean, CacheOpScope_PoC) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data_Tag, CacheOp_Clean, CacheOpScope_PoC); end; end; ``` ---- DC CGDVADP Clean of Data and Allocation Tags by VA to PoDP Clean Allocation Tags and data in data cache by address to Point of Deep Persistence. If the memory system does not identify a Point of Deep Persistence, then this instruction behaves as a DC CGDVAP. If FEAT_MTE2 is not implemented, then this instruction behaves as a DC CVADP. Configuration This instruction is present only when FEAT_DPB2 is implemented and FEAT_MTE is implemented. Otherwise, direct accesses to DC CGDVADP are UNDEFINED. Attributes DC CGDVADP is a 64-bit System instruction. Field descriptions 63 | 62 | 61 | 60 | 59 | 58 | 57 | 56 | 55 | 54 | 53 | 52 | 51 | 50 | 49 | 48 | 47 | 46 | 45 | 44 | 43 | 42 | 41 | 40 | 39 | 38 | 37 | 36 | 35 | 34 | 33 | 32 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 VA | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | VA | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | VA, bits [63:0]: Virtual address to use. No alignment restrictions apply to this VA. Executing DC CGDVADP If EL0 access is enabled, when executed at EL0, the instruction may generate a Permission fault, subject to the constraints described in 'MMU faults generated by cache maintenance operations'. Execution of this instruction might require an address translation from VA to PA, and that translation might fault. For more information, see 'The data cache maintenance instruction (DC)'. This system instruction is an alias of the SYS instruction. Accesses to this instruction use the following encodings in the System instruction encoding space: DC CGDVADP, (op0 = 0b01, op1 = 0b011, CRn = 0b0111, CRm = 0b1101, op2 = 0b101) ``` if !(IsFeatureImplemented(FEAT_DPB2) && IsFeatureImplemented(FEAT_MTE)) then Undefined(); elsif EffectivelyAtEL0NotInHost() then if !AArch64_CanTrapDC(CacheType_Data_Tag, CacheOp_Clean, CacheOpScope_PoDP) then ExecuteAsNOP(); elsif SCTLR_EL1().UCI == '0' then AArch64_SystemAccessTraptoEL1orEL2(0x18); elsif EL2Enabled() && HCR_EL2().TPCP == '1' then AArch64_SystemAccessTrap(EL2, 0x18); elsif EL2Enabled() && IsFeatureImplemented(FEAT_FGT) && (!HaveEL(EL3) || SCR_EL3().FGTEn == '1') && HFGITR_EL2().DCCVADP == '1' then AArch64_SystemAccessTrap(EL2, 0x18); else if AArch64_TreatDCAsNOP(CacheType_Data_Tag, CacheOp_Clean, CacheOpScope_PoDP) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data_Tag, CacheOp_Clean, CacheOpScope_PoDP); end; end; elsif EffectivelyAtEL0InHost() then if !AArch64_CanTrapDC(CacheType_Data_Tag, CacheOp_Clean, CacheOpScope_PoDP) then ExecuteAsNOP(); elsif SCTLR_EL2().UCI == '0' then AArch64_SystemAccessTrap(EL2, 0x18); else if AArch64_TreatDCAsNOP(CacheType_Data_Tag, CacheOp_Clean, CacheOpScope_PoDP) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data_Tag, CacheOp_Clean, CacheOpScope_PoDP); end; end; elsif PSTATE.EL == EL1 then if !AArch64_CanTrapDC(CacheType_Data_Tag, CacheOp_Clean, CacheOpScope_PoDP) then ExecuteAsNOP(); elsif EL2Enabled() && HCR_EL2().TPCP == '1' then AArch64_SystemAccessTrap(EL2, 0x18); elsif EL2Enabled() && IsFeatureImplemented(FEAT_FGT) && (!HaveEL(EL3) || SCR_EL3().FGTEn == '1') && HFGITR_EL2().DCCVADP == '1' then AArch64_SystemAccessTrap(EL2, 0x18); else if AArch64_TreatDCAsNOP(CacheType_Data_Tag, CacheOp_Clean, CacheOpScope_PoDP) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data_Tag, CacheOp_Clean, CacheOpScope_PoDP); end; end; elsif PSTATE.EL == EL2 then if !AArch64_CanTrapDC(CacheType_Data_Tag, CacheOp_Clean, CacheOpScope_PoDP) then ExecuteAsNOP(); else if AArch64_TreatDCAsNOP(CacheType_Data_Tag, CacheOp_Clean, CacheOpScope_PoDP) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data_Tag, CacheOp_Clean, CacheOpScope_PoDP); end; end; elsif PSTATE.EL == EL3 then if AArch64_TreatDCAsNOP(CacheType_Data_Tag, CacheOp_Clean, CacheOpScope_PoDP) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data_Tag, CacheOp_Clean, CacheOpScope_PoDP); end; end; ``` ---- DC CGDVAOC Clean of Data and Allocation Tags by VA to Outer Cache level Clean data and Allocation Tags in data cache by address to Outer cache level. If FEAT_MTE2 is not implemented, then this instruction behaves as a DC CVAOC. Configuration This instruction is present only when FEAT_OCCMO is implemented, FEAT_MTE is implemented, and FEAT_AA64 is implemented. Otherwise, direct accesses to DC CGDVAOC are UNDEFINED. Attributes DC CGDVAOC is a 64-bit System instruction. Field descriptions 63 | 62 | 61 | 60 | 59 | 58 | 57 | 56 | 55 | 54 | 53 | 52 | 51 | 50 | 49 | 48 | 47 | 46 | 45 | 44 | 43 | 42 | 41 | 40 | 39 | 38 | 37 | 36 | 35 | 34 | 33 | 32 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 VA | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | VA | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | VA, bits [63:0]: Virtual address to use. No alignment restrictions apply to this VA. Executing DC CGDVAOC If EL0 access is enabled, when executed at EL0, the instruction may generate a Permission fault, subject to the constraints described in 'MMU faults generated by cache maintenance operations'. Execution of this instruction might require an address translation from VA to PA, and that translation might fault. For more information, see 'The data cache maintenance instruction (DC)'. This system instruction is an alias of the SYS instruction. Accesses to this instruction use the following encodings in the System instruction encoding space: DC CGDVAOC, (op0 = 0b01, op1 = 0b011, CRn = 0b0111, CRm = 0b1011, op2 = 0b111) ``` if !(IsFeatureImplemented(FEAT_OCCMO) && IsFeatureImplemented(FEAT_MTE) && IsFeatureImplemented(FEAT_AA64)) then Undefined(); elsif EffectivelyAtEL0NotInHost() then if !AArch64_CanTrapDC(CacheType_Data_Tag, CacheOp_Clean, CacheOpScope_OuterCache) then ExecuteAsNOP(); elsif SCTLR_EL1().UCI == '0' then AArch64_SystemAccessTraptoEL1orEL2(0x18); elsif EL2Enabled() && HCR_EL2().TPCP == '1' then AArch64_SystemAccessTrap(EL2, 0x18); elsif EL2Enabled() && IsFeatureImplemented(FEAT_FGT) && (!HaveEL(EL3) || SCR_EL3().FGTEn == '1') && HFGITR_EL2().DCCVAC == '1' then AArch64_SystemAccessTrap(EL2, 0x18); else if AArch64_TreatDCAsNOP(CacheType_Data_Tag, CacheOp_Clean, CacheOpScope_OuterCache) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data_Tag, CacheOp_Clean, CacheOpScope_OuterCache); end; end; elsif EffectivelyAtEL0InHost() then if !AArch64_CanTrapDC(CacheType_Data_Tag, CacheOp_Clean, CacheOpScope_OuterCache) then ExecuteAsNOP(); elsif SCTLR_EL2().UCI == '0' then AArch64_SystemAccessTrap(EL2, 0x18); else if AArch64_TreatDCAsNOP(CacheType_Data_Tag, CacheOp_Clean, CacheOpScope_OuterCache) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data_Tag, CacheOp_Clean, CacheOpScope_OuterCache); end; end; elsif PSTATE.EL == EL1 then if !AArch64_CanTrapDC(CacheType_Data_Tag, CacheOp_Clean, CacheOpScope_OuterCache) then ExecuteAsNOP(); elsif EL2Enabled() && HCR_EL2().TPCP == '1' then AArch64_SystemAccessTrap(EL2, 0x18); elsif EL2Enabled() && IsFeatureImplemented(FEAT_FGT) && (!HaveEL(EL3) || SCR_EL3().FGTEn == '1') && HFGITR_EL2().DCCVAC == '1' then AArch64_SystemAccessTrap(EL2, 0x18); else if AArch64_TreatDCAsNOP(CacheType_Data_Tag, CacheOp_Clean, CacheOpScope_OuterCache) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data_Tag, CacheOp_Clean, CacheOpScope_OuterCache); end; end; elsif PSTATE.EL == EL2 then if !AArch64_CanTrapDC(CacheType_Data_Tag, CacheOp_Clean, CacheOpScope_OuterCache) then ExecuteAsNOP(); else if AArch64_TreatDCAsNOP(CacheType_Data_Tag, CacheOp_Clean, CacheOpScope_OuterCache) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data_Tag, CacheOp_Clean, CacheOpScope_OuterCache); end; end; elsif PSTATE.EL == EL3 then if AArch64_TreatDCAsNOP(CacheType_Data_Tag, CacheOp_Clean, CacheOpScope_OuterCache) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data_Tag, CacheOp_Clean, CacheOpScope_OuterCache); end; end; ``` ---- DC CGDVAP Clean of Data and Allocation Tags by VA to PoP Clean data and Allocation Tags in data cache by address to Point of Persistence. If the memory system does not identify a Point of Persistence, then this instruction behaves as a DC CGDVAC. If FEAT_MTE2 is not implemented, then this instruction behaves as a DC CVAP. Configuration This instruction is present only when FEAT_MTE is implemented. Otherwise, direct accesses to DC CGDVAP are UNDEFINED. Attributes DC CGDVAP is a 64-bit System instruction. Field descriptions 63 | 62 | 61 | 60 | 59 | 58 | 57 | 56 | 55 | 54 | 53 | 52 | 51 | 50 | 49 | 48 | 47 | 46 | 45 | 44 | 43 | 42 | 41 | 40 | 39 | 38 | 37 | 36 | 35 | 34 | 33 | 32 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 VA | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | VA | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | VA, bits [63:0]: Virtual address to use. No alignment restrictions apply to this VA. Executing DC CGDVAP If EL0 access is enabled, when executed at EL0, the instruction may generate a Permission fault, subject to the constraints described in 'MMU faults generated by cache maintenance operations'. Execution of this instruction might require an address translation from VA to PA, and that translation might fault. For more information, see 'The data cache maintenance instruction (DC)'. This system instruction is an alias of the SYS instruction. Accesses to this instruction use the following encodings in the System instruction encoding space: DC CGDVAP, (op0 = 0b01, op1 = 0b011, CRn = 0b0111, CRm = 0b1100, op2 = 0b101) ``` if !IsFeatureImplemented(FEAT_MTE) then Undefined(); elsif EffectivelyAtEL0NotInHost() then if !AArch64_CanTrapDC(CacheType_Data_Tag, CacheOp_Clean, CacheOpScope_PoP) then ExecuteAsNOP(); elsif SCTLR_EL1().UCI == '0' then AArch64_SystemAccessTraptoEL1orEL2(0x18); elsif EL2Enabled() && HCR_EL2().TPCP == '1' then AArch64_SystemAccessTrap(EL2, 0x18); elsif EL2Enabled() && IsFeatureImplemented(FEAT_FGT) && (!HaveEL(EL3) || SCR_EL3().FGTEn == '1') && HFGITR_EL2().DCCVAP == '1' then AArch64_SystemAccessTrap(EL2, 0x18); else if AArch64_TreatDCAsNOP(CacheType_Data_Tag, CacheOp_Clean, CacheOpScope_PoP) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data_Tag, CacheOp_Clean, CacheOpScope_PoP); end; end; elsif EffectivelyAtEL0InHost() then if !AArch64_CanTrapDC(CacheType_Data_Tag, CacheOp_Clean, CacheOpScope_PoP) then ExecuteAsNOP(); elsif SCTLR_EL2().UCI == '0' then AArch64_SystemAccessTrap(EL2, 0x18); else if AArch64_TreatDCAsNOP(CacheType_Data_Tag, CacheOp_Clean, CacheOpScope_PoP) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data_Tag, CacheOp_Clean, CacheOpScope_PoP); end; end; elsif PSTATE.EL == EL1 then if !AArch64_CanTrapDC(CacheType_Data_Tag, CacheOp_Clean, CacheOpScope_PoP) then ExecuteAsNOP(); elsif EL2Enabled() && HCR_EL2().TPCP == '1' then AArch64_SystemAccessTrap(EL2, 0x18); elsif EL2Enabled() && IsFeatureImplemented(FEAT_FGT) && (!HaveEL(EL3) || SCR_EL3().FGTEn == '1') && HFGITR_EL2().DCCVAP == '1' then AArch64_SystemAccessTrap(EL2, 0x18); else if AArch64_TreatDCAsNOP(CacheType_Data_Tag, CacheOp_Clean, CacheOpScope_PoP) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data_Tag, CacheOp_Clean, CacheOpScope_PoP); end; end; elsif PSTATE.EL == EL2 then if !AArch64_CanTrapDC(CacheType_Data_Tag, CacheOp_Clean, CacheOpScope_PoP) then ExecuteAsNOP(); else if AArch64_TreatDCAsNOP(CacheType_Data_Tag, CacheOp_Clean, CacheOpScope_PoP) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data_Tag, CacheOp_Clean, CacheOpScope_PoP); end; end; elsif PSTATE.EL == EL3 then if AArch64_TreatDCAsNOP(CacheType_Data_Tag, CacheOp_Clean, CacheOpScope_PoP) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data_Tag, CacheOp_Clean, CacheOpScope_PoP); end; end; ``` ---- DC CGSW Clean of Allocation Tags by Set/Way Clean Allocation Tags in data cache by set/way. Configuration This instruction is present only when FEAT_MTE2 is implemented. Otherwise, direct accesses to DC CGSW are UNDEFINED. Attributes DC CGSW is a 64-bit System instruction. Field descriptions 63 | 62 | 61 | 60 | 59 | 58 | 57 | 56 | 55 | 54 | 53 | 52 | 51 | 50 | 49 | 48 | 47 | 46 | 45 | 44 | 43 | 42 | 41 | 40 | 39 | 38 | 37 | 36 | 35 | 34 | 33 | 32 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 RES0 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SetWay | | | | | | | | | | | | | | | | | | | | | | | | | | | | Level | | | RES0 Bits [63:32]: Reserved, RES0. SetWay, bits [31:4]: Contains two fields: - Way, bits[31:32-A], the number of the way to operate on. - Set, bits[B-1:L], the number of the set to operate on. Bits[L-1:4] are RES0. A = Log2(ASSOCIATIVITY), L = Log2(LINELEN), B = (L + S), S = Log2(NSETS). ASSOCIATIVITY, LINELEN (line length, in bytes), and NSETS (number of sets) have their usual meanings and are the values for the cache level being operated on. The values of A and S are rounded up to the next integer. Level, bits [3:1]: Cache level to operate on, minus 1. For example, this field is 0 for operations on L1 cache, or 1 for operations on L2 cache. Bit [0]: Reserved, RES0. Executing DC CGSW If this instruction is executed with a set, way or level argument that is larger than the value supported by the implementation then the behavior is CONSTRAINED UNPREDICTABLE and one of the following occurs: - The instruction is UNDEFINED. The instruction performs cache maintenance on one of: - No cache lines. - A single arbitrary cache line. - Multiple arbitrary cache lines. This system instruction is an alias of the SYS instruction. Accesses to this instruction use the following encodings in the System instruction encoding space: DC CGSW, (op0 = 0b01, op1 = 0b000, CRn = 0b0111, CRm = 0b1010, op2 = 0b100) ``` if !IsFeatureImplemented(FEAT_MTE2) then Undefined(); elsif PSTATE.EL == EL0 then Undefined(); elsif PSTATE.EL == EL1 then if EL2Enabled() && HCR_EL2().TSW == '1' then AArch64_SystemAccessTrap(EL2, 0x18); elsif EL2Enabled() && IsFeatureImplemented(FEAT_FGT) && (!HaveEL(EL3) || SCR_EL3().FGTEn == '1') && HFGITR_EL2().DCCSW == '1' then AArch64_SystemAccessTrap(EL2, 0x18); else AArch64_DC(X{64}(t), CacheType_Tag, CacheOp_Clean, CacheOpScope_SetWay); end; elsif PSTATE.EL == EL2 then AArch64_DC(X{64}(t), CacheType_Tag, CacheOp_Clean, CacheOpScope_SetWay); elsif PSTATE.EL == EL3 then AArch64_DC(X{64}(t), CacheType_Tag, CacheOp_Clean, CacheOpScope_SetWay); end; ``` ---- DC CGVAC Clean of Allocation Tags by VA to PoC Clean Allocation Tags in data cache by address to Point of Coherency. Configuration This instruction is present only when FEAT_MTE is implemented. Otherwise, direct accesses to DC CGVAC are UNDEFINED. Attributes DC CGVAC is a 64-bit System instruction. Field descriptions 63 | 62 | 61 | 60 | 59 | 58 | 57 | 56 | 55 | 54 | 53 | 52 | 51 | 50 | 49 | 48 | 47 | 46 | 45 | 44 | 43 | 42 | 41 | 40 | 39 | 38 | 37 | 36 | 35 | 34 | 33 | 32 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 VA | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | VA | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | VA, bits [63:0]: Virtual address to use. No alignment restrictions apply to this VA. Executing DC CGVAC If EL0 access is enabled, when executed at EL0, the instruction may generate a Permission fault, subject to the constraints described in 'MMU faults generated by cache maintenance operations'. Execution of this instruction might require an address translation from VA to PA, and that translation might fault. For more information, see 'The data cache maintenance instruction (DC)'. This system instruction is an alias of the SYS instruction. Accesses to this instruction use the following encodings in the System instruction encoding space: DC CGVAC, (op0 = 0b01, op1 = 0b011, CRn = 0b0111, CRm = 0b1010, op2 = 0b011) ``` if !IsFeatureImplemented(FEAT_MTE) then Undefined(); elsif EffectivelyAtEL0NotInHost() then if !AArch64_CanTrapDC(CacheType_Tag, CacheOp_Clean, CacheOpScope_PoC) then ExecuteAsNOP(); elsif SCTLR_EL1().UCI == '0' then AArch64_SystemAccessTraptoEL1orEL2(0x18); elsif EL2Enabled() && HCR_EL2().TPCP == '1' then AArch64_SystemAccessTrap(EL2, 0x18); elsif EL2Enabled() && IsFeatureImplemented(FEAT_FGT) && (!HaveEL(EL3) || SCR_EL3().FGTEn == '1') && HFGITR_EL2().DCCVAC == '1' then AArch64_SystemAccessTrap(EL2, 0x18); else if AArch64_TreatDCAsNOP(CacheType_Tag, CacheOp_Clean, CacheOpScope_PoC) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Tag, CacheOp_Clean, CacheOpScope_PoC); end; end; elsif EffectivelyAtEL0InHost() then if !AArch64_CanTrapDC(CacheType_Tag, CacheOp_Clean, CacheOpScope_PoC) then ExecuteAsNOP(); elsif SCTLR_EL2().UCI == '0' then AArch64_SystemAccessTrap(EL2, 0x18); else if AArch64_TreatDCAsNOP(CacheType_Tag, CacheOp_Clean, CacheOpScope_PoC) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Tag, CacheOp_Clean, CacheOpScope_PoC); end; end; elsif PSTATE.EL == EL1 then if !AArch64_CanTrapDC(CacheType_Tag, CacheOp_Clean, CacheOpScope_PoC) then ExecuteAsNOP(); elsif EL2Enabled() && HCR_EL2().TPCP == '1' then AArch64_SystemAccessTrap(EL2, 0x18); elsif EL2Enabled() && IsFeatureImplemented(FEAT_FGT) && (!HaveEL(EL3) || SCR_EL3().FGTEn == '1') && HFGITR_EL2().DCCVAC == '1' then AArch64_SystemAccessTrap(EL2, 0x18); else if AArch64_TreatDCAsNOP(CacheType_Tag, CacheOp_Clean, CacheOpScope_PoC) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Tag, CacheOp_Clean, CacheOpScope_PoC); end; end; elsif PSTATE.EL == EL2 then if !AArch64_CanTrapDC(CacheType_Tag, CacheOp_Clean, CacheOpScope_PoC) then ExecuteAsNOP(); else if AArch64_TreatDCAsNOP(CacheType_Tag, CacheOp_Clean, CacheOpScope_PoC) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Tag, CacheOp_Clean, CacheOpScope_PoC); end; end; elsif PSTATE.EL == EL3 then if AArch64_TreatDCAsNOP(CacheType_Tag, CacheOp_Clean, CacheOpScope_PoC) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Tag, CacheOp_Clean, CacheOpScope_PoC); end; end; ``` ---- DC CGVADP Clean of Allocation Tags by VA to PoDP Clean Allocation tags by address to Point of Deep Persistence. If the memory system does not identify a Point of Deep Persistence, then this instruction behaves as a DC CGVAP. Configuration This instruction is present only when FEAT_DPB2 is implemented and FEAT_MTE is implemented. Otherwise, direct accesses to DC CGVADP are UNDEFINED. Attributes DC CGVADP is a 64-bit System instruction. Field descriptions 63 | 62 | 61 | 60 | 59 | 58 | 57 | 56 | 55 | 54 | 53 | 52 | 51 | 50 | 49 | 48 | 47 | 46 | 45 | 44 | 43 | 42 | 41 | 40 | 39 | 38 | 37 | 36 | 35 | 34 | 33 | 32 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 VA | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | VA | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | VA, bits [63:0]: Virtual address to use. No alignment restrictions apply to this VA. Executing DC CGVADP If EL0 access is enabled, when executed at EL0, the instruction may generate a Permission fault, subject to the constraints described in 'MMU faults generated by cache maintenance operations'. Execution of this instruction might require an address translation from VA to PA, and that translation might fault. For more information, see 'The data cache maintenance instruction (DC)'. This system instruction is an alias of the SYS instruction. Accesses to this instruction use the following encodings in the System instruction encoding space: DC CGVADP, (op0 = 0b01, op1 = 0b011, CRn = 0b0111, CRm = 0b1101, op2 = 0b011) ``` if !(IsFeatureImplemented(FEAT_DPB2) && IsFeatureImplemented(FEAT_MTE)) then Undefined(); elsif EffectivelyAtEL0NotInHost() then if !AArch64_CanTrapDC(CacheType_Tag, CacheOp_Clean, CacheOpScope_PoDP) then ExecuteAsNOP(); elsif SCTLR_EL1().UCI == '0' then AArch64_SystemAccessTraptoEL1orEL2(0x18); elsif EL2Enabled() && HCR_EL2().TPCP == '1' then AArch64_SystemAccessTrap(EL2, 0x18); elsif EL2Enabled() && IsFeatureImplemented(FEAT_FGT) && (!HaveEL(EL3) || SCR_EL3().FGTEn == '1') && HFGITR_EL2().DCCVADP == '1' then AArch64_SystemAccessTrap(EL2, 0x18); else if AArch64_TreatDCAsNOP(CacheType_Tag, CacheOp_Clean, CacheOpScope_PoDP) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Tag, CacheOp_Clean, CacheOpScope_PoDP); end; end; elsif EffectivelyAtEL0InHost() then if !AArch64_CanTrapDC(CacheType_Tag, CacheOp_Clean, CacheOpScope_PoDP) then ExecuteAsNOP(); elsif SCTLR_EL2().UCI == '0' then AArch64_SystemAccessTrap(EL2, 0x18); else if AArch64_TreatDCAsNOP(CacheType_Tag, CacheOp_Clean, CacheOpScope_PoDP) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Tag, CacheOp_Clean, CacheOpScope_PoDP); end; end; elsif PSTATE.EL == EL1 then if !AArch64_CanTrapDC(CacheType_Tag, CacheOp_Clean, CacheOpScope_PoDP) then ExecuteAsNOP(); elsif EL2Enabled() && HCR_EL2().TPCP == '1' then AArch64_SystemAccessTrap(EL2, 0x18); elsif EL2Enabled() && IsFeatureImplemented(FEAT_FGT) && (!HaveEL(EL3) || SCR_EL3().FGTEn == '1') && HFGITR_EL2().DCCVADP == '1' then AArch64_SystemAccessTrap(EL2, 0x18); else if AArch64_TreatDCAsNOP(CacheType_Tag, CacheOp_Clean, CacheOpScope_PoDP) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Tag, CacheOp_Clean, CacheOpScope_PoDP); end; end; elsif PSTATE.EL == EL2 then if !AArch64_CanTrapDC(CacheType_Tag, CacheOp_Clean, CacheOpScope_PoDP) then ExecuteAsNOP(); else if AArch64_TreatDCAsNOP(CacheType_Tag, CacheOp_Clean, CacheOpScope_PoDP) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Tag, CacheOp_Clean, CacheOpScope_PoDP); end; end; elsif PSTATE.EL == EL3 then if AArch64_TreatDCAsNOP(CacheType_Tag, CacheOp_Clean, CacheOpScope_PoDP) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Tag, CacheOp_Clean, CacheOpScope_PoDP); end; end; ``` ---- DC CGVAP Clean of Allocation Tags by VA to PoP Clean Allocation Tags in data cache by address to Point of Persistence. If the memory system does not identify a Point of Persistence, then this instruction behaves as a DC CGVAC. Configuration This instruction is present only when FEAT_MTE is implemented. Otherwise, direct accesses to DC CGVAP are UNDEFINED. Attributes DC CGVAP is a 64-bit System instruction. Field descriptions 63 | 62 | 61 | 60 | 59 | 58 | 57 | 56 | 55 | 54 | 53 | 52 | 51 | 50 | 49 | 48 | 47 | 46 | 45 | 44 | 43 | 42 | 41 | 40 | 39 | 38 | 37 | 36 | 35 | 34 | 33 | 32 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 VA | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | VA | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | VA, bits [63:0]: Virtual address to use. No alignment restrictions apply to this VA. Executing DC CGVAP If EL0 access is enabled, when executed at EL0, the instruction may generate a Permission fault, subject to the constraints described in 'MMU faults generated by cache maintenance operations'. Execution of this instruction might require an address translation from VA to PA, and that translation might fault. For more information, see 'The data cache maintenance instruction (DC)'. This system instruction is an alias of the SYS instruction. Accesses to this instruction use the following encodings in the System instruction encoding space: DC CGVAP, (op0 = 0b01, op1 = 0b011, CRn = 0b0111, CRm = 0b1100, op2 = 0b011) ``` if !IsFeatureImplemented(FEAT_MTE) then Undefined(); elsif EffectivelyAtEL0NotInHost() then if !AArch64_CanTrapDC(CacheType_Tag, CacheOp_Clean, CacheOpScope_PoP) then ExecuteAsNOP(); elsif SCTLR_EL1().UCI == '0' then AArch64_SystemAccessTraptoEL1orEL2(0x18); elsif EL2Enabled() && HCR_EL2().TPCP == '1' then AArch64_SystemAccessTrap(EL2, 0x18); elsif EL2Enabled() && IsFeatureImplemented(FEAT_FGT) && (!HaveEL(EL3) || SCR_EL3().FGTEn == '1') && HFGITR_EL2().DCCVAP == '1' then AArch64_SystemAccessTrap(EL2, 0x18); else if AArch64_TreatDCAsNOP(CacheType_Tag, CacheOp_Clean, CacheOpScope_PoP) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Tag, CacheOp_Clean, CacheOpScope_PoP); end; end; elsif EffectivelyAtEL0InHost() then if !AArch64_CanTrapDC(CacheType_Tag, CacheOp_Clean, CacheOpScope_PoP) then ExecuteAsNOP(); elsif SCTLR_EL2().UCI == '0' then AArch64_SystemAccessTrap(EL2, 0x18); else if AArch64_TreatDCAsNOP(CacheType_Tag, CacheOp_Clean, CacheOpScope_PoP) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Tag, CacheOp_Clean, CacheOpScope_PoP); end; end; elsif PSTATE.EL == EL1 then if !AArch64_CanTrapDC(CacheType_Tag, CacheOp_Clean, CacheOpScope_PoP) then ExecuteAsNOP(); elsif EL2Enabled() && HCR_EL2().TPCP == '1' then AArch64_SystemAccessTrap(EL2, 0x18); elsif EL2Enabled() && IsFeatureImplemented(FEAT_FGT) && (!HaveEL(EL3) || SCR_EL3().FGTEn == '1') && HFGITR_EL2().DCCVAP == '1' then AArch64_SystemAccessTrap(EL2, 0x18); else if AArch64_TreatDCAsNOP(CacheType_Tag, CacheOp_Clean, CacheOpScope_PoP) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Tag, CacheOp_Clean, CacheOpScope_PoP); end; end; elsif PSTATE.EL == EL2 then if !AArch64_CanTrapDC(CacheType_Tag, CacheOp_Clean, CacheOpScope_PoP) then ExecuteAsNOP(); else if AArch64_TreatDCAsNOP(CacheType_Tag, CacheOp_Clean, CacheOpScope_PoP) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Tag, CacheOp_Clean, CacheOpScope_PoP); end; end; elsif PSTATE.EL == EL3 then if AArch64_TreatDCAsNOP(CacheType_Tag, CacheOp_Clean, CacheOpScope_PoP) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Tag, CacheOp_Clean, CacheOpScope_PoP); end; end; ``` ---- DC CIGDSW Clean and Invalidate of Data and Allocation Tags by Set/Way Clean and Invalidate data and Allocation Tags in data cache by set/way. Configuration This instruction is present only when FEAT_MTE2 is implemented. Otherwise, direct accesses to DC CIGDSW are UNDEFINED. Attributes DC CIGDSW is a 64-bit System instruction. Field descriptions 63 | 62 | 61 | 60 | 59 | 58 | 57 | 56 | 55 | 54 | 53 | 52 | 51 | 50 | 49 | 48 | 47 | 46 | 45 | 44 | 43 | 42 | 41 | 40 | 39 | 38 | 37 | 36 | 35 | 34 | 33 | 32 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 RES0 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SetWay | | | | | | | | | | | | | | | | | | | | | | | | | | | | Level | | | RES0 Bits [63:32]: Reserved, RES0. SetWay, bits [31:4]: Contains two fields: - Way, bits[31:32-A], the number of the way to operate on. - Set, bits[B-1:L], the number of the set to operate on. Bits[L-1:4] are RES0. A = Log2(ASSOCIATIVITY), L = Log2(LINELEN), B = (L + S), S = Log2(NSETS). ASSOCIATIVITY, LINELEN (line length, in bytes), and NSETS (number of sets) have their usual meanings and are the values for the cache level being operated on. The values of A and S are rounded up to the next integer. Level, bits [3:1]: Cache level to operate on, minus 1. For example, this field is 0 for operations on L1 cache, or 1 for operations on L2 cache. Bit [0]: Reserved, RES0. Executing DC CIGDSW If this instruction is executed with a set, way or level argument that is larger than the value supported by the implementation then the behavior is CONSTRAINED UNPREDICTABLE and one of the following occurs: - The instruction is UNDEFINED. The instruction performs cache maintenance on one of: - No cache lines. - A single arbitrary cache line. - Multiple arbitrary cache lines. This system instruction is an alias of the SYS instruction. Accesses to this instruction use the following encodings in the System instruction encoding space: DC CIGDSW, (op0 = 0b01, op1 = 0b000, CRn = 0b0111, CRm = 0b1110, op2 = 0b110) ``` if !IsFeatureImplemented(FEAT_MTE2) then Undefined(); elsif PSTATE.EL == EL0 then Undefined(); elsif PSTATE.EL == EL1 then if EL2Enabled() && HCR_EL2().TSW == '1' then AArch64_SystemAccessTrap(EL2, 0x18); elsif EL2Enabled() && IsFeatureImplemented(FEAT_FGT) && (!HaveEL(EL3) || SCR_EL3().FGTEn == '1') && HFGITR_EL2().DCCISW == '1' then AArch64_SystemAccessTrap(EL2, 0x18); else AArch64_DC(X{64}(t), CacheType_Data_Tag, CacheOp_CleanInvalidate, CacheOpScope_SetWay); end; elsif PSTATE.EL == EL2 then AArch64_DC(X{64}(t), CacheType_Data_Tag, CacheOp_CleanInvalidate, CacheOpScope_SetWay); elsif PSTATE.EL == EL3 then AArch64_DC(X{64}(t), CacheType_Data_Tag, CacheOp_CleanInvalidate, CacheOpScope_SetWay); end; ``` ---- DC CIGDVAC Clean and Invalidate of Data and Allocation Tags by VA to PoC Clean and Invalidate data and Allocation Tags in data cache by address to Point of Coherency. If FEAT_MTE2 is not implemented, then this instruction behaves as a DC CIVAC. Configuration This instruction is present only when FEAT_MTE is implemented. Otherwise, direct accesses to DC CIGDVAC are UNDEFINED. Attributes DC CIGDVAC is a 64-bit System instruction. Field descriptions 63 | 62 | 61 | 60 | 59 | 58 | 57 | 56 | 55 | 54 | 53 | 52 | 51 | 50 | 49 | 48 | 47 | 46 | 45 | 44 | 43 | 42 | 41 | 40 | 39 | 38 | 37 | 36 | 35 | 34 | 33 | 32 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 VA | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | VA | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | VA, bits [63:0]: Virtual address to use. No alignment restrictions apply to this VA. Executing DC CIGDVAC If EL0 access is enabled, when executed at EL0, the instruction may generate a Permission fault, subject to the constraints described in 'MMU faults generated by cache maintenance operations'. Execution of this instruction might require an address translation from VA to PA, and that translation might fault. For more information, see 'The data cache maintenance instruction (DC)'. This system instruction is an alias of the SYS instruction. Accesses to this instruction use the following encodings in the System instruction encoding space: DC CIGDVAC, (op0 = 0b01, op1 = 0b011, CRn = 0b0111, CRm = 0b1110, op2 = 0b101) ``` if !IsFeatureImplemented(FEAT_MTE) then Undefined(); elsif EffectivelyAtEL0NotInHost() then if !AArch64_CanTrapDC(CacheType_Data_Tag, CacheOp_CleanInvalidate, CacheOpScope_PoC) then ExecuteAsNOP(); elsif SCTLR_EL1().UCI == '0' then AArch64_SystemAccessTraptoEL1orEL2(0x18); elsif EL2Enabled() && HCR_EL2().TPCP == '1' then AArch64_SystemAccessTrap(EL2, 0x18); elsif EL2Enabled() && IsFeatureImplemented(FEAT_FGT) && (!HaveEL(EL3) || SCR_EL3().FGTEn == '1') && HFGITR_EL2().DCCIVAC == '1' then AArch64_SystemAccessTrap(EL2, 0x18); else if AArch64_TreatDCAsNOP(CacheType_Data_Tag, CacheOp_CleanInvalidate, CacheOpScope_PoC) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data_Tag, CacheOp_CleanInvalidate, CacheOpScope_PoC); end; end; elsif EffectivelyAtEL0InHost() then if !AArch64_CanTrapDC(CacheType_Data_Tag, CacheOp_CleanInvalidate, CacheOpScope_PoC) then ExecuteAsNOP(); elsif SCTLR_EL2().UCI == '0' then AArch64_SystemAccessTrap(EL2, 0x18); else if AArch64_TreatDCAsNOP(CacheType_Data_Tag, CacheOp_CleanInvalidate, CacheOpScope_PoC) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data_Tag, CacheOp_CleanInvalidate, CacheOpScope_PoC); end; end; elsif PSTATE.EL == EL1 then if !AArch64_CanTrapDC(CacheType_Data_Tag, CacheOp_CleanInvalidate, CacheOpScope_PoC) then ExecuteAsNOP(); elsif EL2Enabled() && HCR_EL2().TPCP == '1' then AArch64_SystemAccessTrap(EL2, 0x18); elsif EL2Enabled() && IsFeatureImplemented(FEAT_FGT) && (!HaveEL(EL3) || SCR_EL3().FGTEn == '1') && HFGITR_EL2().DCCIVAC == '1' then AArch64_SystemAccessTrap(EL2, 0x18); else if AArch64_TreatDCAsNOP(CacheType_Data_Tag, CacheOp_CleanInvalidate, CacheOpScope_PoC) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data_Tag, CacheOp_CleanInvalidate, CacheOpScope_PoC); end; end; elsif PSTATE.EL == EL2 then if !AArch64_CanTrapDC(CacheType_Data_Tag, CacheOp_CleanInvalidate, CacheOpScope_PoC) then ExecuteAsNOP(); else if AArch64_TreatDCAsNOP(CacheType_Data_Tag, CacheOp_CleanInvalidate, CacheOpScope_PoC) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data_Tag, CacheOp_CleanInvalidate, CacheOpScope_PoC); end; end; elsif PSTATE.EL == EL3 then if AArch64_TreatDCAsNOP(CacheType_Data_Tag, CacheOp_CleanInvalidate, CacheOpScope_PoC) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data_Tag, CacheOp_CleanInvalidate, CacheOpScope_PoC); end; end; ``` ---- DC CIGDVAOC Clean and Invalidate of Data and Allocation Tags by VA to Outer Cache level Clean and invalidate of data and Allocation Tags in data cache by address to Outer cache level. If FEAT_MTE2 is not implemented, then this instruction behaves as a DC CIVAOC. Configuration This instruction is present only when FEAT_OCCMO is implemented, FEAT_MTE is implemented, and FEAT_AA64 is implemented. Otherwise, direct accesses to DC CIGDVAOC are UNDEFINED. Attributes DC CIGDVAOC is a 64-bit System instruction. Field descriptions 63 | 62 | 61 | 60 | 59 | 58 | 57 | 56 | 55 | 54 | 53 | 52 | 51 | 50 | 49 | 48 | 47 | 46 | 45 | 44 | 43 | 42 | 41 | 40 | 39 | 38 | 37 | 36 | 35 | 34 | 33 | 32 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 VA | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | VA | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | VA, bits [63:0]: Virtual address to use. No alignment restrictions apply to this VA. Executing DC CIGDVAOC If EL0 access is enabled, when executed at EL0, the instruction may generate a Permission fault, subject to the constraints described in 'MMU faults generated by cache maintenance operations'. Execution of this instruction might require an address translation from VA to PA, and that translation might fault. For more information, see 'The data cache maintenance instruction (DC)'. This system instruction is an alias of the SYS instruction. Accesses to this instruction use the following encodings in the System instruction encoding space: DC CIGDVAOC, (op0 = 0b01, op1 = 0b011, CRn = 0b0111, CRm = 0b1111, op2 = 0b111) ``` if !(IsFeatureImplemented(FEAT_OCCMO) && IsFeatureImplemented(FEAT_MTE) && IsFeatureImplemented(FEAT_AA64)) then Undefined(); elsif EffectivelyAtEL0NotInHost() then if !AArch64_CanTrapDC(CacheType_Data_Tag, CacheOp_CleanInvalidate, CacheOpScope_OuterCache) then ExecuteAsNOP(); elsif SCTLR_EL1().UCI == '0' then AArch64_SystemAccessTraptoEL1orEL2(0x18); elsif EL2Enabled() && HCR_EL2().TPCP == '1' then AArch64_SystemAccessTrap(EL2, 0x18); elsif EL2Enabled() && IsFeatureImplemented(FEAT_FGT) && (!HaveEL(EL3) || SCR_EL3().FGTEn == '1') && HFGITR_EL2().DCCIVAC == '1' then AArch64_SystemAccessTrap(EL2, 0x18); else if AArch64_TreatDCAsNOP(CacheType_Data_Tag, CacheOp_CleanInvalidate, CacheOpScope_OuterCache) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data_Tag, CacheOp_CleanInvalidate, CacheOpScope_OuterCache); end; end; elsif EffectivelyAtEL0InHost() then if !AArch64_CanTrapDC(CacheType_Data_Tag, CacheOp_CleanInvalidate, CacheOpScope_OuterCache) then ExecuteAsNOP(); elsif SCTLR_EL2().UCI == '0' then AArch64_SystemAccessTrap(EL2, 0x18); else if AArch64_TreatDCAsNOP(CacheType_Data_Tag, CacheOp_CleanInvalidate, CacheOpScope_OuterCache) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data_Tag, CacheOp_CleanInvalidate, CacheOpScope_OuterCache); end; end; elsif PSTATE.EL == EL1 then if !AArch64_CanTrapDC(CacheType_Data_Tag, CacheOp_CleanInvalidate, CacheOpScope_OuterCache) then ExecuteAsNOP(); elsif EL2Enabled() && HCR_EL2().TPCP == '1' then AArch64_SystemAccessTrap(EL2, 0x18); elsif EL2Enabled() && IsFeatureImplemented(FEAT_FGT) && (!HaveEL(EL3) || SCR_EL3().FGTEn == '1') && HFGITR_EL2().DCCIVAC == '1' then AArch64_SystemAccessTrap(EL2, 0x18); else if AArch64_TreatDCAsNOP(CacheType_Data_Tag, CacheOp_CleanInvalidate, CacheOpScope_OuterCache) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data_Tag, CacheOp_CleanInvalidate, CacheOpScope_OuterCache); end; end; elsif PSTATE.EL == EL2 then if !AArch64_CanTrapDC(CacheType_Data_Tag, CacheOp_CleanInvalidate, CacheOpScope_OuterCache) then ExecuteAsNOP(); else if AArch64_TreatDCAsNOP(CacheType_Data_Tag, CacheOp_CleanInvalidate, CacheOpScope_OuterCache) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data_Tag, CacheOp_CleanInvalidate, CacheOpScope_OuterCache); end; end; elsif PSTATE.EL == EL3 then if AArch64_TreatDCAsNOP(CacheType_Data_Tag, CacheOp_CleanInvalidate, CacheOpScope_OuterCache) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data_Tag, CacheOp_CleanInvalidate, CacheOpScope_OuterCache); end; end; ``` ---- DC CIGDVAPS Clean and Invalidate of Data and Allocation Tags by VA to PoPS Clean and Invalidate data and Allocation Tags in data cache by virtual address to the Point of Physical Storage. This instruction cleans and invalidates all copies of the Location specified in the Xt argument, irrespective of any MECID associated with the Location. Memory accesses resulting from the Clean operation use the MECID associated with the cache entry. Configuration This instruction is present only when FEAT_PoPS is implemented, FEAT_MTE2 is implemented, and FEAT_AA64 is implemented. Otherwise, direct accesses to DC CIGDVAPS are UNDEFINED. Attributes DC CIGDVAPS is a 64-bit System instruction. Field descriptions 63 | 62 | 61 | 60 | 59 | 58 | 57 | 56 | 55 | 54 | 53 | 52 | 51 | 50 | 49 | 48 | 47 | 46 | 45 | 44 | 43 | 42 | 41 | 40 | 39 | 38 | 37 | 36 | 35 | 34 | 33 | 32 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 VA | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | VA | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | VA, bits [63:0]: Virtual address to use. No alignment restrictions apply to this VA. Executing DC CIGDVAPS Execution of this instruction might require an address translation from VA to PA, and that translation might fault. For more information, see 'The data cache maintenance instruction (DC)'. This system instruction is an alias of the SYS instruction. Accesses to this instruction use the following encodings in the System instruction encoding space: DC CIGDVAPS, (op0 = 0b01, op1 = 0b000, CRn = 0b0111, CRm = 0b1111, op2 = 0b101) ``` if !(IsFeatureImplemented(FEAT_PoPS) && IsFeatureImplemented(FEAT_MTE2) && IsFeatureImplemented(FEAT_AA64)) then Undefined(); elsif PSTATE.EL == EL0 then Undefined(); elsif PSTATE.EL == EL1 then if EL2Enabled() && HCR_EL2().TPCP == '1' then AArch64_SystemAccessTrap(EL2, 0x18); elsif EL2Enabled() && IsFeatureImplemented(FEAT_FGT2) && ((HaveEL(EL3) && SCR_EL3().FGTEn2 == '0') || HFGITR2_EL2().nDCCIVAPS == '0') then AArch64_SystemAccessTrap(EL2, 0x18); else AArch64_DC(X{64}(t), CacheType_Data_Tag, CacheOp_CleanInvalidate, CacheOpScope_PoPS); end; elsif PSTATE.EL == EL2 then AArch64_DC(X{64}(t), CacheType_Data_Tag, CacheOp_CleanInvalidate, CacheOpScope_PoPS); elsif PSTATE.EL == EL3 then AArch64_DC(X{64}(t), CacheType_Data_Tag, CacheOp_CleanInvalidate, CacheOpScope_PoPS); end; ``` ---- DC CIGSW Clean and Invalidate of Allocation Tags by Set/Way Clean and Invalidate Allocation Tags in data cache by set/way. Configuration This instruction is present only when FEAT_MTE2 is implemented. Otherwise, direct accesses to DC CIGSW are UNDEFINED. Attributes DC CIGSW is a 64-bit System instruction. Field descriptions 63 | 62 | 61 | 60 | 59 | 58 | 57 | 56 | 55 | 54 | 53 | 52 | 51 | 50 | 49 | 48 | 47 | 46 | 45 | 44 | 43 | 42 | 41 | 40 | 39 | 38 | 37 | 36 | 35 | 34 | 33 | 32 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 RES0 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SetWay | | | | | | | | | | | | | | | | | | | | | | | | | | | | Level | | | RES0 Bits [63:32]: Reserved, RES0. SetWay, bits [31:4]: Contains two fields: - Way, bits[31:32-A], the number of the way to operate on. - Set, bits[B-1:L], the number of the set to operate on. Bits[L-1:4] are RES0. A = Log2(ASSOCIATIVITY), L = Log2(LINELEN), B = (L + S), S = Log2(NSETS). ASSOCIATIVITY, LINELEN (line length, in bytes), and NSETS (number of sets) have their usual meanings and are the values for the cache level being operated on. The values of A and S are rounded up to the next integer. Level, bits [3:1]: Cache level to operate on, minus 1. For example, this field is 0 for operations on L1 cache, or 1 for operations on L2 cache. Bit [0]: Reserved, RES0. Executing DC CIGSW If this instruction is executed with a set, way or level argument that is larger than the value supported by the implementation then the behavior is CONSTRAINED UNPREDICTABLE and one of the following occurs: - The instruction is UNDEFINED. The instruction performs cache maintenance on one of: - No cache lines. - A single arbitrary cache line. - Multiple arbitrary cache lines. This system instruction is an alias of the SYS instruction. Accesses to this instruction use the following encodings in the System instruction encoding space: DC CIGSW, (op0 = 0b01, op1 = 0b000, CRn = 0b0111, CRm = 0b1110, op2 = 0b100) ``` if !IsFeatureImplemented(FEAT_MTE2) then Undefined(); elsif PSTATE.EL == EL0 then Undefined(); elsif PSTATE.EL == EL1 then if EL2Enabled() && HCR_EL2().TSW == '1' then AArch64_SystemAccessTrap(EL2, 0x18); elsif EL2Enabled() && IsFeatureImplemented(FEAT_FGT) && (!HaveEL(EL3) || SCR_EL3().FGTEn == '1') && HFGITR_EL2().DCCISW == '1' then AArch64_SystemAccessTrap(EL2, 0x18); else AArch64_DC(X{64}(t), CacheType_Tag, CacheOp_CleanInvalidate, CacheOpScope_SetWay); end; elsif PSTATE.EL == EL2 then AArch64_DC(X{64}(t), CacheType_Tag, CacheOp_CleanInvalidate, CacheOpScope_SetWay); elsif PSTATE.EL == EL3 then AArch64_DC(X{64}(t), CacheType_Tag, CacheOp_CleanInvalidate, CacheOpScope_SetWay); end; ``` ------------------------------------------------------------------------------ Page 1 of 1. End of thread.