[Writeup] AArch64 system register pages: part 3 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/40 ------------------------------------------------------------------------------ #60 admin, 2026-11-28 17:33 UTC [OP] Source: https://romdump.net/raw/60 Archived Arm source pages for the AArch64 system register pages. Part 3 of 18. This part covers DC CIGVAC through DC GVA. DC CIGVAC Clean and Invalidate of Allocation Tags by VA to PoC Clean and Invalidate 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 CIGVAC are UNDEFINED. Attributes DC CIGVAC 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 CIGVAC 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 CIGVAC, (op0 = 0b01, op1 = 0b011, CRn = 0b0111, CRm = 0b1110, op2 = 0b011) ``` if !IsFeatureImplemented(FEAT_MTE) then Undefined(); elsif EffectivelyAtEL0NotInHost() then if !AArch64_CanTrapDC(CacheType_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_Tag, CacheOp_CleanInvalidate, CacheOpScope_PoC) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Tag, CacheOp_CleanInvalidate, CacheOpScope_PoC); end; end; elsif EffectivelyAtEL0InHost() then if !AArch64_CanTrapDC(CacheType_Tag, CacheOp_CleanInvalidate, CacheOpScope_PoC) then ExecuteAsNOP(); elsif SCTLR_EL2().UCI == '0' then AArch64_SystemAccessTrap(EL2, 0x18); else if AArch64_TreatDCAsNOP(CacheType_Tag, CacheOp_CleanInvalidate, CacheOpScope_PoC) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Tag, CacheOp_CleanInvalidate, CacheOpScope_PoC); end; end; elsif PSTATE.EL == EL1 then if !AArch64_CanTrapDC(CacheType_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_Tag, CacheOp_CleanInvalidate, CacheOpScope_PoC) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Tag, CacheOp_CleanInvalidate, CacheOpScope_PoC); end; end; elsif PSTATE.EL == EL2 then if !AArch64_CanTrapDC(CacheType_Tag, CacheOp_CleanInvalidate, CacheOpScope_PoC) then ExecuteAsNOP(); else if AArch64_TreatDCAsNOP(CacheType_Tag, CacheOp_CleanInvalidate, CacheOpScope_PoC) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Tag, CacheOp_CleanInvalidate, CacheOpScope_PoC); end; end; elsif PSTATE.EL == EL3 then if AArch64_TreatDCAsNOP(CacheType_Tag, CacheOp_CleanInvalidate, CacheOpScope_PoC) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Tag, CacheOp_CleanInvalidate, CacheOpScope_PoC); end; end; ``` ---- DC CISW Data or unified Cache line Clean and Invalidate by Set/Way Clean and Invalidate data cache by set/way. Configuration AArch64 System instruction DC CISW performs the same function as AArch32 System instruction DCCISW. This instruction is present only when FEAT_AA64 is implemented. Otherwise, direct accesses to DC CISW are UNDEFINED. Attributes DC CISW 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 CISW 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 CISW, (op0 = 0b01, op1 = 0b000, CRn = 0b0111, CRm = 0b1110, op2 = 0b010) ``` if !IsFeatureImplemented(FEAT_AA64) 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, CacheOp_CleanInvalidate, CacheOpScope_SetWay); end; elsif PSTATE.EL == EL2 then AArch64_DC(X{64}(t), CacheType_Data, CacheOp_CleanInvalidate, CacheOpScope_SetWay); elsif PSTATE.EL == EL3 then AArch64_DC(X{64}(t), CacheType_Data, CacheOp_CleanInvalidate, CacheOpScope_SetWay); end; ``` ---- DC CIVAC Data or unified Cache line Clean and Invalidate by VA to PoC Clean and Invalidate data cache by address to Point of Coherency. Configuration AArch64 System instruction DC CIVAC performs the same function as AArch32 System instruction DCCIMVAC. This instruction is present only when FEAT_AA64 is implemented. Otherwise, direct accesses to DC CIVAC are UNDEFINED. Attributes DC CIVAC 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 CIVAC 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 CIVAC, (op0 = 0b01, op1 = 0b011, CRn = 0b0111, CRm = 0b1110, op2 = 0b001) ``` if !IsFeatureImplemented(FEAT_AA64) then Undefined(); elsif EffectivelyAtEL0NotInHost() then if !AArch64_CanTrapDC(CacheType_Data, 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, CacheOp_CleanInvalidate, CacheOpScope_PoC) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data, CacheOp_CleanInvalidate, CacheOpScope_PoC); end; end; elsif EffectivelyAtEL0InHost() then if !AArch64_CanTrapDC(CacheType_Data, CacheOp_CleanInvalidate, CacheOpScope_PoC) then ExecuteAsNOP(); elsif SCTLR_EL2().UCI == '0' then AArch64_SystemAccessTrap(EL2, 0x18); else if AArch64_TreatDCAsNOP(CacheType_Data, CacheOp_CleanInvalidate, CacheOpScope_PoC) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data, CacheOp_CleanInvalidate, CacheOpScope_PoC); end; end; elsif PSTATE.EL == EL1 then if !AArch64_CanTrapDC(CacheType_Data, 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, CacheOp_CleanInvalidate, CacheOpScope_PoC) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data, CacheOp_CleanInvalidate, CacheOpScope_PoC); end; end; elsif PSTATE.EL == EL2 then if !AArch64_CanTrapDC(CacheType_Data, CacheOp_CleanInvalidate, CacheOpScope_PoC) then ExecuteAsNOP(); else if AArch64_TreatDCAsNOP(CacheType_Data, CacheOp_CleanInvalidate, CacheOpScope_PoC) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data, CacheOp_CleanInvalidate, CacheOpScope_PoC); end; end; elsif PSTATE.EL == EL3 then if AArch64_TreatDCAsNOP(CacheType_Data, CacheOp_CleanInvalidate, CacheOpScope_PoC) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data, CacheOp_CleanInvalidate, CacheOpScope_PoC); end; end; ``` ---- DC CIVAOC Data or unified Cache line Clean and Invalidate by VA to Outer Cache level Clean and Invalidate data cache by address to Outer cache level. Configuration This instruction is present only when FEAT_OCCMO is implemented and FEAT_AA64 is implemented. Otherwise, direct accesses to DC CIVAOC are UNDEFINED. Attributes DC CIVAOC 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 CIVAOC 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 CIVAOC, (op0 = 0b01, op1 = 0b011, CRn = 0b0111, CRm = 0b1111, op2 = 0b000) ``` if !(IsFeatureImplemented(FEAT_OCCMO) && IsFeatureImplemented(FEAT_AA64)) then Undefined(); elsif EffectivelyAtEL0NotInHost() then if !AArch64_CanTrapDC(CacheType_Data, 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, CacheOp_CleanInvalidate, CacheOpScope_OuterCache) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data, CacheOp_CleanInvalidate, CacheOpScope_OuterCache); end; end; elsif EffectivelyAtEL0InHost() then if !AArch64_CanTrapDC(CacheType_Data, CacheOp_CleanInvalidate, CacheOpScope_OuterCache) then ExecuteAsNOP(); elsif SCTLR_EL2().UCI == '0' then AArch64_SystemAccessTrap(EL2, 0x18); else if AArch64_TreatDCAsNOP(CacheType_Data, CacheOp_CleanInvalidate, CacheOpScope_OuterCache) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data, CacheOp_CleanInvalidate, CacheOpScope_OuterCache); end; end; elsif PSTATE.EL == EL1 then if !AArch64_CanTrapDC(CacheType_Data, 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, CacheOp_CleanInvalidate, CacheOpScope_OuterCache) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data, CacheOp_CleanInvalidate, CacheOpScope_OuterCache); end; end; elsif PSTATE.EL == EL2 then if !AArch64_CanTrapDC(CacheType_Data, CacheOp_CleanInvalidate, CacheOpScope_OuterCache) then ExecuteAsNOP(); else if AArch64_TreatDCAsNOP(CacheType_Data, CacheOp_CleanInvalidate, CacheOpScope_OuterCache) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data, CacheOp_CleanInvalidate, CacheOpScope_OuterCache); end; end; elsif PSTATE.EL == EL3 then if AArch64_TreatDCAsNOP(CacheType_Data, CacheOp_CleanInvalidate, CacheOpScope_OuterCache) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data, CacheOp_CleanInvalidate, CacheOpScope_OuterCache); end; end; ``` ---- DC CIVAPS Clean and Invalidate of Data by VA to PoPS Clean and Invalidate data 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 and FEAT_AA64 is implemented. Otherwise, direct accesses to DC CIVAPS are UNDEFINED. Attributes DC CIVAPS 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 CIVAPS 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 CIVAPS, (op0 = 0b01, op1 = 0b000, CRn = 0b0111, CRm = 0b1111, op2 = 0b001) ``` if !(IsFeatureImplemented(FEAT_PoPS) && 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, CacheOp_CleanInvalidate, CacheOpScope_PoPS); end; elsif PSTATE.EL == EL2 then AArch64_DC(X{64}(t), CacheType_Data, CacheOp_CleanInvalidate, CacheOpScope_PoPS); elsif PSTATE.EL == EL3 then AArch64_DC(X{64}(t), CacheType_Data, CacheOp_CleanInvalidate, CacheOpScope_PoPS); end; ``` ---- DC CSW Data or unified Cache line Clean by Set/Way Clean data cache by set/way. Configuration AArch64 System instruction DC CSW performs the same function as AArch32 System instruction DCCSW. This instruction is present only when FEAT_AA64 is implemented. Otherwise, direct accesses to DC CSW are UNDEFINED. Attributes DC CSW 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 CSW 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 CSW, (op0 = 0b01, op1 = 0b000, CRn = 0b0111, CRm = 0b1010, op2 = 0b010) ``` if !IsFeatureImplemented(FEAT_AA64) then Undefined(); elsif PSTATE.EL == EL0 then Undefined(); elsif PSTATE.EL == EL1 then if EL2Enabled() && HCR_EL2().TSW == '1' then AArch64_SystemAccessTrap(EL2, 0x18); elsif EL2Enabled() && IsFeatureImplemented(FEAT_FGT) && (!HaveEL(EL3) || SCR_EL3().FGTEn == '1') && HFGITR_EL2().DCCSW == '1' then AArch64_SystemAccessTrap(EL2, 0x18); else AArch64_DC(X{64}(t), CacheType_Data, CacheOp_Clean, CacheOpScope_SetWay); end; elsif PSTATE.EL == EL2 then AArch64_DC(X{64}(t), CacheType_Data, CacheOp_Clean, CacheOpScope_SetWay); elsif PSTATE.EL == EL3 then AArch64_DC(X{64}(t), CacheType_Data, CacheOp_Clean, CacheOpScope_SetWay); end; ``` ---- DC CVAC Data or unified Cache line Clean by VA to PoC Clean data cache by address to Point of Coherency. Configuration AArch64 System instruction DC CVAC performs the same function as AArch32 System instruction DCCMVAC. This instruction is present only when FEAT_AA64 is implemented. Otherwise, direct accesses to DC CVAC are UNDEFINED. Attributes DC CVAC 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 CVAC 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 CVAC, (op0 = 0b01, op1 = 0b011, CRn = 0b0111, CRm = 0b1010, op2 = 0b001) ``` if !IsFeatureImplemented(FEAT_AA64) then Undefined(); elsif EffectivelyAtEL0NotInHost() then if !AArch64_CanTrapDC(CacheType_Data, 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, CacheOp_Clean, CacheOpScope_PoC) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data, CacheOp_Clean, CacheOpScope_PoC); end; end; elsif EffectivelyAtEL0InHost() then if !AArch64_CanTrapDC(CacheType_Data, CacheOp_Clean, CacheOpScope_PoC) then ExecuteAsNOP(); elsif SCTLR_EL2().UCI == '0' then AArch64_SystemAccessTrap(EL2, 0x18); else if AArch64_TreatDCAsNOP(CacheType_Data, CacheOp_Clean, CacheOpScope_PoC) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data, CacheOp_Clean, CacheOpScope_PoC); end; end; elsif PSTATE.EL == EL1 then if !AArch64_CanTrapDC(CacheType_Data, 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, CacheOp_Clean, CacheOpScope_PoC) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data, CacheOp_Clean, CacheOpScope_PoC); end; end; elsif PSTATE.EL == EL2 then if !AArch64_CanTrapDC(CacheType_Data, CacheOp_Clean, CacheOpScope_PoC) then ExecuteAsNOP(); else if AArch64_TreatDCAsNOP(CacheType_Data, CacheOp_Clean, CacheOpScope_PoC) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data, CacheOp_Clean, CacheOpScope_PoC); end; end; elsif PSTATE.EL == EL3 then if AArch64_TreatDCAsNOP(CacheType_Data, CacheOp_Clean, CacheOpScope_PoC) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data, CacheOp_Clean, CacheOpScope_PoC); end; end; ``` ---- DC CVADP Data or unified Cache line Clean by VA to PoDP Clean 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 CVAP. Configuration This instruction is present only when FEAT_DPB2 is implemented and FEAT_AA64 is implemented. Otherwise, direct accesses to DC CVADP are UNDEFINED. Attributes DC CVADP 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 CVADP 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 CVADP, (op0 = 0b01, op1 = 0b011, CRn = 0b0111, CRm = 0b1101, op2 = 0b001) ``` if !(IsFeatureImplemented(FEAT_DPB2) && IsFeatureImplemented(FEAT_AA64)) then Undefined(); elsif EffectivelyAtEL0NotInHost() then if !AArch64_CanTrapDC(CacheType_Data, 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, CacheOp_Clean, CacheOpScope_PoDP) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data, CacheOp_Clean, CacheOpScope_PoDP); end; end; elsif EffectivelyAtEL0InHost() then if !AArch64_CanTrapDC(CacheType_Data, CacheOp_Clean, CacheOpScope_PoDP) then ExecuteAsNOP(); elsif SCTLR_EL2().UCI == '0' then AArch64_SystemAccessTrap(EL2, 0x18); else if AArch64_TreatDCAsNOP(CacheType_Data, CacheOp_Clean, CacheOpScope_PoDP) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data, CacheOp_Clean, CacheOpScope_PoDP); end; end; elsif PSTATE.EL == EL1 then if !AArch64_CanTrapDC(CacheType_Data, 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, CacheOp_Clean, CacheOpScope_PoDP) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data, CacheOp_Clean, CacheOpScope_PoDP); end; end; elsif PSTATE.EL == EL2 then if !AArch64_CanTrapDC(CacheType_Data, CacheOp_Clean, CacheOpScope_PoDP) then ExecuteAsNOP(); else if AArch64_TreatDCAsNOP(CacheType_Data, CacheOp_Clean, CacheOpScope_PoDP) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data, CacheOp_Clean, CacheOpScope_PoDP); end; end; elsif PSTATE.EL == EL3 then if AArch64_TreatDCAsNOP(CacheType_Data, CacheOp_Clean, CacheOpScope_PoDP) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data, CacheOp_Clean, CacheOpScope_PoDP); end; end; ``` ---- DC CVAOC Data or unified Cache line Clean by VA to Outer Cache level Clean data cache by address to Outer cache level. Configuration This instruction is present only when FEAT_OCCMO is implemented and FEAT_AA64 is implemented. Otherwise, direct accesses to DC CVAOC are UNDEFINED. Attributes DC CVAOC 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 CVAOC 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 CVAOC, (op0 = 0b01, op1 = 0b011, CRn = 0b0111, CRm = 0b1011, op2 = 0b000) ``` if !(IsFeatureImplemented(FEAT_OCCMO) && IsFeatureImplemented(FEAT_AA64)) then Undefined(); elsif EffectivelyAtEL0NotInHost() then if !AArch64_CanTrapDC(CacheType_Data, 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, CacheOp_Clean, CacheOpScope_OuterCache) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data, CacheOp_Clean, CacheOpScope_OuterCache); end; end; elsif EffectivelyAtEL0InHost() then if !AArch64_CanTrapDC(CacheType_Data, CacheOp_Clean, CacheOpScope_OuterCache) then ExecuteAsNOP(); elsif SCTLR_EL2().UCI == '0' then AArch64_SystemAccessTrap(EL2, 0x18); else if AArch64_TreatDCAsNOP(CacheType_Data, CacheOp_Clean, CacheOpScope_OuterCache) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data, CacheOp_Clean, CacheOpScope_OuterCache); end; end; elsif PSTATE.EL == EL1 then if !AArch64_CanTrapDC(CacheType_Data, 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, CacheOp_Clean, CacheOpScope_OuterCache) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data, CacheOp_Clean, CacheOpScope_OuterCache); end; end; elsif PSTATE.EL == EL2 then if !AArch64_CanTrapDC(CacheType_Data, CacheOp_Clean, CacheOpScope_OuterCache) then ExecuteAsNOP(); else if AArch64_TreatDCAsNOP(CacheType_Data, CacheOp_Clean, CacheOpScope_OuterCache) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data, CacheOp_Clean, CacheOpScope_OuterCache); end; end; elsif PSTATE.EL == EL3 then if AArch64_TreatDCAsNOP(CacheType_Data, CacheOp_Clean, CacheOpScope_OuterCache) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data, CacheOp_Clean, CacheOpScope_OuterCache); end; end; ``` ---- DC CVAP Data or unified Cache line Clean by VA to PoP Clean 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 CVAC. Configuration This instruction is present only when FEAT_DPB is implemented and FEAT_AA64 is implemented. Otherwise, direct accesses to DC CVAP are UNDEFINED. Attributes DC CVAP 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 CVAP 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 CVAP, (op0 = 0b01, op1 = 0b011, CRn = 0b0111, CRm = 0b1100, op2 = 0b001) ``` if !(IsFeatureImplemented(FEAT_DPB) && IsFeatureImplemented(FEAT_AA64)) then Undefined(); elsif EffectivelyAtEL0NotInHost() then if !AArch64_CanTrapDC(CacheType_Data, 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, CacheOp_Clean, CacheOpScope_PoP) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data, CacheOp_Clean, CacheOpScope_PoP); end; end; elsif EffectivelyAtEL0InHost() then if !AArch64_CanTrapDC(CacheType_Data, CacheOp_Clean, CacheOpScope_PoP) then ExecuteAsNOP(); elsif SCTLR_EL2().UCI == '0' then AArch64_SystemAccessTrap(EL2, 0x18); else if AArch64_TreatDCAsNOP(CacheType_Data, CacheOp_Clean, CacheOpScope_PoP) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data, CacheOp_Clean, CacheOpScope_PoP); end; end; elsif PSTATE.EL == EL1 then if !AArch64_CanTrapDC(CacheType_Data, 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, CacheOp_Clean, CacheOpScope_PoP) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data, CacheOp_Clean, CacheOpScope_PoP); end; end; elsif PSTATE.EL == EL2 then if !AArch64_CanTrapDC(CacheType_Data, CacheOp_Clean, CacheOpScope_PoP) then ExecuteAsNOP(); else if AArch64_TreatDCAsNOP(CacheType_Data, CacheOp_Clean, CacheOpScope_PoP) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data, CacheOp_Clean, CacheOpScope_PoP); end; end; elsif PSTATE.EL == EL3 then if AArch64_TreatDCAsNOP(CacheType_Data, CacheOp_Clean, CacheOpScope_PoP) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data, CacheOp_Clean, CacheOpScope_PoP); end; end; ``` ---- DC CVAU Data or unified Cache line Clean by VA to PoU Clean data cache by address to Point of Unification. Configuration AArch64 System instruction DC CVAU performs the same function as AArch32 System instruction DCCMVAU. This instruction is present only when FEAT_AA64 is implemented. Otherwise, direct accesses to DC CVAU are UNDEFINED. Attributes DC CVAU 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 CVAU 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 CVAU, (op0 = 0b01, op1 = 0b011, CRn = 0b0111, CRm = 0b1011, op2 = 0b001) ``` if !IsFeatureImplemented(FEAT_AA64) then Undefined(); elsif EffectivelyAtEL0NotInHost() then if !AArch64_CanTrapDC(CacheType_Data, CacheOp_Clean, CacheOpScope_PoU) then ExecuteAsNOP(); elsif SCTLR_EL1().UCI == '0' then AArch64_SystemAccessTraptoEL1orEL2(0x18); elsif EL2Enabled() && HCR_EL2().TPU == '1' then AArch64_SystemAccessTrap(EL2, 0x18); elsif EL2Enabled() && HCR_EL2().TOCU == '1' then AArch64_SystemAccessTrap(EL2, 0x18); elsif EL2Enabled() && IsFeatureImplemented(FEAT_FGT) && (!HaveEL(EL3) || SCR_EL3().FGTEn == '1') && HFGITR_EL2().DCCVAU == '1' then AArch64_SystemAccessTrap(EL2, 0x18); else if AArch64_TreatDCAsNOP(CacheType_Data, CacheOp_Clean, CacheOpScope_PoU) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data, CacheOp_Clean, CacheOpScope_PoU); end; end; elsif EffectivelyAtEL0InHost() then if !AArch64_CanTrapDC(CacheType_Data, CacheOp_Clean, CacheOpScope_PoU) then ExecuteAsNOP(); elsif SCTLR_EL2().UCI == '0' then AArch64_SystemAccessTrap(EL2, 0x18); else if AArch64_TreatDCAsNOP(CacheType_Data, CacheOp_Clean, CacheOpScope_PoU) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data, CacheOp_Clean, CacheOpScope_PoU); end; end; elsif PSTATE.EL == EL1 then if !AArch64_CanTrapDC(CacheType_Data, CacheOp_Clean, CacheOpScope_PoU) then ExecuteAsNOP(); elsif EL2Enabled() && HCR_EL2().TPU == '1' then AArch64_SystemAccessTrap(EL2, 0x18); elsif EL2Enabled() && HCR_EL2().TOCU == '1' then AArch64_SystemAccessTrap(EL2, 0x18); elsif EL2Enabled() && IsFeatureImplemented(FEAT_FGT) && (!HaveEL(EL3) || SCR_EL3().FGTEn == '1') && HFGITR_EL2().DCCVAU == '1' then AArch64_SystemAccessTrap(EL2, 0x18); else if AArch64_TreatDCAsNOP(CacheType_Data, CacheOp_Clean, CacheOpScope_PoU) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data, CacheOp_Clean, CacheOpScope_PoU); end; end; elsif PSTATE.EL == EL2 then if !AArch64_CanTrapDC(CacheType_Data, CacheOp_Clean, CacheOpScope_PoU) then ExecuteAsNOP(); else if AArch64_TreatDCAsNOP(CacheType_Data, CacheOp_Clean, CacheOpScope_PoU) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data, CacheOp_Clean, CacheOpScope_PoU); end; end; elsif PSTATE.EL == EL3 then if AArch64_TreatDCAsNOP(CacheType_Data, CacheOp_Clean, CacheOpScope_PoU) then ExecuteAsNOP(); else AArch64_DC(X{64}(t), CacheType_Data, CacheOp_Clean, CacheOpScope_PoU); end; end; ``` ---- DC GBVA Data Cache set Allocation Tag block by VA Write a value to the Allocation Tags of a naturally aligned block of N bytes, where the size of N is identified in DCZID_EL0.TBS. The Allocation Tag used is determined by the input address. This writes tags whether they are in part of a data cache or a separate tag cache. Configuration This instruction is present only when FEAT_MTETC is implemented. Otherwise, direct accesses to DC GBVA are UNDEFINED. Attributes DC GBVA 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. There is no alignment restriction on the address within the block of N bytes that is used. Executing DC GBVA When this instruction is executed, it can generate memory faults or watchpoints which are prioritized in the same way as other memory-related faults or watchpoints. If a synchronous Data Abort fault or a watchpoint is generated, the CM bit in the ESR_ELx.ISS field is not set. For a DC GBVA instruction executed to any type of Device memory, it is CONSTRAINED UNPREDICTABLE whether it generates an Alignment Fault determined by the memory type. Allocation tags at the specified addresses are not modified. This instruction applies to Normal memory regardless of cacheability attributes. This instruction behaves as a set of stores to each Allocation Tag within the block being accessed, and so it: - Generates a Permission fault if the translation system does not permit writes to the locations. - Requires the same considerations for ordering and the management of coherency as any other store instructions. 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 GBVA, (op0 = 0b01, op1 = 0b011, CRn = 0b0111, CRm = 0b0100, op2 = 0b111) ``` if !IsFeatureImplemented(FEAT_MTETC) then Undefined(); elsif PSTATE.EL == EL0 then if EffectivelyAtEL0NotInHost() && SCTLR_EL1().DZE == '0' then AArch64_SystemAccessTraptoEL1orEL2(0x18); elsif EL2Enabled() && EffectivelyAtEL0NotInHost() && HCR_EL2().TDZ == '1' then AArch64_SystemAccessTrap(EL2, 0x18); elsif EL2Enabled() && EffectivelyAtEL0NotInHost() && IsFeatureImplemented(FEAT_FGT2) && (!HaveEL(EL3) || SCR_EL3().FGTEn2 == '1') && HFGITR2_EL2().DCGBVA == '1' then AArch64_SystemAccessTrap(EL2, 0x18); elsif EffectivelyAtEL0InHost() && SCTLR_EL2().DZE == '0' then AArch64_SystemAccessTrap(EL2, 0x18); else AArch64_MemZero(X{64}(t), CacheType_TagWrite); end; elsif PSTATE.EL == EL1 then if EL2Enabled() && HCR_EL2().TDZ == '1' then AArch64_SystemAccessTrap(EL2, 0x18); elsif EL2Enabled() && IsFeatureImplemented(FEAT_FGT2) && (!HaveEL(EL3) || SCR_EL3().FGTEn2 == '1') && HFGITR2_EL2().DCGBVA == '1' then AArch64_SystemAccessTrap(EL2, 0x18); else AArch64_MemZero(X{64}(t), CacheType_TagWrite); end; elsif PSTATE.EL == EL2 then AArch64_MemZero(X{64}(t), CacheType_TagWrite); elsif PSTATE.EL == EL3 then AArch64_MemZero(X{64}(t), CacheType_TagWrite); end; ``` ---- DC GVA Data Cache set Allocation Tag by VA Write a value to the Allocation Tags of a naturally aligned block of N bytes, where the size of N is identified in DCZID_EL0. The Allocation Tag used is determined by the input address. Configuration This instruction is present only when FEAT_MTE is implemented. Otherwise, direct accesses to DC GVA are UNDEFINED. Attributes DC GVA 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. There is no alignment restriction on the address within the block of N bytes that is used. Executing DC GVA When this instruction is executed, it can generate memory faults or watchpoints which are prioritized in the same way as other memory-related faults or watchpoints. If a synchronous Data Abort fault or a watchpoint is generated, the CM bit in the ESR_ELx.ISS field is not set. For a DC GVA instruction executed to any type of Device memory, it is CONSTRAINED UNPREDICTABLE whether it generates an Alignment Fault determined by the memory type. Allocation tags at the specified addresses are not modified. This instruction applies to Normal memory regardless of cacheability attributes. This instruction behaves as a set of stores to each Allocation Tag within the block being accessed, and so it: - Generates a Permission fault if the translation system does not permit writes to the locations. - Requires the same considerations for ordering and the management of coherency as any other store instructions. 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 GVA, (op0 = 0b01, op1 = 0b011, CRn = 0b0111, CRm = 0b0100, op2 = 0b011) ``` if !IsFeatureImplemented(FEAT_MTE) then Undefined(); elsif PSTATE.EL == EL0 then if EffectivelyAtEL0NotInHost() && SCTLR_EL1().DZE == '0' then AArch64_SystemAccessTraptoEL1orEL2(0x18); elsif EL2Enabled() && EffectivelyAtEL0NotInHost() && HCR_EL2().TDZ == '1' then AArch64_SystemAccessTrap(EL2, 0x18); elsif EL2Enabled() && EffectivelyAtEL0NotInHost() && IsFeatureImplemented(FEAT_FGT) && (!HaveEL(EL3) || SCR_EL3().FGTEn == '1') && HFGITR_EL2().DCZVA == '1' then AArch64_SystemAccessTrap(EL2, 0x18); elsif EffectivelyAtEL0InHost() && SCTLR_EL2().DZE == '0' then AArch64_SystemAccessTrap(EL2, 0x18); else AArch64_MemZero(X{64}(t), CacheType_Tag); end; elsif PSTATE.EL == EL1 then if EL2Enabled() && HCR_EL2().TDZ == '1' then AArch64_SystemAccessTrap(EL2, 0x18); elsif EL2Enabled() && IsFeatureImplemented(FEAT_FGT) && (!HaveEL(EL3) || SCR_EL3().FGTEn == '1') && HFGITR_EL2().DCZVA == '1' then AArch64_SystemAccessTrap(EL2, 0x18); else AArch64_MemZero(X{64}(t), CacheType_Tag); end; elsif PSTATE.EL == EL2 then AArch64_MemZero(X{64}(t), CacheType_Tag); elsif PSTATE.EL == EL3 then AArch64_MemZero(X{64}(t), CacheType_Tag); end; ``` ------------------------------------------------------------------------------ Page 1 of 1. End of thread.