This forum was built by humans, for humans. AI was used exclusively for security auditing. The forum officially launched on November 24, 2026. Read more

romdump.net
romdump.net › Forum › Silicon & Architectures › AArch64 system register pages: part 4 of 18

Writeup AArch64 system register pages: part 4 of 18

started by admin

admin admin admingod mode Posts 116
Rep 505
Joined Nov 2026
2d ago OP #61

Archived Arm source pages for the AArch64 system register pages. Part 4 of 18. This part covers DC GZVA through Jon's Arm Reference.

DC GZVA

Data Cache set Allocation Tags and Zero by VA

Zero data and 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.

This instruction might have the poison-atomic property for IMPLEMENTATION DEFINED regions of physical memory.

Configuration

This instruction is present only when FEAT_MTE is implemented. Otherwise, direct accesses to DC GZVA are UNDEFINED.

Attributes

DC GZVA is a 64-bit System instruction.

Field descriptions

6362616059585756555453525150494847464544434241403938373635343332
313029282726252423222120191817161514131211109876543210
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 GZVA

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.

If the memory region being zeroed is any type of Device memory that does not support unaligned accesses, this instruction generates an alignment fault which is prioritized in the same way as other alignment faults that are determined by the memory type.

This instruction applies to Normal memory regardless of cacheability attributes.

This instruction behaves as a set of Stores to each byte and 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 GZVA, <Xt>

(op0 = 0b01, op1 = 0b011, CRn = 0b0111, CRm = 0b0100, op2 = 0b100)

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_Data_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_Data_Tag);    end;elsif PSTATE.EL == EL2 then    AArch64_MemZero(X{64}(t), CacheType_Data_Tag);elsif PSTATE.EL == EL3 then    AArch64_MemZero(X{64}(t), CacheType_Data_Tag);end;

DC IGDSW

Invalidate of Data and Allocation Tags by Set/Way

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 IGDSW are UNDEFINED.

Attributes

DC IGDSW is a 64-bit System instruction.

Field descriptions

6362616059585756555453525150494847464544434241403938373635343332
313029282726252423222120191817161514131211109876543210
RES0
SetWayLevelRES0

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 IGDSW

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 IGDSW, <Xt>

(op0 = 0b01, op1 = 0b000, CRn = 0b0111, CRm = 0b0110, 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().DCISW == '1' then        AArch64_SystemAccessTrap(EL2, 0x18);    else        AArch64_DC(X{64}(t), CacheType_Data_Tag, CacheOp_Invalidate, CacheOpScope_SetWay);    end;elsif PSTATE.EL == EL2 then    AArch64_DC(X{64}(t), CacheType_Data_Tag, CacheOp_Invalidate, CacheOpScope_SetWay);elsif PSTATE.EL == EL3 then    AArch64_DC(X{64}(t), CacheType_Data_Tag, CacheOp_Invalidate, CacheOpScope_SetWay);end;

DC IGDVAC

Invalidate of Data and Allocation Tags by VA to PoC

Invalidate data and Allocation Tags in data cache by address to Point of Coherency.

Configuration

This instruction is present only when FEAT_MTE2 is implemented. Otherwise, direct accesses to DC IGDVAC are UNDEFINED.

Attributes

DC IGDVAC is a 64-bit System instruction.

Field descriptions

6362616059585756555453525150494847464544434241403938373635343332
313029282726252423222120191817161514131211109876543210
VA
VA

VA, bits [63:0]:

Virtual address to use. No alignment restrictions apply to this VA.

Executing DC IGDVAC

When the instruction is executed, it can generate a watchpoint, which is prioritized in the same way as other watchpoints. If a watchpoint is generated, the CM bit in the ESR_ELx.ISS field is set to 1.

This instruction requires write access permission to the VA, otherwise it generates 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 IGDVAC, <Xt>

(op0 = 0b01, op1 = 0b000, CRn = 0b0111, CRm = 0b0110, op2 = 0b101)

if !IsFeatureImplemented(FEAT_MTE2) then    Undefined();elsif PSTATE.EL == EL0 then    Undefined();elsif PSTATE.EL == EL1 then    if !AArch64_CanTrapDC(CacheType_Data_Tag, CacheOp_Invalidate, 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().DCIVAC == '1' then        AArch64_SystemAccessTrap(EL2, 0x18);    else        if AArch64_TreatDCAsNOP(CacheType_Data_Tag, CacheOp_Invalidate, CacheOpScope_PoC) then            ExecuteAsNOP();        else            AArch64_DC(X{64}(t), CacheType_Data_Tag, CacheOp_Invalidate, CacheOpScope_PoC);        end;    end;elsif PSTATE.EL == EL2 then    if !AArch64_CanTrapDC(CacheType_Data_Tag, CacheOp_Invalidate, CacheOpScope_PoC) then        ExecuteAsNOP();    else        if AArch64_TreatDCAsNOP(CacheType_Data_Tag, CacheOp_Invalidate, CacheOpScope_PoC) then            ExecuteAsNOP();        else            AArch64_DC(X{64}(t), CacheType_Data_Tag, CacheOp_Invalidate, CacheOpScope_PoC);        end;    end;elsif PSTATE.EL == EL3 then    if AArch64_TreatDCAsNOP(CacheType_Data_Tag, CacheOp_Invalidate, CacheOpScope_PoC) then        ExecuteAsNOP();    else        AArch64_DC(X{64}(t), CacheType_Data_Tag, CacheOp_Invalidate, CacheOpScope_PoC);    end;end;

DC IGSW

Invalidate of Allocation Tags by Set/Way

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 IGSW are UNDEFINED.

Attributes

DC IGSW is a 64-bit System instruction.

Field descriptions

6362616059585756555453525150494847464544434241403938373635343332
313029282726252423222120191817161514131211109876543210
RES0
SetWayLevelRES0

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 IGSW

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 IGSW, <Xt>

(op0 = 0b01, op1 = 0b000, CRn = 0b0111, CRm = 0b0110, 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().DCISW == '1' then        AArch64_SystemAccessTrap(EL2, 0x18);    else        AArch64_DC(X{64}(t), CacheType_Tag, CacheOp_Invalidate, CacheOpScope_SetWay);    end;elsif PSTATE.EL == EL2 then    AArch64_DC(X{64}(t), CacheType_Tag, CacheOp_Invalidate, CacheOpScope_SetWay);elsif PSTATE.EL == EL3 then    AArch64_DC(X{64}(t), CacheType_Tag, CacheOp_Invalidate, CacheOpScope_SetWay);end;

DC IGVAC

Invalidate of Allocation Tags by VA to PoC

Invalidate Allocation Tags in data cache by address to Point of Coherency.

Configuration

This instruction is present only when FEAT_MTE2 is implemented. Otherwise, direct accesses to DC IGVAC are UNDEFINED.

Attributes

DC IGVAC is a 64-bit System instruction.

Field descriptions

6362616059585756555453525150494847464544434241403938373635343332
313029282726252423222120191817161514131211109876543210
VA
VA

VA, bits [63:0]:

Virtual address to use. No alignment restrictions apply to this VA.

Executing DC IGVAC

When the instruction is executed, it can generate a watchpoint, which is prioritized in the same way as other watchpoints. If a watchpoint is generated, the CM bit in the ESR_ELx.ISS field is set to 1.

This instruction requires write access permission to the VA, otherwise it generates 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 IGVAC, <Xt>

(op0 = 0b01, op1 = 0b000, CRn = 0b0111, CRm = 0b0110, op2 = 0b011)

if !IsFeatureImplemented(FEAT_MTE2) then    Undefined();elsif PSTATE.EL == EL0 then    Undefined();elsif PSTATE.EL == EL1 then    if !AArch64_CanTrapDC(CacheType_Tag, CacheOp_Invalidate, 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().DCIVAC == '1' then        AArch64_SystemAccessTrap(EL2, 0x18);    else        if AArch64_TreatDCAsNOP(CacheType_Tag, CacheOp_Invalidate, CacheOpScope_PoC) then            ExecuteAsNOP();        else            AArch64_DC(X{64}(t), CacheType_Tag, CacheOp_Invalidate, CacheOpScope_PoC);        end;    end;elsif PSTATE.EL == EL2 then    if !AArch64_CanTrapDC(CacheType_Tag, CacheOp_Invalidate, CacheOpScope_PoC) then        ExecuteAsNOP();    else        if AArch64_TreatDCAsNOP(CacheType_Tag, CacheOp_Invalidate, CacheOpScope_PoC) then            ExecuteAsNOP();        else            AArch64_DC(X{64}(t), CacheType_Tag, CacheOp_Invalidate, CacheOpScope_PoC);        end;    end;elsif PSTATE.EL == EL3 then    if AArch64_TreatDCAsNOP(CacheType_Tag, CacheOp_Invalidate, CacheOpScope_PoC) then        ExecuteAsNOP();    else        AArch64_DC(X{64}(t), CacheType_Tag, CacheOp_Invalidate, CacheOpScope_PoC);    end;end;

DC ISW

Data or unified Cache line Invalidate by Set/Way

Invalidate data cache by set/way.

When FEAT_MTE2 is implemented, this instruction might invalidate Allocation Tags from caches. When it invalidates Allocation Tags from caches, it also cleans them.

Configuration

AArch64 System instruction DC ISW performs the same function as AArch32 System instruction DCISW.

This instruction is present only when FEAT_AA64 is implemented. Otherwise, direct accesses to DC ISW are UNDEFINED.

Attributes

DC ISW is a 64-bit System instruction.

Field descriptions

6362616059585756555453525150494847464544434241403938373635343332
313029282726252423222120191817161514131211109876543210
RES0
SetWayLevelRES0

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 ISW

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 ISW, <Xt>

(op0 = 0b01, op1 = 0b000, CRn = 0b0111, CRm = 0b0110, 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().DCISW == '1' then        AArch64_SystemAccessTrap(EL2, 0x18);    else        AArch64_DC(X{64}(t), CacheType_Data, CacheOp_Invalidate, CacheOpScope_SetWay);    end;elsif PSTATE.EL == EL2 then    AArch64_DC(X{64}(t), CacheType_Data, CacheOp_Invalidate, CacheOpScope_SetWay);elsif PSTATE.EL == EL3 then    AArch64_DC(X{64}(t), CacheType_Data, CacheOp_Invalidate, CacheOpScope_SetWay);end;

DC IVAC

Data or unified Cache line Invalidate by VA to PoC

Invalidate data cache by address to Point of Coherency.

When FEAT_MTE2 is implemented, this instruction might invalidate Allocation Tags from caches. When it invalidates Allocation Tags from caches, it also cleans them.

Configuration

AArch64 System instruction DC IVAC performs the same function as AArch32 System instruction DCIMVAC.

This instruction is present only when FEAT_AA64 is implemented. Otherwise, direct accesses to DC IVAC are UNDEFINED.

Attributes

DC IVAC is a 64-bit System instruction.

Field descriptions

6362616059585756555453525150494847464544434241403938373635343332
313029282726252423222120191817161514131211109876543210
VA
VA

VA, bits [63:0]:

Virtual address to use. No alignment restrictions apply to this VA.

Executing DC IVAC

When the instruction is executed, it can generate a watchpoint, which is prioritized in the same way as other watchpoints. If a watchpoint is generated, the CM bit in the ESR_ELx.ISS field is set to 1.

This instruction requires write access permission to the VA, otherwise it generates 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 IVAC, <Xt>

(op0 = 0b01, op1 = 0b000, CRn = 0b0111, CRm = 0b0110, op2 = 0b001)

if !IsFeatureImplemented(FEAT_AA64) then    Undefined();elsif PSTATE.EL == EL0 then    Undefined();elsif PSTATE.EL == EL1 then    if !AArch64_CanTrapDC(CacheType_Data, CacheOp_Invalidate, 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().DCIVAC == '1' then        AArch64_SystemAccessTrap(EL2, 0x18);    else        if AArch64_TreatDCAsNOP(CacheType_Data, CacheOp_Invalidate, CacheOpScope_PoC) then            ExecuteAsNOP();        else            AArch64_DC(X{64}(t), CacheType_Data, CacheOp_Invalidate, CacheOpScope_PoC);        end;    end;elsif PSTATE.EL == EL2 then    if !AArch64_CanTrapDC(CacheType_Data, CacheOp_Invalidate, CacheOpScope_PoC) then        ExecuteAsNOP();    else        if AArch64_TreatDCAsNOP(CacheType_Data, CacheOp_Invalidate, CacheOpScope_PoC) then            ExecuteAsNOP();        else            AArch64_DC(X{64}(t), CacheType_Data, CacheOp_Invalidate, CacheOpScope_PoC);        end;    end;elsif PSTATE.EL == EL3 then    if AArch64_TreatDCAsNOP(CacheType_Data, CacheOp_Invalidate, CacheOpScope_PoC) then        ExecuteAsNOP();    else        AArch64_DC(X{64}(t), CacheType_Data, CacheOp_Invalidate, CacheOpScope_PoC);    end;end;

DC ZGBVA

Data Cache Zero Allocation tag block by VA

Zero Allocation tag block by address. Zeroes a naturally aligned block of N tags, where the size of N is identified in DCZID_EL0.TBS.

This zeroes tags whether they are in part of a data cache or a separate tag cache.

This instruction might have the poison-atomic property for IMPLEMENTATION DEFINED regions of physical memory.

Configuration

This instruction is present only when FEAT_MTETC is implemented. Otherwise, direct accesses to DC ZGBVA are UNDEFINED.

Attributes

DC ZGBVA is a 64-bit System instruction.

Field descriptions

6362616059585756555453525150494847464544434241403938373635343332
313029282726252423222120191817161514131211109876543210
VA
VA

VA, bits [63:0]:

Virtual address to use. There is no alignment restriction on the address within the block of N tags that is used.

Executing DC ZGBVA

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 set to 0.

For a DC ZGBVA 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 to Allocation tag 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 ZGBVA, <Xt>

(op0 = 0b01, op1 = 0b011, CRn = 0b0111, CRm = 0b0100, op2 = 0b101)

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_TagZero);    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_TagZero);    end;elsif PSTATE.EL == EL2 then    AArch64_MemZero(X{64}(t), CacheType_TagZero);elsif PSTATE.EL == EL3 then    AArch64_MemZero(X{64}(t), CacheType_TagZero);end;

DC ZVA

Data Cache Zero by VA

Zero data cache by address. Zeroes a naturally aligned block of N bytes, where the size of N is identified in DCZID_EL0.

This instruction might have the poison-atomic property for IMPLEMENTATION DEFINED regions of physical memory.

Configuration

This instruction is present only when FEAT_AA64 is implemented. Otherwise, direct accesses to DC ZVA are UNDEFINED.

Attributes

DC ZVA is a 64-bit System instruction.

Field descriptions

6362616059585756555453525150494847464544434241403938373635343332
313029282726252423222120191817161514131211109876543210
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 ZVA

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 set to 0.

If the memory region being zeroed is any type of Device memory that does not support unaligned accesses, this instruction generates an Alignment fault which is prioritized in the same way as other Alignment faults that are determined by the memory type.

This instruction applies to Normal memory regardless of cacheability attributes.

This instruction behaves as a set of Stores to each byte 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 ZVA, <Xt>

(op0 = 0b01, op1 = 0b011, CRn = 0b0111, CRm = 0b0100, op2 = 0b001)

if !IsFeatureImplemented(FEAT_AA64) then    Undefined();elsif EffectivelyAtEL0NotInHost() then    if SCTLR_EL1().DZE == '0' then        AArch64_SystemAccessTraptoEL1orEL2(0x18);    elsif 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_Data);    end;elsif EffectivelyAtEL0InHost() then    if SCTLR_EL2().DZE == '0' then        AArch64_SystemAccessTrap(EL2, 0x18);    else        AArch64_MemZero(X{64}(t), CacheType_Data);    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_Data);    end;elsif PSTATE.EL == EL2 then    AArch64_MemZero(X{64}(t), CacheType_Data);elsif PSTATE.EL == EL3 then    AArch64_MemZero(X{64}(t), CacheType_Data);end;

DVP RCTX

Data Value Prediction Restriction by Context

Data Value Prediction Restriction by Context applies to all Data Value Prediction Resources that predict execution based on information gathered within the target execution context or contexts.

The prediction of the PSTATE.{N,Z,C,V} values is not considered a data value for this purpose.

Data value predictions determined by the actions of code in the target execution context or contexts appearing in program order before the instruction cannot exploitatively control speculative execution occurring after the instruction is complete and synchronized.

This instruction is guaranteed to be complete following a DSB that covers both read and write behavior on the same PE as executed the original restriction instruction, and a subsequent context synchronization event is required to ensure that the effect of the completion of the instructions is synchronized to the current execution.

This instruction does not require the invalidation of prediction structures so long as the behavior described for completion of this instruction is met by the implementation.

On some implementations the instruction is likely to take a significant number of cycles to execute. This instruction is expected to be used very rarely, such as on the roll-over of an ASID or VMID, but should not be used on every context switch.

Configuration

This instruction is present only when FEAT_SPECRES is implemented and FEAT_AA64 is implemented. Otherwise, direct accesses to DVP RCTX are UNDEFINED.

Attributes

DVP RCTX is a 64-bit System instruction.

Field descriptions

6362616059585756555453525150494847464544434241403938373635343332
313029282726252423222120191817161514131211109876543210
RES0GVMIDVMID
RES0NSENSELRES0GASIDASID

Bits [63:49]:

Reserved, RES0.

GVMID, bit [48]:

Execution of this instruction applies to all VMIDs or a specified VMID.

GVMIDMeaning
0b0Applies to specified VMID for an EL0 or EL1 target execution context.
0b1Applies to all VMIDs for an EL0 or EL1 target execution context.

For target execution contexts other than EL0 or EL1, this field is RES0.

If the instruction is executed at EL0 or EL1, then this field has an Effective value of 0.

If EL2 is not implemented or not enabled for the target Security state, this field is RES0.

VMID, bits [47:32]:

Only applies when bit[48] is 0 and the target execution context is either:

  • EL1.
  • EL0 when the Effective value of HCR_EL2.{E2H, TGE} is not {1, 1}. Otherwise this field is RES0.

When the instruction is executed at EL1, this field is treated as the current VMID.

When the instruction is executed at EL0 and the Effective value of HCR_EL2.{E2H, TGE} is not {1, 1}, this field is treated as the current VMID.

When the instruction is executed at EL0 and the Effective value of HCR_EL2.{E2H, TGE} is {1, 1}, this field is ignored.

If EL2 is not implemented or not enabled for the target Security state, this field is RES0.

If the implementation supports 16 bits of VMID, then the upper 8 bits of the VMID must be written to 0 by software when the context being affected only uses 8 bits.

Bits [31:28]:

Reserved, RES0.

NSE, bit [27] when FEAT_RME is implemented:

Together with the NS field, selects the Security state.

For a description of the values derived by evaluating NS and NSE together, see DVP_RCTX.NS.

Otherwise:

Reserved, RES0.

NS, bit [26] when FEAT_RME is implemented:

Together with the NSE field, selects the Security state.

NSENSMeaning
0b00b0When Secure state is implemented, Secure. Otherwise reserved.
0b00b1Non-secure.
0b10b0Root.
0b10b1Realm.

Some Effective values are determined by the current Security state:

  • When executed in Secure state, the Effective value of NSE is 0.

  • When executed in Non-secure state, the Effective value of {NSE, NS} is {0, 1}.

  • When executed in Realm state, the Effective value of {NSE, NS} is {1, 1}. This instruction is treated as a NOP when executed at EL3 and either:

  • DVP_RCTX.{NSE, NS} selects a reserved value.

  • DVP_RCTX.{NSE, NS} == {1, 0} and DVP_RCTX.EL has a value other than 0b11.

Otherwise:

Security State.

NSMeaning
0b0Secure state.
0b1Non-secure state.

When executed in Non-secure state, the Effective value of NS is 1.

EL, bits [25:24]:

Exception Level. Indicates the Exception level of the target execution context.

ELMeaningApplies when
0b00EL0.
0b01EL1
0b10EL2When FEAT_EL2 is implemented
0b11EL3When FEAT_EL3 is implemented

If the instruction is executed at an Exception level lower than the specified level, or is specified to apply to a combination of Exception level and Security state that is not implemented, this instruction is treated as a NOP.

Bits [23:17]:

Reserved, RES0.

GASID, bit [16]:

Execution of this instruction applies to all ASIDs or a specified ASID.

GASIDMeaning
0b0Applies to specified ASID for an EL0 target execution context.
0b1Applies to all ASIDs for an EL0 target execution context.

For target execution contexts other than EL0, this field is RES0.

If the instruction is executed at EL0, this field has an Effective value of 0.

ASID, bits [15:0]:

Only applies for an EL0 target execution context and when bit[16] is 0.

Otherwise this field is RES0.

When the instruction is executed at EL0, this field is treated as the current ASID.

If the implementation supports 16 bits of ASID, then the upper 8 bits of the ASID must be written to 0 by software when the context being affected only uses 8 bits.

Executing DVP RCTX

This system instruction is an alias of the SYS instruction.

Accesses to this instruction use the following encodings in the System instruction encoding space:

DVP RCTX, <Xt>

(op0 = 0b01, op1 = 0b011, CRn = 0b0111, CRm = 0b0011, op2 = 0b101)

if !(IsFeatureImplemented(FEAT_SPECRES) && IsFeatureImplemented(FEAT_AA64)) then    Undefined();elsif EffectivelyAtEL0NotInHost() then    if SCTLR_EL1().EnRCTX == '0' then        AArch64_SystemAccessTraptoEL1orEL2(0x18);    elsif EL2Enabled() && IsFeatureImplemented(FEAT_FGT) && (!HaveEL(EL3) || SCR_EL3().FGTEn == '1') && HFGITR_EL2().DVPRCTX == '1' then        AArch64_SystemAccessTrap(EL2, 0x18);    else        AArch64_RestrictPrediction(X{64}(t), RestrictType_DataValue);    end;elsif EffectivelyAtEL0InHost() then    if SCTLR_EL2().EnRCTX == '0' then        AArch64_SystemAccessTrap(EL2, 0x18);    else        AArch64_RestrictPrediction(X{64}(t), RestrictType_DataValue);    end;elsif PSTATE.EL == EL1 then    if EffectiveHCR_EL2_NVx() IN {'xx1'} then        AArch64_SystemAccessTrap(EL2, 0x18);    elsif EL2Enabled() && IsFeatureImplemented(FEAT_FGT) && (!HaveEL(EL3) || SCR_EL3().FGTEn == '1') && HFGITR_EL2().DVPRCTX == '1' then        AArch64_SystemAccessTrap(EL2, 0x18);    else        AArch64_RestrictPrediction(X{64}(t), RestrictType_DataValue);    end;elsif PSTATE.EL == EL2 then    AArch64_RestrictPrediction(X{64}(t), RestrictType_DataValue);elsif PSTATE.EL == EL3 then    AArch64_RestrictPrediction(X{64}(t), RestrictType_DataValue);end;

IC IALLU

Instruction Cache Invalidate All to PoU

Invalidate all instruction caches of the PE executing the instruction to the Point of Unification.

Configuration

AArch64 System instruction IC IALLU performs the same function as AArch32 System instruction ICIALLU.

This instruction is present only when FEAT_AA64 is implemented. Otherwise, direct accesses to IC IALLU are UNDEFINED.

Attributes

IC IALLU is a 64-bit System instruction.

Field descriptions

This instruction has no applicable fields.

The value in the register specified by <Xt> is ignored.

Executing IC IALLU

The Rt field should be set to 0b11111. If the Rt field is not set to 0b11111, it is CONSTRAINED UNPREDICTABLE whether:

The instruction is UNDEFINED.

The instruction behaves as if the Rt field is set to 0b11111.

This system instruction is an alias of the SYS instruction.

The following pseudocode describes traps which apply to the System instruction. For information about changes to the scope of the invalidation to the instruction under different conditions, see AArch64_IC() in the Pseudocode for AArch64 operation.

Accesses to this instruction use the following encodings in the System instruction encoding space:

IC IALLU{, <Xt>}

(op0 = 0b01, op1 = 0b000, CRn = 0b0111, CRm = 0b0101, op2 = 0b000)

if !IsFeatureImplemented(FEAT_AA64) then    Undefined();elsif PSTATE.EL == EL0 then    Undefined();elsif PSTATE.EL == EL1 then    if !AArch64_CanTrapIC(CacheType_Instruction, CacheOp_Invalidate, 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().ICIALLU == '1' then        AArch64_SystemAccessTrap(EL2, 0x18);    else        if AArch64_TreatICAsNOP(CacheType_Instruction, CacheOp_Invalidate, CacheOpScope_PoU) then            ExecuteAsNOP();        else            AArch64_IC(CacheOpScope_ALLU);        end;    end;elsif PSTATE.EL == EL2 then    if !AArch64_CanTrapIC(CacheType_Instruction, CacheOp_Invalidate, CacheOpScope_PoU) then        ExecuteAsNOP();    else        if AArch64_TreatICAsNOP(CacheType_Instruction, CacheOp_Invalidate, CacheOpScope_PoU) then            ExecuteAsNOP();        else            AArch64_IC(CacheOpScope_ALLU);        end;    end;elsif PSTATE.EL == EL3 then    if AArch64_TreatICAsNOP(CacheType_Instruction, CacheOp_Invalidate, CacheOpScope_PoU) then        ExecuteAsNOP();    else        AArch64_IC(CacheOpScope_ALLU);    end;end;

IC IALLUIS

Instruction Cache Invalidate All to PoU, Inner Shareable

Invalidate all instruction caches in the Inner Shareable domain of the PE executing the instruction to the Point of Unification.

Configuration

AArch64 System instruction IC IALLUIS performs the same function as AArch32 System instruction ICIALLUIS.

This instruction is present only when FEAT_AA64 is implemented. Otherwise, direct accesses to IC IALLUIS are UNDEFINED.

Attributes

IC IALLUIS is a 64-bit System instruction.

Field descriptions

This instruction has no applicable fields.

The value in the register specified by <Xt> is ignored.

Executing IC IALLUIS

The Rt field should be set to 0b11111. If the Rt field is not set to 0b11111, it is CONSTRAINED UNPREDICTABLE whether:

The instruction is UNDEFINED.

The instruction behaves as if the Rt field is set to 0b11111.

This system instruction is an alias of the SYS instruction.

Accesses to this instruction use the following encodings in the System instruction encoding space:

IC IALLUIS{, <Xt>}

(op0 = 0b01, op1 = 0b000, CRn = 0b0111, CRm = 0b0001, op2 = 0b000)

if !IsFeatureImplemented(FEAT_AA64) then    Undefined();elsif PSTATE.EL == EL0 then    Undefined();elsif PSTATE.EL == EL1 then    if !AArch64_CanTrapIC(CacheType_Instruction, CacheOp_Invalidate, CacheOpScope_PoU) then        ExecuteAsNOP();    elsif EL2Enabled() && HCR_EL2().TPU == '1' then        AArch64_SystemAccessTrap(EL2, 0x18);    elsif EL2Enabled() && HCR_EL2().TICAB == '1' then        AArch64_SystemAccessTrap(EL2, 0x18);    elsif EL2Enabled() && IsFeatureImplemented(FEAT_FGT) && (!HaveEL(EL3) || SCR_EL3().FGTEn == '1') && HFGITR_EL2().ICIALLUIS == '1' then        AArch64_SystemAccessTrap(EL2, 0x18);    else        if AArch64_TreatICAsNOP(CacheType_Instruction, CacheOp_Invalidate, CacheOpScope_PoU) then            ExecuteAsNOP();        else            AArch64_IC(CacheOpScope_ALLUIS);        end;    end;elsif PSTATE.EL == EL2 then    if !AArch64_CanTrapIC(CacheType_Instruction, CacheOp_Invalidate, CacheOpScope_PoU) then        ExecuteAsNOP();    else        if AArch64_TreatICAsNOP(CacheType_Instruction, CacheOp_Invalidate, CacheOpScope_PoU) then            ExecuteAsNOP();        else            AArch64_IC(CacheOpScope_ALLUIS);        end;    end;elsif PSTATE.EL == EL3 then    if AArch64_TreatICAsNOP(CacheType_Instruction, CacheOp_Invalidate, CacheOpScope_PoU) then        ExecuteAsNOP();    else        AArch64_IC(CacheOpScope_ALLUIS);    end;end;

IC IVAU

Instruction Cache line Invalidate by VA to PoU

Invalidate instruction cache by address to Point of Unification.

Configuration

AArch64 System instruction IC IVAU performs the same function as AArch32 System instruction ICIMVAU.

This instruction is present only when FEAT_AA64 is implemented. Otherwise, direct accesses to IC IVAU are UNDEFINED.

Attributes

IC IVAU is a 64-bit System instruction.

Field descriptions

6362616059585756555453525150494847464544434241403938373635343332
313029282726252423222120191817161514131211109876543210
VA
VA

VA, bits [63:0]:

Virtual address to use. No alignment restrictions apply to this VA.

Executing IC IVAU

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 instruction cache maintenance instruction (IC)'.

This system instruction is an alias of the SYS instruction.

Accesses to this instruction use the following encodings in the System instruction encoding space:

IC IVAU{, <Xt>}

(op0 = 0b01, op1 = 0b011, CRn = 0b0111, CRm = 0b0101, op2 = 0b001)

if !IsFeatureImplemented(FEAT_AA64) then    Undefined();elsif EffectivelyAtEL0NotInHost() then    if !AArch64_CanTrapIC(CacheType_Instruction, CacheOp_Invalidate, 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().ICIVAU == '1' then        AArch64_SystemAccessTrap(EL2, 0x18);    else        if AArch64_TreatICAsNOP(CacheType_Instruction, CacheOp_Invalidate, CacheOpScope_PoU) then            ExecuteAsNOP();        else            AArch64_IC(X{64}(t), CacheOpScope_PoU);        end;    end;elsif EffectivelyAtEL0InHost() then    if !AArch64_CanTrapIC(CacheType_Instruction, CacheOp_Invalidate, CacheOpScope_PoU) then        ExecuteAsNOP();    elsif SCTLR_EL2().UCI == '0' then        AArch64_SystemAccessTrap(EL2, 0x18);    else        if AArch64_TreatICAsNOP(CacheType_Instruction, CacheOp_Invalidate, CacheOpScope_PoU) then            ExecuteAsNOP();        else            AArch64_IC(X{64}(t), CacheOpScope_PoU);        end;    end;elsif PSTATE.EL == EL1 then    if !AArch64_CanTrapIC(CacheType_Instruction, CacheOp_Invalidate, 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().ICIVAU == '1' then        AArch64_SystemAccessTrap(EL2, 0x18);    else        if AArch64_TreatICAsNOP(CacheType_Instruction, CacheOp_Invalidate, CacheOpScope_PoU) then            ExecuteAsNOP();        else            AArch64_IC(X{64}(t), CacheOpScope_PoU);        end;    end;elsif PSTATE.EL == EL2 then    if !AArch64_CanTrapIC(CacheType_Instruction, CacheOp_Invalidate, CacheOpScope_PoU) then        ExecuteAsNOP();    else        if AArch64_TreatICAsNOP(CacheType_Instruction, CacheOp_Invalidate, CacheOpScope_PoU) then            ExecuteAsNOP();        else            AArch64_IC(X{64}(t), CacheOpScope_PoU);        end;    end;elsif PSTATE.EL == EL3 then    if AArch64_TreatICAsNOP(CacheType_Instruction, CacheOp_Invalidate, CacheOpScope_PoU) then        ExecuteAsNOP();    else        AArch64_IC(X{64}(t), CacheOpScope_PoU);    end;end;

This site offers reference documentation for the AArch64 instruction set and system registers defined by the Armv8-A and Armv9-A architectures.

You can use the search field below (and at the top of every page) to search for an instruction or system register. Alternatively, you can browse the full listings manually:

  • All Instructions: Base | SIMD | SVE | SME
  • All Registers: AArch64 | AArch32

If you see this note instead of a search field, your browser either does not support WebAssembly or it has been disabled, e.g. in Apple's Lockdown Mode.


This site offers reference documentation for the AArch64 instruction set and system registers defined by the Armv8-A and Armv9-A architectures.

You can use the search field below (and at the top of every page) to search for an instruction or system register. Alternatively, you can browse the full listings manually:

  • All Instructions: Base | SIMD | SVE | SME
  • All Registers: AArch64 | AArch32

If you see this note instead of a search field, your browser either does not support WebAssembly or it has been disabled, e.g. in Apple's Lockdown Mode.

Log in to reply.