The TCR2_EL2 characteristics are:
The control register for stage 1 of the EL2&0 translation regime.
This register is present only when FEAT_TCR2 is implemented. Otherwise, direct accesses to TCR2_EL2 are UNDEFINED.
If EL2 is not implemented, this register is RES0 from EL3.
TCR2_EL2 is a 64-bit register.
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 | AMEC0 | HAFT | PTTWI | RES0 | AIE | POE | RES0 | PIE | PnCH |
Unless stated otherwise, all the bits in TCR2_EL2 are permitted to be cached in a TLB.
Reserved, RES0.
This field controls the enabling of the Alternate MECID translations for the EL2 translation regime.
TCR2_EL2.AMEC0 is provided to enable the safe update of MECID_A0_EL2, by disabling access and speculation to AMEC==1 Block or Page descriptors during the update.
AMEC0 | Meaning |
---|---|
0b0 |
Use of a Block or Page descriptor containing AMEC == 1 generates a Translation fault. |
0b1 |
Accesses translated by a Block or Page descriptor containing AMEC == 1 are associated with the MECID configured in MECID_A0_EL2. |
This bit is permitted to be cached in a TLB only if it is 1.
When EL3 is implemented and SCR_EL3.TCR2En == 0, this field is ignored by the PE and treated as zero.
When SCTLR2_EL2.EMEC is 0, this field is ignored by the PE and the bit position of AMEC is RES0 in Block and Page descriptors.
The reset behavior of this field is:
Accessing this field has the following behavior:
Reserved, RES0.
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. |
When EL3 is implemented and SCR_EL3.TCR2En == 0, this field is ignored by the PE and treated as zero.
The reset behavior of this field is:
Reserved, RES0.
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 EL2 or EL2&0 do not have the Reduced Coherence property. |
0b1 |
Write accesses generated by RCWS at EL2 or EL2&0 have the Reduced Coherence property. |
This bit is permitted to be implemented as a read-only bit with a fixed value of 0.
When EL3 is implemented and SCR_EL3.TCR2En == 0, this field is ignored by the PE and treated as zero.
The reset behavior of this field is:
Reserved, RES0.
Reserved, RES0.
Enable Attribute Indexing Extension.
AIE | Meaning |
---|---|
0b0 |
Attribute Indexing Extension Disabled. |
0b1 |
Attribute Indexing Extension Enabled. |
When EL3 is implemented and SCR_EL3.TCR2En == 0, this field is ignored by the PE and treated as zero.
The reset behavior of this field is:
Reserved, RES0.
Enables Permission Overlay for EL2 accesses.
POE | Meaning |
---|---|
0b0 |
Permission overlay disabled for EL2 access in stage 1 of EL2 translation regime. |
0b1 |
Permission overlay enabled for EL2 access in stage 1 of EL2 translation regime. |
This bit is not permitted to be cached in a TLB.
When EL3 is implemented and SCR_EL3.TCR2En == 0, this field is ignored by the PE and treated as zero.
The reset behavior of this field is:
Reserved, RES0.
Reserved, RES0.
Enables usage of Indirect Permission Scheme.
PIE | Meaning |
---|---|
0b0 |
Direct permission model. |
0b1 |
Indirect permission model. |
When EL3 is implemented and SCR_EL3.TCR2En == 0, this field is ignored by the PE and treated as zero.
The reset behavior of this field is:
Reserved, RES0.
Protected attribute enable.Indicates use of bit[52] of the stage 1 translation table entry.
PnCH | Meaning |
---|---|
0b0 |
Bit[52] of each stage 1 translation table entry does not indicate protected attribute. |
0b1 |
Bit[52] of each stage 1 translation table entry indicates protected attribute. |
When EL3 is implemented and SCR_EL3.TCR2En == 0, this field is ignored by the PE and treated as zero.
The reset behavior of this field is:
Reserved, RES0.
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 | FNG1 | FNG0 | A2 | DisCH1 | DisCH0 | AMEC1 | AMEC0 | HAFT | PTTWI | SKL1 | SKL0 | D128 | AIE | POE | E0POE | PIE | PnCH |
Unless stated otherwise, all the bits in TCR2_EL2 are permitted to be cached in a TLB.
Reserved, RES0.
Force non-global translations for TTBR1_EL2.
FNG1 | Meaning |
---|---|
0b0 |
This bit has no effect on the interpretation of the nG bit. |
0b1 |
Translations are treated as non-global regardless of the value of the nG bit. |
This bit is permitted to be cached in a TLB.
When EL3 is implemented and SCR_EL3.TCR2En == 0, this field is ignored by the PE and treated as zero.
The reset behavior of this field is:
Reserved, RES0.
Force non-global translations for TTBR0_EL2.
FNG0 | Meaning |
---|---|
0b0 |
This bit has no effect on the interpretation of the nG bit. |
0b1 |
Translations are treated as non-global regardless of the value of the nG bit. |
This bit is permitted to be cached in a TLB.
When EL3 is implemented and SCR_EL3.TCR2En == 0, this field is ignored by the PE and treated as zero.
The reset behavior of this field is:
Reserved, RES0.
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.
When EL3 is implemented and SCR_EL3.TCR2En == 0, this field is ignored by the PE and treated as zero.
The reset behavior of this field is:
Reserved, RES0.
Disable the Contiguous bit for the Start Table for TTBR1_EL2.
DisCH1 | Meaning |
---|---|
0b0 |
The Contiguous bit of Block or Page descriptors of the Start Table for TTBR1_EL2 is not affected by this field. |
0b1 |
The Contiguous bit of Block or Page descriptors of the Start Table for TTBR1_EL2 is treated as 0. |
When EL3 is implemented and SCR_EL3.TCR2En == 0, this field is ignored by the PE and treated as zero.
The reset behavior of this field is:
Reserved, RES0.
Disable the Contiguous bit for the Start Table for TTBR0_EL2.
DisCH0 | Meaning |
---|---|
0b0 |
The Contiguous bit of Block or Page descriptors of the Start Table for TTBR0_EL2 is not affected by this field. |
0b1 |
The Contiguous bit of Block or Page descriptors of the Start Table for TTBR0_EL2 is treated as 0. |
When EL3 is implemented and SCR_EL3.TCR2En == 0, this field is ignored by the PE and treated as zero.
The reset behavior of this field is:
Reserved, RES0.
This field controls the enabling of the Alternate MECID translations for accesses in the TTBR1_EL2 half of the VA range, for the EL2&0 translation regime.
TCR2_EL2.AMEC1 is provided to enable the safe update of MECID_A1_EL2, by disabling access and speculation to AMEC == 1 Block or Page descriptors during the update.
AMEC1 | Meaning |
---|---|
0b0 |
Use of a Block or Page descriptor containing AMEC == 1 generates a Translation fault. |
0b1 |
Accesses translated by a Block or Page descriptor containing AMEC == 1 are associated with the MECID configured in MECID_A1_EL2. |
This bit is permitted to be cached in a TLB only if it is 1.
When EL3 is implemented and SCR_EL3.TCR2En == 0, this field is ignored by the PE and treated as zero.
When SCTLR2_EL2.EMEC is 0, this field is ignored by the PE and the bit position of AMEC is RES0 in Block and Page descriptors.
The reset behavior of this field is:
Accessing this field has the following behavior:
Reserved, RES0.
This field controls the enabling of the Alternate MECID translations for accesses in the TTBR0_EL2 half of the VA range, for the EL2&0 translation regime.
TCR2_EL2.AMEC0 is provided to enable the safe update of MECID_A0_EL2, by disabling access and speculation to AMEC==1 Block or Page descriptors during the update.
AMEC0 | Meaning |
---|---|
0b0 |
Use of a Block or Page descriptor containing AMEC == 1 generates a Translation fault. |
0b1 |
Accesses translated by a Block or Page descriptor containing AMEC == 1 are associated with the MECID configured in MECID_A0_EL2. |
This bit is permitted to be cached in a TLB only if it is 1.
When EL3 is implemented and SCR_EL3.TCR2En == 0, this field is ignored by the PE and treated as zero.
When SCTLR2_EL2.EMEC is 0, this field is ignored by the PE and the bit position of AMEC is RES0 in Block and Page descriptors.
The reset behavior of this field is:
Accessing this field has the following behavior:
Reserved, RES0.
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. |
When EL3 is implemented and SCR_EL3.TCR2En == 0, this field is ignored by the PE and treated as zero.
The reset behavior of this field is:
Reserved, RES0.
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 do not have the Reduced Coherence property. |
0b1 |
Write accesses generated by RCWS have the Reduced Coherence property. |
This bit is permitted to be implemented as a read-only bit with a fixed value of 0.
When EL3 is implemented and SCR_EL3.TCR2En == 0, this field is ignored by the PE and treated as zero.
The reset behavior of this field is:
Reserved, RES0.
Skip Level associated with translation table walks using TTBR1_EL2.
This determines the number of levels to be skipped in the regular start level of the stage 1 EL2&0 translation table walks using TTBR1_EL2.
SKL1 | Meaning |
---|---|
0b00 |
Skip 0 level in the regular start level. |
0b01 |
Skip 1 level in the regular start level. |
0b10 |
Skip 2 levels in the regular start level. |
0b11 |
Skip 3 levels in the regular start level. |
This field is IGNORED when TCR2_EL2.D128 is 0.
When EL3 is implemented and SCR_EL3.TCR2En == 0, this field is ignored by the PE and treated as zero.
The reset behavior of this field is:
Reserved, RES0.
Skip Level associated with translation table walks using TTBR0_EL2.
This determines the number of levels to be skipped in the regular start level of the stage 1 EL2&0 translation table walks using TTBR0_EL2.
SKL0 | Meaning |
---|---|
0b00 |
Skip 0 level in the regular start level. |
0b01 |
Skip 1 level in the regular start level. |
0b10 |
Skip 2 levels in the regular start level. |
0b11 |
Skip 3 levels in the regular start level. |
This field is IGNORED when TCR2_EL2.D128 is 0.
When EL3 is implemented and SCR_EL3.TCR2En == 0, this field is ignored by the PE and treated as zero.
The reset behavior of this field is:
Reserved, RES0.
Enables VMSAv9-128 translation system.
D128 | Meaning |
---|---|
0b0 |
Translation system follows VMSA-64 translation process. |
0b1 |
Translation system follows VMSAv9-128 translation process. |
When EL3 is implemented and SCR_EL3.TCR2En == 0, this field is ignored by the PE and treated as zero.
The reset behavior of this field is:
Reserved, RES0.
Enable Attribute Indexing Extension.
AIE | Meaning |
---|---|
0b0 |
Attribute Indexing Extension Disabled. |
0b1 |
Attribute Indexing Extension Enabled. |
This field is RES1 when TCR2_EL2.D128 is 1.
When EL3 is implemented and SCR_EL3.TCR2En == 0, this field is ignored by the PE and treated as zero.
The reset behavior of this field is:
Reserved, RES0.
Enables Permission Overlay for privileged accesses from EL2&0 translation regime.
POE | Meaning |
---|---|
0b0 |
Permission overlay disabled for EL2 access in stage 1 of EL2&0 translation regime. |
0b1 |
Permission overlay enabled for EL2 access in stage 1 of EL2&0 translation regime. |
This bit is not permitted to be cached in a TLB.
When EL3 is implemented and SCR_EL3.TCR2En == 0, this field is ignored by the PE and treated as zero.
The reset behavior of this field is:
Reserved, RES0.
Enables Permission Overlay for unprivileged accesses from EL2&0 translation regime.
E0POE | Meaning |
---|---|
0b0 |
Permission overlay disabled for EL0 access in stage 1 of EL2&0 translation regime. |
0b1 |
Permission overlay enabled for EL0 access in stage 1 of EL2&0 translation regime. |
This bit is not permitted to be cached in a TLB.
When EL3 is implemented and SCR_EL3.TCR2En == 0, this field is ignored by the PE and treated as zero.
The reset behavior of this field is:
Reserved, RES0.
Enables usage of Indirect Permission Scheme.
PIE | Meaning |
---|---|
0b0 |
Direct permission model. |
0b1 |
Indirect permission model. |
This field is RES1 when TCR2_EL2.D128 is 1.
When EL3 is implemented and SCR_EL3.TCR2En == 0, this field is ignored by the PE and treated as zero.
The reset behavior of this field is:
Reserved, RES0.
Protected attribute enable.Indicates use of bit[52] of the stage 1 translation table entry.
PnCH | Meaning |
---|---|
0b0 |
Bit[52] of each stage 1 translation table entry does not indicate protected attribute. |
0b1 |
Bit[52] of each stage 1 translation table entry indicate protected attribute. |
This field is RES1 when TCR2_EL2.D128 is 1.
When EL3 is implemented and SCR_EL3.TCR2En == 0, this field is ignored by the PE and treated as zero.
The reset behavior of this field is:
Reserved, RES0.
When the Effective value of HCR_EL2.E2H is 1, without explicit synchronization, accesses from EL2 using the accessor name TCR2_EL2 or TCR2_EL1 are not guaranteed to be ordered with respect to accesses using the other accessor name.
Accesses to this register use the following encodings in the System register encoding space:
op0 | op1 | CRn | CRm | op2 |
---|---|---|---|---|
0b11 | 0b100 | 0b0010 | 0b0000 | 0b011 |
if PSTATE.EL == EL0 then UNDEFINED; elsif PSTATE.EL == EL1 then if EffectiveHCR_EL2_NVx() IN {'xx1'} then AArch64.SystemAccessTrap(EL2, 0x18); else UNDEFINED; elsif PSTATE.EL == EL2 then if HaveEL(EL3) && EL3SDDUndefPriority() && SCR_EL3.TCR2En == '0' then UNDEFINED; elsif HaveEL(EL3) && SCR_EL3.TCR2En == '0' then if EL3SDDUndef() then UNDEFINED; else AArch64.SystemAccessTrap(EL3, 0x18); else X[t, 64] = TCR2_EL2; elsif PSTATE.EL == EL3 then X[t, 64] = TCR2_EL2;
op0 | op1 | CRn | CRm | op2 |
---|---|---|---|---|
0b11 | 0b100 | 0b0010 | 0b0000 | 0b011 |
if PSTATE.EL == EL0 then UNDEFINED; elsif PSTATE.EL == EL1 then if EffectiveHCR_EL2_NVx() IN {'xx1'} then AArch64.SystemAccessTrap(EL2, 0x18); else UNDEFINED; elsif PSTATE.EL == EL2 then if HaveEL(EL3) && EL3SDDUndefPriority() && SCR_EL3.TCR2En == '0' then UNDEFINED; elsif HaveEL(EL3) && SCR_EL3.TCR2En == '0' then if EL3SDDUndef() then UNDEFINED; else AArch64.SystemAccessTrap(EL3, 0x18); else TCR2_EL2 = X[t, 64]; elsif PSTATE.EL == EL3 then TCR2_EL2 = X[t, 64];
op0 | op1 | CRn | CRm | op2 |
---|---|---|---|---|
0b11 | 0b000 | 0b0010 | 0b0000 | 0b011 |
if PSTATE.EL == EL0 then UNDEFINED; elsif PSTATE.EL == EL1 then if HaveEL(EL3) && EL3SDDUndefPriority() && SCR_EL3.TCR2En == '0' then UNDEFINED; elsif 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); elsif EffectiveHCR_EL2_NVx() IN {'111'} then X[t, 64] = NVMem[0x270]; else X[t, 64] = TCR2_EL1; elsif PSTATE.EL == EL2 then if HaveEL(EL3) && EL3SDDUndefPriority() && SCR_EL3.TCR2En == '0' then UNDEFINED; elsif HaveEL(EL3) && SCR_EL3.TCR2En == '0' then if EL3SDDUndef() then UNDEFINED; else AArch64.SystemAccessTrap(EL3, 0x18); elsif ELIsInHost(EL2) then X[t, 64] = TCR2_EL2; else X[t, 64] = TCR2_EL1; elsif PSTATE.EL == EL3 then X[t, 64] = TCR2_EL1;
op0 | op1 | CRn | CRm | op2 |
---|---|---|---|---|
0b11 | 0b000 | 0b0010 | 0b0000 | 0b011 |
if PSTATE.EL == EL0 then UNDEFINED; elsif PSTATE.EL == EL1 then if HaveEL(EL3) && EL3SDDUndefPriority() && SCR_EL3.TCR2En == '0' then UNDEFINED; elsif 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); elsif EffectiveHCR_EL2_NVx() IN {'111'} then NVMem[0x270] = X[t, 64]; else TCR2_EL1 = X[t, 64]; elsif PSTATE.EL == EL2 then if HaveEL(EL3) && EL3SDDUndefPriority() && SCR_EL3.TCR2En == '0' then UNDEFINED; elsif HaveEL(EL3) && SCR_EL3.TCR2En == '0' then if EL3SDDUndef() then UNDEFINED; else AArch64.SystemAccessTrap(EL3, 0x18); elsif ELIsInHost(EL2) then TCR2_EL2 = X[t, 64]; else TCR2_EL1 = X[t, 64]; elsif PSTATE.EL == EL3 then TCR2_EL1 = X[t, 64];
26/03/2024 09:49; 67c0ae5282a7629ba0ea0ba7267b43cd4f7939f6
Copyright © 2010-2024 Arm Limited or its affiliates. All rights reserved. This document is Non-Confidential.