TCR2_EL1
Extended Translation Control Register (EL1)
The control register for stage 1 of the EL1&0 translation regime.
Configuration
This register is present only when FEAT_TCR2 is implemented and FEAT_AA64 is implemented. Otherwise, direct accesses to TCR2_EL1 are UNDEFINED.
Attributes
TCR2_EL1 is a 64-bit register.
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 | |||||||||||||||||||||||||||||||
| RES0 | FNGNA1 | FNGNA0 | RES0 | FNG1 | FNG0 | A2 | DisCH1 | DisCH0 | RES0 | HAFT | PTTWI | RES0 | D128 | AIE | POE | E0POE | PIE | PnCH | |||||||||||||
Unless stated otherwise, all the bits in TCR2_EL1 are permitted to be cached in a TLB.
Bits [63:22]:
Reserved, RES0.
FNGNA1, bit [21] when FEAT_THE is implemented:
Force non-global for unassured translations using TTBR1_EL1.
| FNGNA1 | Meaning |
|---|---|
| 0b0 |
This bit has no effect on the interpretation of the nG bit. |
| 0b1 |
Translations using TTBR1_EL1 are treated as non-global regardless of the value of the nG bit if all of the following is true:
|
This bit is permitted to be cached in a TLB.
This field is ignored by the PE and treated as zero when any of the following are true:
-
All of the following are true:
- EL2 is implemented and enabled in the current Security state.
- The Effective value of HCRX_EL2.TCR2En is 0.
- EL3 is implemented and SCR_EL3.TCR2En == 0.
The reset behavior of this field is:
- On a Warm reset, this field resets to an architecturally UNKNOWN value.
Accessing this field has the following behavior:
-
Access to this field is RO if all the following are
true:
- FEAT_SRMASK is implemented.
- EL1 is the current Exception level.
- IsSystemRegisterMaskingEnabled(EL1).
- TCR2MASK_EL1.FNGNA1 == '1'.
Otherwise:
Reserved, RES0.
FNGNA0, bit [20] when FEAT_THE is implemented:
Force non-global for unassured translations using TTBR0_EL1.
| FNGNA0 | Meaning |
|---|---|
| 0b0 |
This bit has no effect on the interpretation of the nG bit. |
| 0b1 |
Translations using TTBR0_EL1 are treated as non-global regardless of the value of the nG bit if all of the following is true:
|
This bit is permitted to be cached in a TLB.
This field is ignored by the PE and treated as zero when any of the following are true:
-
All of the following are true:
- EL2 is implemented and enabled in the current Security state.
- The Effective value of HCRX_EL2.TCR2En is 0.
- EL3 is implemented and SCR_EL3.TCR2En == 0.
The reset behavior of this field is:
- On a Warm reset, this field resets to an architecturally UNKNOWN value.
Accessing this field has the following behavior:
-
Access to this field is RO if all the following are
true:
- FEAT_SRMASK is implemented.
- EL1 is the current Exception level.
- IsSystemRegisterMaskingEnabled(EL1).
- TCR2MASK_EL1.FNGNA0 == '1'.
Otherwise:
Reserved, RES0.
Bit [19]:
Reserved, RES0.
FNG1, bit [18] when FEAT_ASID2 is implemented:
Force non-global translations for TTBR1_EL1.
| FNG1 | Meaning |
|---|---|
| 0b0 |
This bit has no effect on the interpretation of the nG bit. |
| 0b1 |
Translations using TTBR1_EL1 are treated as non-global regardless of the value of the nG bit. |
This bit is permitted to be cached in a TLB.
This field is ignored by the PE and treated as zero when any of the following are true:
-
All of the following are true:
- EL2 is implemented and enabled in the current Security state.
- The Effective value of HCRX_EL2.TCR2En is 0.
- EL3 is implemented and SCR_EL3.TCR2En == 0.
The reset behavior of this field is:
- On a Warm reset, this field resets to an architecturally UNKNOWN value.
Accessing this field has the following behavior:
-
Access to this field is RO if all the following are
true:
- FEAT_SRMASK is implemented.
- EL1 is the current Exception level.
- IsSystemRegisterMaskingEnabled(EL1).
- TCR2MASK_EL1.FNG1 == '1'.
Otherwise:
Reserved, RES0.
FNG0, bit [17] when FEAT_ASID2 is implemented:
Force non-global translations for TTBR0_EL1.
| FNG0 | Meaning |
|---|---|
| 0b0 |
This bit has no effect on the interpretation of the nG bit. |
| 0b1 |
Translations using TTBR0_EL1 are treated as non-global regardless of the value of the nG bit. |
This bit is permitted to be cached in a TLB.
This field is ignored by the PE and treated as zero when any of the following are true:
-
All of the following are true:
- EL2 is implemented and enabled in the current Security state.
- The Effective value of HCRX_EL2.TCR2En is 0.
- EL3 is implemented and SCR_EL3.TCR2En == 0.
The reset behavior of this field is:
- On a Warm reset, this field resets to an architecturally UNKNOWN value.
Accessing this field has the following behavior:
-
Access to this field is RO if all the following are
true:
- FEAT_SRMASK is implemented.
- EL1 is the current Exception level.
- IsSystemRegisterMaskingEnabled(EL1).
- TCR2MASK_EL1.FNG0 == '1'.
Otherwise:
Reserved, RES0.
A2, bit [16] when FEAT_ASID2 is implemented:
Enable use of two ASIDs.
| A2 | Meaning |
|---|---|
| 0b0 |
Use of two ASIDs is disabled. |
| 0b1 |
Use of two ASIDs is enabled. |
This bit is permitted to be cached in a TLB.
This field is ignored by the PE and treated as zero when any of the following are true:
-
All of the following are true:
- EL2 is implemented and enabled in the current Security state.
- The Effective value of HCRX_EL2.TCR2En is 0.
- EL3 is implemented and SCR_EL3.TCR2En == 0.
The reset behavior of this field is:
- On a Warm reset, this field resets to an architecturally UNKNOWN value.
Accessing this field has the following behavior:
-
Access to this field is RO if all the following are
true:
- FEAT_SRMASK is implemented.
- EL1 is the current Exception level.
- IsSystemRegisterMaskingEnabled(EL1).
- TCR2MASK_EL1.A2 == '1'.
Otherwise:
Reserved, RES0.
DisCH1, bit [15] when FEAT_D128 is implemented and TCR2_EL1.D128 == '1':
Disable the Contiguous bit for the Start Table for TTBR1_EL1.
| DisCH1 | Meaning |
|---|---|
| 0b0 |
The Contiguous bit of Block or Page descriptors of the Start Table for TTBR1_EL1 is not affected by this field. |
| 0b1 |
The Contiguous bit of Block or Page descriptors of the Start Table for TTBR1_EL1 is treated as 0. |
This field is ignored by the PE and treated as zero when any of the following are true:
-
All of the following are true:
- EL2 is implemented and enabled in the current Security state.
- The Effective value of HCRX_EL2.TCR2En is 0.
- EL3 is implemented and SCR_EL3.TCR2En == 0.
The reset behavior of this field is:
- On a Warm reset, this field resets to an architecturally UNKNOWN value.
Accessing this field has the following behavior:
-
Access to this field is RO if all the following are
true:
- FEAT_SRMASK is implemented.
- EL1 is the current Exception level.
- IsSystemRegisterMaskingEnabled(EL1).
- TCR2MASK_EL1.DisCH1 == '1'.
Otherwise:
Reserved, RES0.
DisCH0, bit [14] when FEAT_D128 is implemented and TCR2_EL1.D128 == '1':
Disable the Contiguous bit for the Start Table for TTBR0_EL1.
| DisCH0 | Meaning |
|---|---|
| 0b0 |
The Contiguous bit of Block or Page descriptors of the Start Table for TTBR0_EL1 is not affected by this field. |
| 0b1 |
The Contiguous bit of Block or Page descriptors of the Start Table for TTBR0_EL1 is treated as 0. |
This field is ignored by the PE and treated as zero when any of the following are true:
-
All of the following are true:
- EL2 is implemented and enabled in the current Security state.
- The Effective value of HCRX_EL2.TCR2En is 0.
- EL3 is implemented and SCR_EL3.TCR2En == 0.
The reset behavior of this field is:
- On a Warm reset, this field resets to an architecturally UNKNOWN value.
Accessing this field has the following behavior:
-
Access to this field is RO if all the following are
true:
- FEAT_SRMASK is implemented.
- EL1 is the current Exception level.
- IsSystemRegisterMaskingEnabled(EL1).
- TCR2MASK_EL1.DisCH0 == '1'.
Otherwise:
Reserved, RES0.
Bits [13:12]:
Reserved, RES0.
HAFT, bit [11] when FEAT_HAFT is implemented:
Hardware managed Access Flag for Table descriptors.
Enables the Hardware managed Access Flag for Table descriptors.
| HAFT | Meaning |
|---|---|
| 0b0 |
Hardware managed Access Flag for Table descriptors is disabled. |
| 0b1 |
Hardware managed Access Flag for Table descriptors is enabled. |
This field is ignored by the PE and treated as zero when any of the following are true:
-
All of the following are true:
- EL2 is implemented and enabled in the current Security state.
- The Effective value of HCRX_EL2.TCR2En is 0.
- EL3 is implemented and SCR_EL3.TCR2En == 0.
The reset behavior of this field is:
-
On a Warm reset:
- When the highest implemented Exception level is EL1, this field resets to '0'.
- Otherwise, this field resets to an architecturally UNKNOWN value.
Accessing this field has the following behavior:
-
Access to this field is RO if all the following are
true:
- FEAT_SRMASK is implemented.
- EL1 is the current Exception level.
- IsSystemRegisterMaskingEnabled(EL1).
- TCR2MASK_EL1.HAFT == '1'.
Otherwise:
Reserved, RES0.
PTTWI, bit [10] when FEAT_THE is implemented:
Permit Translation table walk Incoherence.
Permits RCWS instructions to generate writes that have the Reduced Coherence property.
| PTTWI | Meaning |
|---|---|
| 0b0 |
Write accesses generated by RCWS at EL1&0 do not have the Reduced Coherence property. |
| 0b1 |
Write accesses generated by RCWS at EL1&0 have the Reduced Coherence property if HCRX_EL2.PTTWI is 1. |
This bit is permitted to be implemented as a read-only bit with a fixed value of 0.
This field is ignored by the PE and treated as zero when any of the following are true:
-
All of the following are true:
- EL2 is implemented and enabled in the current Security state.
- The Effective value of HCRX_EL2.TCR2En is 0.
- EL3 is implemented and SCR_EL3.TCR2En == 0.
The reset behavior of this field is:
-
On a Warm reset:
- When the highest implemented Exception level is EL1, this field resets to '0'.
- Otherwise, this field resets to an architecturally UNKNOWN value.
Accessing this field has the following behavior:
-
Access to this field is RO if all the following are
true:
- FEAT_SRMASK is implemented.
- EL1 is the current Exception level.
- IsSystemRegisterMaskingEnabled(EL1).
- TCR2MASK_EL1.PTTWI == '1'.
Otherwise:
Reserved, RES0.
Bits [9:6]:
Reserved, RES0.
D128, bit [5] when FEAT_D128 is implemented:
Enables VMSAv9-128 translation system.
| D128 | Meaning |
|---|---|
| 0b0 |
Translation system follows VMSAv8-64 translation process. |
| 0b1 |
Translation system follows VMSAv9-128 translation process. |
This field is ignored by the PE and treated as zero when any of the following are true:
-
All of the following are true:
- EL2 is implemented and enabled in the current Security state.
- The Effective value of HCRX_EL2.TCR2En is 0.
- EL3 is implemented and SCR_EL3.TCR2En == 0.
The reset behavior of this field is:
-
On a Warm reset:
- When the highest implemented Exception level is EL1, this field resets to '0'.
- Otherwise, this field resets to an architecturally UNKNOWN value.
Accessing this field has the following behavior:
-
Access to this field is RO if all the following are
true:
- FEAT_SRMASK is implemented.
- EL1 is the current Exception level.
- IsSystemRegisterMaskingEnabled(EL1).
- TCR2MASK_EL1.D128 == '1'.
Otherwise:
Reserved, RES0.
AIE, bit [4] when FEAT_AIE is implemented:
Enable Attribute Indexing Extension.
| AIE | Meaning |
|---|---|
| 0b0 |
Attribute Indexing Extension Disabled. |
| 0b1 |
Attribute Indexing Extension Enabled. |
This field is RES1 when TCR2_EL1.D128 is 1.
This field is ignored by the PE and treated as zero when any of the following are true:
-
All of the following are true:
- EL2 is implemented and enabled in the current Security state.
- The Effective value of HCRX_EL2.TCR2En is 0.
- EL3 is implemented and SCR_EL3.TCR2En == 0.
The reset behavior of this field is:
-
On a Warm reset:
- When the highest implemented Exception level is EL1, this field resets to '0'.
- Otherwise, this field resets to an architecturally UNKNOWN value.
Accessing this field has the following behavior:
-
Access to this field is RO if all the following are
true:
- FEAT_SRMASK is implemented.
- EL1 is the current Exception level.
- IsSystemRegisterMaskingEnabled(EL1).
- TCR2MASK_EL1.AIE == '1'.
Otherwise:
Reserved, RES0.
POE, bit [3] when FEAT_S1POE is implemented:
Enables Permission Overlays for privileged accesses from EL1&0 translation regime.
| POE | Meaning |
|---|---|
| 0b0 |
Permission overlay disabled for EL1 access in stage 1 of EL1&0 translation regime. |
| 0b1 |
Permission overlay enabled for EL1 access in stage 1 of EL1&0 translation regime. |
This bit is not permitted to be cached in a TLB.
This field is ignored by the PE and treated as zero when any of the following are true:
-
All of the following are true:
- EL2 is implemented and enabled in the current Security state.
- The Effective value of HCRX_EL2.TCR2En is 0.
- EL3 is implemented and SCR_EL3.TCR2En == 0.
The reset behavior of this field is:
-
On a Warm reset:
- When the highest implemented Exception level is EL1, this field resets to '0'.
- Otherwise, this field resets to an architecturally UNKNOWN value.
Accessing this field has the following behavior:
-
Access to this field is RO if all the following are
true:
- FEAT_SRMASK is implemented.
- EL1 is the current Exception level.
- IsSystemRegisterMaskingEnabled(EL1).
- TCR2MASK_EL1.POE == '1'.
Otherwise:
Reserved, RES0.
E0POE, bit [2] when FEAT_S1POE is implemented:
Enables Permission Overlays for unprivileged accesses from EL1&0 translation regime.
| E0POE | Meaning |
|---|---|
| 0b0 |
Permission overlay disabled for EL0 access in stage 1 of EL1&0 translation regime. |
| 0b1 |
Permission overlay enabled for EL0 access in stage 1 of EL1&0 translation regime. |
This bit is not permitted to be cached in a TLB.
This field is ignored by the PE and treated as zero when any of the following are true:
-
All of the following are true:
- EL2 is implemented and enabled in the current Security state.
- The Effective value of HCRX_EL2.TCR2En is 0.
- EL3 is implemented and SCR_EL3.TCR2En == 0.
The reset behavior of this field is:
-
On a Warm reset:
- When the highest implemented Exception level is EL1, this field resets to '0'.
- Otherwise, this field resets to an architecturally UNKNOWN value.
Accessing this field has the following behavior:
-
Access to this field is RO if all the following are
true:
- FEAT_SRMASK is implemented.
- EL1 is the current Exception level.
- IsSystemRegisterMaskingEnabled(EL1).
- TCR2MASK_EL1.E0POE == '1'.
Otherwise:
Reserved, RES0.
PIE, bit [1] when FEAT_S1PIE is implemented:
Enables usage of Indirect Permission Scheme.
| PIE | Meaning |
|---|---|
| 0b0 |
Direct permission model. |
| 0b1 |
Indirect permission model. |
This field is RES1 when TCR2_EL1.D128 is 1.
This field is ignored by the PE and treated as zero when any of the following are true:
-
All of the following are true:
- EL2 is implemented and enabled in the current Security state.
- The Effective value of HCRX_EL2.TCR2En is 0.
- EL3 is implemented and SCR_EL3.TCR2En == 0.
The reset behavior of this field is:
-
On a Warm reset:
- When the highest implemented Exception level is EL1, this field resets to '0'.
- Otherwise, this field resets to an architecturally UNKNOWN value.
Accessing this field has the following behavior:
-
Access to this field is RO if all the following are
true:
- FEAT_SRMASK is implemented.
- EL1 is the current Exception level.
- IsSystemRegisterMaskingEnabled(EL1).
- TCR2MASK_EL1.PIE == '1'.
Otherwise:
Reserved, RES0.
PnCH, bit [0] when FEAT_THE is implemented:
Protected attribute enable. Enables use of bit[52] of the stage 1 translation table entries as the Protected bit, for translations using TTBRn_EL1.
| PnCH | Meaning |
|---|---|
| 0b0 |
For translations using TTBRn_EL1, bit[52] of each stage 1 translation table entry is not the Protected bit. |
| 0b1 |
For translations using TTBRn_EL1, bit[52] of each stage 1 translation table entry is the Protected bit. |
If bit[52] is used as the Protected bit, it is not used as the Contiguous bit.
This field is RES0 when TCR2_EL1.D128 is 1.
This field is ignored by the PE and treated as zero when any of the following are true:
-
All of the following are true:
- EL2 is implemented and enabled in the current Security state.
- The Effective value of HCRX_EL2.TCR2En is 0.
- EL3 is implemented and SCR_EL3.TCR2En == 0.
The reset behavior of this field is:
-
On a Warm reset:
- When the highest implemented Exception level is EL1, this field resets to '0'.
- Otherwise, this field resets to an architecturally UNKNOWN value.
Accessing this field has the following behavior:
-
Access to this field is RO if all the following are
true:
- FEAT_SRMASK is implemented.
- EL1 is the current Exception level.
- IsSystemRegisterMaskingEnabled(EL1).
- TCR2MASK_EL1.PnCH == '1'.
Otherwise:
Reserved, RES0.
Access Instructions
When the Effective value of HCR_EL2.E2H is 1, without explicit synchronization, accesses from EL3 using the accessor name TCR2_EL1 or TCR2_EL12 are not guaranteed to be ordered with respect to accesses using the other accessor name.
If FEAT_SRMASK is implemented, accesses to TCR2_EL1 are masked by TCR2MASK_EL1.
Accesses to this register use the following encodings in the System register encoding space:
MRS <Xt>, TCR2_EL1
(op0 = 0b11, op1 = 0b000, CRn = 0b0010, CRm = 0b0000, op2 = 0b011)
if !(IsFeatureImplemented(FEAT_TCR2) && IsFeatureImplemented(FEAT_AA64)) then
Undefined();
elsif HaveEL(EL3) && !(EffectivelyAtEL0InHost() || EffectivelyAtEL0NotInHost() || PSTATE.EL == EL3) && EL3SDDUndefPriority() && SCR_EL3().TCR2En == '0' then
Undefined();
elsif PSTATE.EL == EL0 then
Undefined();
elsif PSTATE.EL == EL1 then
if EL2Enabled() && HCR_EL2().TRVM == '1' then
AArch64_SystemAccessTrap(EL2, 0x18);
elsif EL2Enabled() && IsFeatureImplemented(FEAT_FGT) && (!HaveEL(EL3) || SCR_EL3().FGTEn == '1') && HFGRTR_EL2().TCR_EL1 == '1' then
AArch64_SystemAccessTrap(EL2, 0x18);
elsif EL2Enabled() && (!IsHCRXEL2Enabled() || HCRX_EL2().TCR2En == '0') then
AArch64_SystemAccessTrap(EL2, 0x18);
elsif HaveEL(EL3) && SCR_EL3().TCR2En == '0' then
if EL3SDDUndef() then
Undefined();
else
AArch64_SystemAccessTrap(EL3, 0x18);
end;
elsif EffectiveHCR_EL2_NVx() IN {'111'} then
X{64}(t) = NVMem(0x270);
else
X{64}(t) = TCR2_EL1();
end;
elsif PSTATE.EL == EL2 then
if HaveEL(EL3) && SCR_EL3().TCR2En == '0' then
if EL3SDDUndef() then
Undefined();
else
AArch64_SystemAccessTrap(EL3, 0x18);
end;
elsif ELIsInHost(EL2) then
X{64}(t) = TCR2_EL2();
else
X{64}(t) = TCR2_EL1();
end;
elsif PSTATE.EL == EL3 then
X{64}(t) = TCR2_EL1();
end;
MSR TCR2_EL1, <Xt>
(op0 = 0b11, op1 = 0b000, CRn = 0b0010, CRm = 0b0000, op2 = 0b011)
if !(IsFeatureImplemented(FEAT_TCR2) && IsFeatureImplemented(FEAT_AA64)) then
Undefined();
elsif HaveEL(EL3) && !(EffectivelyAtEL0InHost() || EffectivelyAtEL0NotInHost() || PSTATE.EL == EL3) && EL3SDDUndefPriority() && SCR_EL3().TCR2En == '0' then
Undefined();
elsif PSTATE.EL == EL0 then
Undefined();
elsif PSTATE.EL == EL1 then
if EL2Enabled() && HCR_EL2().TVM == '1' then
AArch64_SystemAccessTrap(EL2, 0x18);
elsif EL2Enabled() && IsFeatureImplemented(FEAT_FGT) && (!HaveEL(EL3) || SCR_EL3().FGTEn == '1') && HFGWTR_EL2().TCR_EL1 == '1' then
AArch64_SystemAccessTrap(EL2, 0x18);
elsif EL2Enabled() && (!IsHCRXEL2Enabled() || HCRX_EL2().TCR2En == '0') then
AArch64_SystemAccessTrap(EL2, 0x18);
elsif HaveEL(EL3) && SCR_EL3().TCR2En == '0' then
if EL3SDDUndef() then
Undefined();
else
AArch64_SystemAccessTrap(EL3, 0x18);
end;
elsif EffectiveHCR_EL2_NVx() IN {'111'} then
NVMem(0x270) = X{64}(t);
else
TCR2_EL1() = X{64}(t);
end;
elsif PSTATE.EL == EL2 then
if HaveEL(EL3) && SCR_EL3().TCR2En == '0' then
if EL3SDDUndef() then
Undefined();
else
AArch64_SystemAccessTrap(EL3, 0x18);
end;
elsif ELIsInHost(EL2) then
TCR2_EL2() = X{64}(t);
else
TCR2_EL1() = X{64}(t);
end;
elsif PSTATE.EL == EL3 then
TCR2_EL1() = X{64}(t);
end;
MRS <Xt>, TCR2_EL12
(op0 = 0b11, op1 = 0b101, CRn = 0b0010, CRm = 0b0000, op2 = 0b011)
if !(IsFeatureImplemented(FEAT_TCR2) && IsFeatureImplemented(FEAT_AA64)) then
Undefined();
elsif HaveEL(EL3) && PSTATE.EL == EL2 && EL3SDDUndefPriority() && SCR_EL3().TCR2En == '0' then
Undefined();
elsif PSTATE.EL == EL0 then
Undefined();
elsif PSTATE.EL == EL1 then
if EffectiveHCR_EL2_NVx() == '101' then
X{64}(t) = NVMem(0x270);
elsif EffectiveHCR_EL2_NVx() IN {'xx1'} then
AArch64_SystemAccessTrap(EL2, 0x18);
else
Undefined();
end;
elsif PSTATE.EL == EL2 then
if ELIsInHost(EL2) then
if HaveEL(EL3) && SCR_EL3().TCR2En == '0' then
if EL3SDDUndef() then
Undefined();
else
AArch64_SystemAccessTrap(EL3, 0x18);
end;
else
X{64}(t) = TCR2_EL1();
end;
else
Undefined();
end;
elsif PSTATE.EL == EL3 then
if ELIsInHost(EL2) then
X{64}(t) = TCR2_EL1();
else
Undefined();
end;
end;
When FEAT_VHE is implemented:
MSR TCR2_EL12, <Xt>
(op0 = 0b11, op1 = 0b101, CRn = 0b0010, CRm = 0b0000, op2 = 0b011)
if !(IsFeatureImplemented(FEAT_TCR2) && IsFeatureImplemented(FEAT_AA64)) then
Undefined();
elsif HaveEL(EL3) && PSTATE.EL == EL2 && EL3SDDUndefPriority() && SCR_EL3().TCR2En == '0' then
Undefined();
elsif PSTATE.EL == EL0 then
Undefined();
elsif PSTATE.EL == EL1 then
if EffectiveHCR_EL2_NVx() == '101' then
NVMem(0x270) = X{64}(t);
elsif EffectiveHCR_EL2_NVx() IN {'xx1'} then
AArch64_SystemAccessTrap(EL2, 0x18);
else
Undefined();
end;
elsif PSTATE.EL == EL2 then
if ELIsInHost(EL2) then
if HaveEL(EL3) && SCR_EL3().TCR2En == '0' then
if EL3SDDUndef() then
Undefined();
else
AArch64_SystemAccessTrap(EL3, 0x18);
end;
else
TCR2_EL1() = X{64}(t);
end;
else
Undefined();
end;
elsif PSTATE.EL == EL3 then
if ELIsInHost(EL2) then
TCR2_EL1() = X{64}(t);
else
Undefined();
end;
end;
When FEAT_SRMASK is implemented:
MRS <Xt>, TCR2ALIAS_EL1
(op0 = 0b11, op1 = 0b000, CRn = 0b0010, CRm = 0b0111, op2 = 0b111)
if !(IsFeatureImplemented(FEAT_TCR2) && IsFeatureImplemented(FEAT_AA64)) then
Undefined();
elsif HaveEL(EL3) && !(EffectivelyAtEL0InHost() || EffectivelyAtEL0NotInHost() || PSTATE.EL == EL3) && EL3SDDUndefPriority() && SCR_EL3().TCR2En == '0' then
Undefined();
elsif PSTATE.EL == EL0 then
Undefined();
elsif PSTATE.EL == EL1 then
if EL2Enabled() && HCR_EL2().TRVM == '1' then
AArch64_SystemAccessTrap(EL2, 0x18);
elsif EL2Enabled() && IsFeatureImplemented(FEAT_FGT2) && ((HaveEL(EL3) && SCR_EL3().FGTEn2 == '0') || HFGRTR2_EL2().nTCR2ALIAS_EL1 == '0') then
AArch64_SystemAccessTrap(EL2, 0x18);
elsif EL2Enabled() && (!IsHCRXEL2Enabled() || HCRX_EL2().TCR2En == '0') then
AArch64_SystemAccessTrap(EL2, 0x18);
elsif HaveEL(EL3) && SCR_EL3().TCR2En == '0' then
if EL3SDDUndef() then
Undefined();
else
AArch64_SystemAccessTrap(EL3, 0x18);
end;
elsif EffectiveHCR_EL2_NVx() IN {'111'} then
X{64}(t) = NVMem(0x270);
else
X{64}(t) = TCR2_EL1();
end;
elsif PSTATE.EL == EL2 then
if HaveEL(EL3) && SCR_EL3().TCR2En == '0' then
if EL3SDDUndef() then
Undefined();
else
AArch64_SystemAccessTrap(EL3, 0x18);
end;
elsif ELIsInHost(EL2) then
X{64}(t) = TCR2_EL2();
else
X{64}(t) = TCR2_EL1();
end;
elsif PSTATE.EL == EL3 then
X{64}(t) = TCR2_EL1();
end;
When FEAT_SRMASK is implemented:
MSR TCR2ALIAS_EL1, <Xt>
(op0 = 0b11, op1 = 0b000, CRn = 0b0010, CRm = 0b0111, op2 = 0b111)
if !(IsFeatureImplemented(FEAT_TCR2) && IsFeatureImplemented(FEAT_AA64)) then
Undefined();
elsif HaveEL(EL3) && !(EffectivelyAtEL0InHost() || EffectivelyAtEL0NotInHost() || PSTATE.EL == EL3) && EL3SDDUndefPriority() && SCR_EL3().TCR2En == '0' then
Undefined();
elsif PSTATE.EL == EL0 then
Undefined();
elsif PSTATE.EL == EL1 then
if EL2Enabled() && HCR_EL2().TVM == '1' then
AArch64_SystemAccessTrap(EL2, 0x18);
elsif EL2Enabled() && IsFeatureImplemented(FEAT_FGT2) && ((HaveEL(EL3) && SCR_EL3().FGTEn2 == '0') || HFGWTR2_EL2().nTCR2ALIAS_EL1 == '0') then
AArch64_SystemAccessTrap(EL2, 0x18);
elsif EL2Enabled() && (!IsHCRXEL2Enabled() || HCRX_EL2().TCR2En == '0') then
AArch64_SystemAccessTrap(EL2, 0x18);
elsif HaveEL(EL3) && SCR_EL3().TCR2En == '0' then
if EL3SDDUndef() then
Undefined();
else
AArch64_SystemAccessTrap(EL3, 0x18);
end;
elsif EffectiveHCR_EL2_NVx() IN {'111'} then
NVMem(0x270) = X{64}(t);
else
TCR2_EL1() = X{64}(t);
end;
elsif PSTATE.EL == EL2 then
if HaveEL(EL3) && SCR_EL3().TCR2En == '0' then
if EL3SDDUndef() then
Undefined();
else
AArch64_SystemAccessTrap(EL3, 0x18);
end;
elsif ELIsInHost(EL2) then
TCR2_EL2() = X{64}(t);
else
TCR2_EL1() = X{64}(t);
end;
elsif PSTATE.EL == EL3 then
TCR2_EL1() = X{64}(t);
end;
Version 2026.09 — Copyright © 2010-2026 Arm Limited or its affiliates.
This site is provided as a community resource and is NOT affiliated with nor endorsed by Arm Limited.