The control register for stage 1 of the EL2, or EL2&0, translation regime:
AArch64 System register TCR_EL2 bits [31:0] are architecturally mapped to AArch32 System register HTCR[31:0].
If EL2 is not implemented, this register is RES0 from EL3.
This register has no effect if EL2 is not enabled in the current Security state.
TCR_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 | MTX | DS | |||||||||||||||||||||||||||||
RES1 | TCMA | TBID | HWU62 | HWU61 | HWU60 | HWU59 | HPD | RES1 | HD | HA | TBI | RES0 | PS | TG0 | SH0 | ORGN0 | IRGN0 | RES0 | T0SZ |
Any of the bits in TCR_EL2 are permitted to be cached in a TLB.
Reserved, RES0.
Extended memory tag checking.
This field controls address generation and tag checking when EL2 is using AArch64 where the data address would be translated by tables pointed to by TTBR0_EL2.
This control has an effect regardless of whether stage 1 of the EL2 translation regime is enabled or not.
MTX | Meaning |
---|---|
0b0 |
This control has no effect on the PE. |
0b1 | Bits[59:56] of a 64-bit VA hold a Logical Address Tag, and all of the following apply:
|
The reset behavior of this field is:
Reserved, RES0.
This field affects whether a 52-bit output address can be described by the translation tables of the 4KB or 16KB translation granules.
DS | Meaning |
---|---|
0b0 | Bits[49:48] of translation descriptors are RES0. Bits[9:8] in Block and Page descriptors encode shareability information in the SH[1:0] field. Bits[9:8] in table descriptors are ignored by hardware. The minimum value of TCR_EL2.T0SZ is 16. Any memory access using a smaller value generates a stage 1 level 0 translation table fault. Output address[51:48] is 0b0000. |
0b1 | Bits[49:48] of translation descriptors hold output address[49:48]. Bits[9:8] of Translation table descriptors hold output address[51:50]. The shareability information of Block and Page descriptors for cacheable locations is determined by TCR_EL2.SH0. The minimum value of TCR_EL2.T0SZ is 12. Any memory access using a smaller value generates a stage 1 level 0 translation table fault. All calculations of the stage 1 base address are modified for tables of fewer than 8 entries so that the table is aligned to 64 bytes. Bits[5:2] of TTBR0_EL2 are used to hold bits[51:48] of the output address in all cases. Note As FEAT_LVA must be implemented if TCR_EL2.DS == 1, the minimum value of the TCR_EL2.T0SZ field is 12, as determined by that extension. For the TLBI Range instructions affecting VA, the format of the argument is changed so that bits[36:0] hold BaseADDR[52:16]. For the 4KB translation granule, bits[15:12] of BaseADDR are treated as 0b0000. For the 16KB translation granule, bits[15:14] of BaseADDR are treated as 0b00. Note This forces alignment of the ranges used by the TLBI range instructions. |
This field is RES0 for a 64KB translation granule.
The reset behavior of this field is:
Reserved, RES0, and the Effective value of this bit is 0b0.
Reserved, RES1.
Controls the generation of Unchecked accesses at EL2 when address [59:56] = 0b0000.
TCMA | Meaning |
---|---|
0b0 |
This control has no effect on the generation of Unchecked accesses. |
0b1 |
All accesses are Unchecked. |
The reset behavior of this field is:
Reserved, RES0.
Controls the use of the top byte of instruction addresses for address matching.
For the purpose of this field, all cache maintenance and address translation instructions that perform address translation are treated as data accesses.
For more information, see 'Address tagging'.
TBID | Meaning |
---|---|
0b0 |
TCR_EL2.TBI applies to Instruction and Data accesses. |
0b1 |
TCR_EL2.TBI applies to Data accesses only. |
This affects addresses where the address would be translated by tables pointed to by TTBR0_EL2.
The reset behavior of this field is:
Reserved, RES0.
Hardware Use. Indicates IMPLEMENTATION DEFINED hardware use of bit[62] of the stage 1 translation table Block or Page entry.
HWU62 | Meaning |
---|---|
0b0 |
Bit[62] of each stage 1 translation table Block or Page entry cannot be used by hardware for an IMPLEMENTATION DEFINED purpose. |
0b1 |
Bit[62] of each stage 1 translation table Block or Page entry can be used by hardware for an IMPLEMENTATION DEFINED purpose if the value of TCR_EL2.HPD is 1. |
The Effective value of this field is 0 if the value of TCR_EL2.HPD is 0.
The reset behavior of this field is:
Reserved, RES0.
Hardware Use. Indicates IMPLEMENTATION DEFINED hardware use of bit[61] of the stage 1 translation table Block or Page entry.
HWU61 | Meaning |
---|---|
0b0 |
Bit[61] of each stage 1 translation table Block or Page entry cannot be used by hardware for an IMPLEMENTATION DEFINED purpose. |
0b1 |
Bit[61] of each stage 1 translation table Block or Page entry can be used by hardware for an IMPLEMENTATION DEFINED purpose if the value of TCR_EL2.HPD is 1. |
The Effective value of this field is 0 if the value of TCR_EL2.HPD is 0.
The reset behavior of this field is:
Reserved, RES0.
Hardware Use. Indicates IMPLEMENTATION DEFINED hardware use of bit[60] of the stage 1 translation table Block or Page entry.
HWU60 | Meaning |
---|---|
0b0 |
Bit[60] of each stage 1 translation table Block or Page entry cannot be used by hardware for an IMPLEMENTATION DEFINED purpose. |
0b1 |
Bit[60] of each stage 1 translation table Block or Page entry can be used by hardware for an IMPLEMENTATION DEFINED purpose if the value of TCR_EL2.HPD is 1. |
The Effective value of this field is 0 if the value of TCR_EL2.HPD is 0.
The reset behavior of this field is:
Reserved, RES0.
Hardware Use. Indicates IMPLEMENTATION DEFINED hardware use of bit[59] of the stage 1 translation table Block or Page entry.
HWU59 | Meaning |
---|---|
0b0 |
Bit[59] of each stage 1 translation table Block or Page entry cannot be used by hardware for an IMPLEMENTATION DEFINED purpose. |
0b1 |
Bit[59] of each stage 1 translation table Block or Page entry can be used by hardware for an IMPLEMENTATION DEFINED purpose if the value of TCR_EL2.HPD is 1. |
The Effective value of this field is 0 if the value of TCR_EL2.HPD is 0.
The reset behavior of this field is:
Reserved, RES0.
Hierarchical Permission Disables. This affects the hierarchical control bits, APTable, PXNTable, and UXNTable, except NSTable, in the translation tables pointed to by TTBR0_EL2.
HPD | Meaning |
---|---|
0b0 |
Hierarchical permissions are enabled. |
0b1 | Hierarchical permissions are disabled. Note In this case, bit[61] (APTable[0]) and bit[59] (PXNTable) of the next level descriptor attributes are required to be ignored by the PE and are no longer reserved, allowing them to be used by software. |
When disabled, the permissions are treated as if the bits are zero.
The reset behavior of this field is:
Reserved, RES0.
Reserved, RES1.
Hardware management of dirty state in stage 1 translations from EL2.
HD | Meaning |
---|---|
0b0 |
Stage 1 hardware management of dirty state disabled. |
0b1 |
Stage 1 hardware management of dirty state enabled, only if the HA bit is also set to 1. |
The reset behavior of this field is:
Reserved, RES0.
Hardware Access flag update in stage 1 translations from EL2.
HA | Meaning |
---|---|
0b0 |
Stage 1 Access flag update disabled. |
0b1 |
Stage 1 Access flag update enabled. |
The reset behavior of this field is:
Reserved, RES0.
Top Byte Ignored. Indicates whether the top byte of an address is used for address match for the TTBR0_EL2 region, or ignored and used for tagged addresses.
For more information, see 'Address tagging'.
TBI | Meaning |
---|---|
0b0 |
Top Byte used in the address calculation. |
0b1 |
Top Byte ignored in the address calculation. |
This affects addresses generated in EL2 using AArch64 where the address would be translated by tables pointed to by TTBR0_EL2. It has an effect whether the EL2, or EL2&0, translation regime is enabled or not.
If FEAT_PAuth is implemented and TCR_EL2.TBID is 1, then this field only applies to Data accesses.
If the value of TBI is 1, then bits[63:56] of that target address are also set to 0 before the address is stored in the PC, in the following cases:
The reset behavior of this field is:
Reserved, RES0.
Physical Address Size.
PS | Meaning | Applies when |
---|---|---|
0b000 |
32 bits, 4GB. | |
0b001 |
36 bits, 64GB. | |
0b010 |
40 bits, 1TB. | |
0b011 |
42 bits, 4TB. | |
0b100 |
44 bits, 16TB. | |
0b101 |
48 bits, 256TB. | |
0b110 |
52 bits, 4PB. | |
0b111 |
56 bits, 64PB. | When FEAT_D128 is implemented |
If the translation granule is not 64KB and FEAT_LPA2 is not implemented, the value 0b110 is treated as reserved.
It is IMPLEMENTATION DEFINED whether an implementation that does not implement FEAT_LPA supports setting the value of 0b110 for the 64KB translation granule size or whether setting this value behaves as the 0b101 encoding.
If the value of ID_AA64MMFR0_EL1.PARange is 0b0110, and the value of this field is not 0b110 or a value treated as 0b110, then bits[51:48] of every translation table base address for the stage of translation controlled by TCR_EL2 are 0b0000.
The reset behavior of this field is:
Granule size for the TTBR0_EL2.
TG0 | Meaning |
---|---|
0b00 |
4KB. |
0b01 |
64KB. |
0b10 |
16KB. |
Other values are reserved.
If the value is programmed to either a reserved value or a size that has not been implemented, then the hardware will treat the field as if it has been programmed to an IMPLEMENTATION DEFINED choice of the sizes that has been implemented for all purposes other than the value read back from this register.
It is IMPLEMENTATION DEFINED whether the value read back is the value programmed or the value that corresponds to the size chosen.
The reset behavior of this field is:
Shareability attribute for memory associated with translation table walks using TTBR0_EL2.
SH0 | Meaning |
---|---|
0b00 |
Non-shareable. |
0b10 |
Outer Shareable. |
0b11 |
Inner Shareable. |
Other values are reserved. The effect of programming this field to a Reserved value is that behavior is CONSTRAINED UNPREDICTABLE.
The reset behavior of this field is:
Outer cacheability attribute for memory associated with translation table walks using TTBR0_EL2.
ORGN0 | Meaning |
---|---|
0b00 |
Normal memory, Outer Non-cacheable. |
0b01 |
Normal memory, Outer Write-Back Read-Allocate Write-Allocate Cacheable. |
0b10 |
Normal memory, Outer Write-Through Read-Allocate No Write-Allocate Cacheable. |
0b11 |
Normal memory, Outer Write-Back Read-Allocate No Write-Allocate Cacheable. |
The reset behavior of this field is:
Inner cacheability attribute for memory associated with translation table walks using TTBR0_EL2.
IRGN0 | Meaning |
---|---|
0b00 |
Normal memory, Inner Non-cacheable. |
0b01 |
Normal memory, Inner Write-Back Read-Allocate Write-Allocate Cacheable. |
0b10 |
Normal memory, Inner Write-Through Read-Allocate No Write-Allocate Cacheable. |
0b11 |
Normal memory, Inner Write-Back Read-Allocate No Write-Allocate Cacheable. |
The reset behavior of this field is:
Reserved, RES0.
The size offset of the memory region addressed by TTBR0_EL2. The region size is 2(64-T0SZ) bytes.
The maximum and minimum possible values for T0SZ depend on the level of translation table and the memory translation granule size, as described in the AArch64 Virtual Memory System Architecture chapter.
For the 4KB translation granule, if FEAT_LPA2 is implemented and this field is less than 16, the translation table walk begins with a level -1 initial lookup.
For the 16KB translation granule, if FEAT_LPA2 is implemented and this field is less than 17, the translation table walk begins with a level 0 initial lookup.
The reset behavior of this field is:
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 | MTX1 | MTX0 | DS | TCMA1 | TCMA0 | E0PD1 | E0PD0 | NFD1 | NFD0 | TBID1 | TBID0 | HWU162 | HWU161 | HWU160 | HWU159 | HWU062 | HWU061 | HWU060 | HWU059 | HPD1 | HPD0 | HD | HA | TBI1 | TBI0 | AS | RES0 | IPS | |||
TG1 | SH1 | ORGN1 | IRGN1 | EPD1 | A1 | T1SZ | TG0 | SH0 | ORGN0 | IRGN0 | EPD0 | RES0 | T0SZ |
Any of the bits in TCR_EL2, other than the A1 bit and the EPDx bits when they have the value 1, are permitted to be cached in a TLB.
Reserved, RES0.
Extended memory tag checking.
This field controls address generation and tag checking when EL0 and EL2 are using AArch64 where the data address would be translated by tables pointed to by TTBR1_EL2.
This control has an effect regardless of whether stage 1 of the EL2&0 translation regime is enabled or not.
MTX1 | Meaning |
---|---|
0b0 |
This control has no effect on the PE. |
0b1 | Bits[59:56] of a 64-bit VA hold a Logical Address Tag, and all of the following apply:
|
The reset behavior of this field is:
Reserved, RES0.
Extended memory tag checking.
This field controls address generation and tag checking when EL0 and EL2 are using AArch64 where the data address would be translated by tables pointed to by TTBR0_EL2.
This control has an effect regardless of whether stage 1 of the EL2&0 translation regime is enabled or not.
MTX0 | Meaning |
---|---|
0b0 |
This control has no effect on the PE. |
0b1 | Bits[59:56] of a 64-bit VA hold a Logical Address Tag, and all of the following apply:
|
The reset behavior of this field is:
Reserved, RES0.
This field affects whether a 52-bit output address can be described by the translation tables of the 4KB or 16KB translation granules.
DS | Meaning |
---|---|
0b0 | Bits[49:48] of translation descriptors are RES0. Bits[9:8] in Block and Page descriptors encode shareability information in the SH[1:0] field. Bits[9:8] in table descriptors are ignored by hardware. The minimum value of the TCR_EL2.{T0SZ, T1SZ} fields is 16. Any memory access using a smaller value generates a stage 1 level 0 translation table fault. Output address[51:48] is 0b0000. |
0b1 | Bits[49:48] of translation descriptors hold output address[49:48]. Bits[9:8] of Translation table descriptors hold output address[51:50]. The shareability information of Block and Page descriptors for cacheable locations is determined by:
The minimum value of the TCR_EL2.{T0SZ, T1SZ} fields is 12. Any memory access using a smaller value generates a stage 1 level 0 translation table fault. All calculations of the stage 1 base address are modified for tables of fewer than 16 entries so that the table is aligned to 64 bytes. Bits[5:2] of TTBR0_EL2 or TTBR1_EL2 are used to hold bits[51:48] of the output address in all cases. Note As FEAT_LVA must be implemented if TCR_EL2.DS == 1, the minimum value of the TCR_EL2.{T0SZ, T1SZ} fields is 12, as determined by that extension. For the TLBI Range instructions affecting VA, the format of the argument is changed so that bits[36:0] hold BaseADDR[52:16]. For the 4KB translation granule, bits[15:12] of BaseADDR are treated as 0b0000. For the 16KB translation granule, bits[15:14] of BaseADDR are treated as 0b00. Note This forces alignment of the ranges used by the TLBI range instructions. |
This field is RES0 for a 64KB translation granule.
The reset behavior of this field is:
Reserved, RES0, and the Effective value of this bit is 0b0.
Controls the generation of Unchecked accesses at EL2, and at EL0 if HCR_EL2.TGE=1, when address[59:55] = 0b11111.
TCMA1 | Meaning |
---|---|
0b0 |
This control has no effect on the generation of Unchecked accesses at EL2 or EL0. |
0b1 |
All accesses are Unchecked. |
Software may change this control bit on a context switch.
The reset behavior of this field is:
Reserved, RES0.
Controls the generation of Unchecked accesses at EL2, and at EL0 if HCR_EL2.TGE=1, when address[59:55] = 0b00000.
TCMA0 | Meaning |
---|---|
0b0 |
This control has no effect on the generation of Unchecked accesses at EL2 or EL0. |
0b1 |
All accesses are Unchecked. |
Software may change this control bit on a context switch.
The reset behavior of this field is:
Reserved, RES0.
Faulting control for Unprivileged access to any address translated by TTBR1_EL2.
E0PD1 | Meaning |
---|---|
0b0 |
Unprivileged access to any address translated by TTBR1_EL2 will not generate a fault by this mechanism. |
0b1 |
Unprivileged access to any address translated by TTBR1_EL2 will generate a level 0 Translation fault. |
Level 0 Translation faults generated as a result of this field are not counted as TLB misses for performance monitoring. The fault should take the same time to generate, whether the address is present in the TLB or not, to mitigate attacks that use fault timing.
The reset behavior of this field is:
Reserved, RES0.
Faulting control for Unprivileged access to any address translated by TTBR0_EL2.
E0PD0 | Meaning |
---|---|
0b0 |
Unprivileged access to any address translated by TTBR0_EL2 will not generate a fault by this mechanism. |
0b1 |
Unprivileged access to any address translated by TTBR0_EL2 will generate a level 0 Translation fault. |
Level 0 Translation faults generated as a result of this field are not counted as TLB misses for performance monitoring. The fault should take the same time to generate, whether the address is present in the TLB or not, to mitigate attacks that use fault timing.
The reset behavior of this field is:
Reserved, RES0.
Non-Fault translation timing Disable when using TTBR1_EL2.
Controls how a TLB miss is reported in response to a non-fault unprivileged access for a virtual address that is translated using TTBR1_EL2.
If SVE is implemented, the affected access types include:
If FEAT_TME is implemented, the affected access types include all accesses generated by a load or store instruction in Transactional state.
NFD1 | Meaning |
---|---|
0b0 |
Does not affect the handling of a TLB miss on accesses translated using TTBR1_EL2. |
0b1 |
A TLB miss on a virtual address that is translated using TTBR1_EL2 due to the specified access types causes the access to fail without taking an exception. The amount of time that the failure takes to be handled should not predictively leak whether it was caused by a TLB miss or a Permission fault, to mitigate attacks that use fault timing. |
The reset behavior of this field is:
Reserved, RES0.
Non-Fault translation timing Disable when using TTBR0_EL2.
Controls how a TLB miss is reported in response to a non-fault unprivileged access for a virtual address that is translated using TTBR0_EL2.
If SVE is implemented, the affected access types include:
If FEAT_TME is implemented, the affected access types include all accesses generated by a load or store instruction in Transactional state.
NFD0 | Meaning |
---|---|
0b0 |
Does not affect the handling of a TLB miss on accesses translated using TTBR0_EL2. |
0b1 |
A TLB miss on a virtual address that is translated using TTBR0_EL2 due to the specified access types causes the access to fail without taking an exception. The amount of time that the failure takes to be handled should not predictively leak whether it was caused by a TLB miss or a Permission fault, to mitigate attacks that use fault timing. |
The reset behavior of this field is:
Reserved, RES0.
Controls the use of the top byte of instruction addresses for address matching.
For the purpose of this field, all cache maintenance and address translation instructions that perform address translation are treated as data accesses.
For more information, see 'Address tagging'.
TBID1 | Meaning |
---|---|
0b0 |
TCR_EL2.TBI1 applies to Instruction and Data accesses. |
0b1 |
TCR_EL2.TBI1 applies to Data accesses only. |
This affects addresses where the address would be translated by tables pointed to by TTBR1_EL2.
The reset behavior of this field is:
Reserved, RES0.
Controls the use of the top byte of instruction addresses for address matching.
For more information, see 'Address tagging'.
TBID0 | Meaning |
---|---|
0b0 |
TCR_EL2.TBI0 applies to Instruction and Data accesses. |
0b1 |
TCR_EL2.TBI0 applies to Data accesses only. |
This affects addresses where the address would be translated by tables pointed to by TTBR0_EL2.
The reset behavior of this field is:
Reserved, RES0.
Hardware Use. Indicates IMPLEMENTATION DEFINED hardware use of bit[62] of the stage 1 translation table Block or Page entry for translations using TTBR1_EL2.
HWU162 | Meaning |
---|---|
0b0 |
For translations using TTBR1_EL2, bit[62] of each stage 1 translation table Block or Page entry cannot be used by hardware for an IMPLEMENTATION DEFINED purpose. |
0b1 |
For translations using TTBR1_EL2, bit[62] of each stage 1 translation table Block or Page entry can be used by hardware for an IMPLEMENTATION DEFINED purpose if the value of TCR_EL2.HPD1 is 1. |
The Effective value of this field is 0 if the value of TCR_EL2.HPD1 is 0.
The reset behavior of this field is:
Reserved, RES0.
Hardware Use. Indicates IMPLEMENTATION DEFINED hardware use of bit[61] of the stage 1 translation table Block or Page entry for translations using TTBR1_EL2.
HWU161 | Meaning |
---|---|
0b0 |
For translations using TTBR1_EL2, bit[61] of each stage 1 translation table Block or Page entry cannot be used by hardware for an IMPLEMENTATION DEFINED purpose. |
0b1 |
For translations using TTBR1_EL2, bit[61] of each stage 1 translation table Block or Page entry can be used by hardware for an IMPLEMENTATION DEFINED purpose if the value of TCR_EL2.HPD1 is 1. |
The Effective value of this field is 0 if the value of TCR_EL2.HPD1 is 0.
The reset behavior of this field is:
Reserved, RES0.
Hardware Use. Indicates IMPLEMENTATION DEFINED hardware use of bit[60] of the stage 1 translation table Block or Page entry for translations using TTBR1_EL2.
HWU160 | Meaning |
---|---|
0b0 |
For translations using TTBR1_EL2, bit[60] of each stage 1 translation table Block or Page entry cannot be used by hardware for an IMPLEMENTATION DEFINED purpose. |
0b1 |
For translations using TTBR1_EL2, bit[60] of each stage 1 translation table Block or Page entry can be used by hardware for an IMPLEMENTATION DEFINED purpose if the value of TCR_EL2.HPD1 is 1. |
The Effective value of this field is 0 if the value of TCR_EL2.HPD1 is 0.
The reset behavior of this field is:
Reserved, RES0.
Hardware Use. Indicates IMPLEMENTATION DEFINED hardware use of bit[59] of the stage 1 translation table Block or Page entry for translations using TTBR1_EL2.
HWU159 | Meaning |
---|---|
0b0 |
For translations using TTBR1_EL2, bit[59] of each stage 1 translation table Block or Page entry cannot be used by hardware for an IMPLEMENTATION DEFINED purpose. |
0b1 |
For translations using TTBR1_EL2, bit[59] of each stage 1 translation table Block or Page entry can be used by hardware for an IMPLEMENTATION DEFINED purpose if the value of TCR_EL2.HPD1 is 1. |
The Effective value of this field is 0 if the value of TCR_EL2.HPD1 is 0.
The reset behavior of this field is:
Reserved, RES0.
Hardware Use. Indicates IMPLEMENTATION DEFINED hardware use of bit[62] of the stage 1 translation table Block or Page entry for translations using TTBR0_EL1.
HWU062 | Meaning |
---|---|
0b0 |
For translations using TTBR0_EL1, bit[62] of each stage 1 translation table Block or Page entry cannot be used by hardware for an IMPLEMENTATION DEFINED purpose. |
0b1 |
For translations using TTBR0_EL1, bit[62] of each stage 1 translation table Block or Page entry can be used by hardware for an IMPLEMENTATION DEFINED purpose if the value of TCR_EL2.HPD0 is 1. |
The Effective value of this field is 0 if the value of TCR_EL2.HPD0 is 0.
The reset behavior of this field is:
Reserved, RES0.
Hardware Use. Indicates IMPLEMENTATION DEFINED hardware use of bit[61] of the stage 1 translation table Block or Page entry for translations using TTBR0_EL1.
HWU061 | Meaning |
---|---|
0b0 |
For translations using TTBR0_EL1, bit[61] of each stage 1 translation table Block or Page entry cannot be used by hardware for an IMPLEMENTATION DEFINED purpose. |
0b1 |
For translations using TTBR0_EL1, bit[61] of each stage 1 translation table Block or Page entry can be used by hardware for an IMPLEMENTATION DEFINED purpose if the value of TCR_EL2.HPD0 is 1. |
The Effective value of this field is 0 if the value of TCR_EL2.HPD0 is 0.
The reset behavior of this field is:
Reserved, RES0.
Hardware Use. Indicates IMPLEMENTATION DEFINED hardware use of bit[60] of the stage 1 translation table Block or Page entry for translations using TTBR0_EL1.
HWU060 | Meaning |
---|---|
0b0 |
For translations using TTBR0_EL1, bit[60] of each stage 1 translation table Block or Page entry cannot be used by hardware for an IMPLEMENTATION DEFINED purpose. |
0b1 |
For translations using TTBR0_EL1, bit[60] of each stage 1 translation table Block or Page entry can be used by hardware for an IMPLEMENTATION DEFINED purpose if the value of TCR_EL2.HPD0 is 1. |
The Effective value of this field is 0 if the value of TCR_EL2.HPD0 is 0.
The reset behavior of this field is:
Reserved, RES0.
Hardware Use. Indicates IMPLEMENTATION DEFINED hardware use of bit[59] of the stage 1 translation table Block or Page entry for translations using TTBR0_EL1.
HWU059 | Meaning |
---|---|
0b0 |
For translations using TTBR0_EL1, bit[59] of each stage 1 translation table Block or Page entry cannot be used by hardware for an IMPLEMENTATION DEFINED purpose. |
0b1 |
For translations using TTBR0_EL1, bit[59] of each stage 1 translation table Block or Page entry can be used by hardware for an IMPLEMENTATION DEFINED purpose if the value of TCR_EL2.HPD0 is 1. |
The Effective value of this field is 0 if the value of TCR_EL2.HPD0 is 0.
The reset behavior of this field is:
Reserved, RES0.
Hierarchical Permission Disables. This affects the hierarchical control bits, APTable, PXNTable, and UXNTable, except NSTable, in the translation tables pointed to by TTBR1_EL2.
HPD1 | Meaning |
---|---|
0b0 |
Hierarchical permissions are enabled. |
0b1 |
Hierarchical permissions are disabled. |
When disabled, the permissions are treated as if the bits are zero.
The reset behavior of this field is:
Reserved, RES0.
Hierarchical Permission Disables. This affects the hierarchical control bits, APTable, PXNTable, and UXNTable, except NSTable, in the translation tables pointed to by TTBR0_EL2.
HPD0 | Meaning |
---|---|
0b0 |
Hierarchical permissions are enabled. |
0b1 |
Hierarchical permissions are disabled. |
When disabled, the permissions are treated as if the bits are zero.
The reset behavior of this field is:
Reserved, RES0.
Hardware management of dirty state in stage 1 translations from EL2.
HD | Meaning |
---|---|
0b0 |
Stage 1 hardware management of dirty state disabled. |
0b1 |
Stage 1 hardware management of dirty state enabled, only if the HA bit is also set to 1. |
The reset behavior of this field is:
Reserved, RES0.
Hardware Access flag update in stage 1 translations from EL2.
HA | Meaning |
---|---|
0b0 |
Stage 1 Access flag update disabled. |
0b1 |
Stage 1 Access flag update enabled. |
The reset behavior of this field is:
Reserved, RES0.
Top Byte Ignored. Indicates whether the top byte of an address is used for address match for the TTBR1_EL2 region, or ignored and used for tagged addresses.
For more information, see 'Address tagging'.
TBI1 | Meaning |
---|---|
0b0 |
Top Byte used in the address calculation. |
0b1 |
Top Byte ignored in the address calculation. |
This affects addresses generated in EL0 and EL2 using AArch64 where the address would be translated by tables pointed to by TTBR1_EL2. It has an effect whether the EL2, or EL2&0, translation regime is enabled or not.
If FEAT_PAuth is implemented and TCR_EL2.TBID1 is 1, then this field only applies to Data accesses.
If the value of TBI1 is 1 and bit [55] of the target address to be stored to the PC is 1, then bits[63:56] of that target address are also set to 1 before the address is stored in the PC, in the following cases:
The reset behavior of this field is:
Top Byte Ignored. Indicates whether the top byte of an address is used for address match for the TTBR0_EL2 region, or ignored and used for tagged addresses.
For more information, see 'Address tagging'.
TBI0 | Meaning |
---|---|
0b0 |
Top Byte used in the address calculation. |
0b1 |
Top Byte ignored in the address calculation. |
This affects addresses generated in EL0 and EL2 using AArch64 where the address would be translated by tables pointed to by TTBR0_EL2. It has an effect whether the EL2, or EL2&0, translation regime is enabled or not.
If FEAT_PAuth is implemented and TCR_EL2.TBID0 is 1, then this field only applies to Data accesses.
If the value of TBI0 is 1 and bit [55] of the target address to be stored to the PC is 0, then bits[63:56] of that target address are also set to 0 before the address is stored in the PC, in the following cases:
The reset behavior of this field is:
ASID Size.
AS | Meaning |
---|---|
0b0 |
8 bit - the upper 8 bits of TTBR0_EL2 and TTBR1_EL2 are ignored by hardware for every purpose except reading back the register, and are treated as if they are all zeros for when used for allocation and matching entries in the TLB. |
0b1 |
16 bit - the upper 16 bits of TTBR0_EL2 and TTBR1_EL2 are used for allocation and matching in the TLB. |
If the implementation has only 8 bits of ASID, this field is RES0.
The reset behavior of this field is:
Reserved, RES0.
Intermediate Physical Address Size.
IPS | Meaning | Applies when |
---|---|---|
0b000 |
32 bits, 4GB. | |
0b001 |
36 bits, 64GB. | |
0b010 |
40 bits, 1TB. | |
0b011 |
42 bits, 4TB. | |
0b100 |
44 bits, 16TB. | |
0b101 |
48 bits, 256TB. | |
0b110 |
52 bits, 4PB. | When FEAT_LPA is implemented |
All other values are reserved.
The reserved values behave in the same way as the 0b101 or 0b110 encoding, but software must not rely on this property as the behavior of the reserved values might change in a future revision of the architecture.
If the translation granule is not 64KB, the value 0b110 is treated as reserved.
It is IMPLEMENTATION DEFINED whether an implementation that does not implement FEAT_LPA supports setting the value of 0b110 for the 64KB translation granule size or whether setting this value behaves as the 0b101 encoding.
If the value of ID_AA64MMFR0_EL1.PARange is 0b0110, and the value of this field is not 0b110 or a value treated as 0b110, then bits[51:48] of every translation table base address for the stage of translation controlled by TCR_EL2 are 0b0000.
The reset behavior of this field is:
Granule size for the TTBR1_EL2.
TG1 | Meaning |
---|---|
0b01 |
16KB. |
0b10 |
4KB. |
0b11 |
64KB. |
Other values are reserved.
If the value is programmed to either a reserved value, or a size that has not been implemented, then the hardware will treat the field as if it has been programmed to an IMPLEMENTATION DEFINED choice of the sizes that has been implemented for all purposes other than the value read back from this register.
It is IMPLEMENTATION DEFINED whether the value read back is the value programmed or the value that corresponds to the size chosen.
The reset behavior of this field is:
Shareability attribute for memory associated with translation table walks using TTBR1_EL2.
SH1 | Meaning |
---|---|
0b00 |
Non-shareable. |
0b10 |
Outer Shareable. |
0b11 |
Inner Shareable. |
Other values are reserved. The effect of programming this field to a Reserved value is that behavior is CONSTRAINED UNPREDICTABLE.
The reset behavior of this field is:
Outer cacheability attribute for memory associated with translation table walks using TTBR1_EL2.
ORGN1 | Meaning |
---|---|
0b00 |
Normal memory, Outer Non-cacheable. |
0b01 |
Normal memory, Outer Write-Back Read-Allocate Write-Allocate Cacheable. |
0b10 |
Normal memory, Outer Write-Through Read-Allocate No Write-Allocate Cacheable. |
0b11 |
Normal memory, Outer Write-Back Read-Allocate No Write-Allocate Cacheable. |
The reset behavior of this field is:
Inner cacheability attribute for memory associated with translation table walks using TTBR1_EL2.
IRGN1 | Meaning |
---|---|
0b00 |
Normal memory, Inner Non-cacheable. |
0b01 |
Normal memory, Inner Write-Back Read-Allocate Write-Allocate Cacheable. |
0b10 |
Normal memory, Inner Write-Through Read-Allocate No Write-Allocate Cacheable. |
0b11 |
Normal memory, Inner Write-Back Read-Allocate No Write-Allocate Cacheable. |
The reset behavior of this field is:
Translation table walk disable for translations using TTBR1_EL2. This bit controls whether a translation table walk is performed on a TLB miss, for an address that is translated using TTBR1_EL2. The encoding of this bit is:
EPD1 | Meaning |
---|---|
0b0 |
Perform translation table walks using TTBR1_EL2. |
0b1 |
A TLB miss on an address that is translated using TTBR1_EL2 generates a Translation fault. No translation table walk is performed. |
The reset behavior of this field is:
Selects whether TTBR0_EL2 or TTBR1_EL2 defines the ASID. The encoding of this bit is:
A1 | Meaning |
---|---|
0b0 |
TTBR0_EL2.ASID defines the ASID. |
0b1 |
TTBR1_EL2.ASID defines the ASID. |
The reset behavior of this field is:
The size offset of the memory region addressed by TTBR1_EL2. The region size is 2(64-T1SZ) bytes.
The maximum and minimum possible values for T1SZ depend on the level of translation table and the memory translation granule size, as described in the AArch64 Virtual Memory System Architecture chapter.
For the 4KB translation granule, if FEAT_LPA2 is implemented and this field is less than 16, the translation table walk begins with a level -1 initial lookup.
For the 16KB translation granule, if FEAT_LPA2 is implemented and this field is less than 17, the translation table walk begins with a level 0 initial lookup.
The reset behavior of this field is:
Granule size for the TTBR0_EL2.
TG0 | Meaning |
---|---|
0b00 |
4KB. |
0b01 |
64KB. |
0b10 |
16KB. |
Other values are reserved.
If the value is programmed to either a reserved value, or a size that has not been implemented, then the hardware will treat the field as if it has been programmed to an IMPLEMENTATION DEFINED choice of the sizes that has been implemented for all purposes other than the value read back from this register.
It is IMPLEMENTATION DEFINED whether the value read back is the value programmed or the value that corresponds to the size chosen.
The reset behavior of this field is:
Shareability attribute for memory associated with translation table walks using TTBR0_EL2.
SH0 | Meaning |
---|---|
0b00 |
Non-shareable. |
0b10 |
Outer Shareable. |
0b11 |
Inner Shareable. |
Other values are reserved. The effect of programming this field to a Reserved value is that behavior is CONSTRAINED UNPREDICTABLE.
The reset behavior of this field is:
Outer cacheability attribute for memory associated with translation table walks using TTBR0_EL2.
ORGN0 | Meaning |
---|---|
0b00 |
Normal memory, Outer Non-cacheable. |
0b01 |
Normal memory, Outer Write-Back Read-Allocate Write-Allocate Cacheable. |
0b10 |
Normal memory, Outer Write-Through Read-Allocate No Write-Allocate Cacheable. |
0b11 |
Normal memory, Outer Write-Back Read-Allocate No Write-Allocate Cacheable. |
The reset behavior of this field is:
Inner cacheability attribute for memory associated with translation table walks using TTBR0_EL2.
IRGN0 | Meaning |
---|---|
0b00 |
Normal memory, Inner Non-cacheable. |
0b01 |
Normal memory, Inner Write-Back Read-Allocate Write-Allocate Cacheable. |
0b10 |
Normal memory, Inner Write-Through Read-Allocate No Write-Allocate Cacheable. |
0b11 |
Normal memory, Inner Write-Back Read-Allocate No Write-Allocate Cacheable. |
The reset behavior of this field is:
Translation table walk disable for translations using TTBR0_EL2. This bit controls whether a translation table walk is performed on a TLB miss, for an address that is translated using TTBR0_EL2. The encoding of this bit is:
EPD0 | Meaning |
---|---|
0b0 |
Perform translation table walks using TTBR0_EL2. |
0b1 |
A TLB miss on an address that is translated using TTBR0_EL2 generates a Translation fault. No translation table walk is performed. |
The reset behavior of this field is:
Reserved, RES0.
The size offset of the memory region addressed by TTBR0_EL2. The region size is 2(64-T0SZ) bytes.
The maximum and minimum possible values for T0SZ depend on the level of translation table and the memory translation granule size, as described in the AArch64 Virtual Memory System Architecture chapter.
For the 4KB translation granule, if FEAT_LPA2 is implemented and this field is less than 16, the translation table walk begins with a level -1 initial lookup.
For the 16KB translation granule, if FEAT_LPA2 is implemented and this field is less than 17, the translation table walk begins with a level 0 initial lookup.
The reset behavior of this field is:
When the Effective value of HCR_EL2.E2H is 1, without explicit synchronization, access from EL2 using the mnemonic TCR_EL2 or TCR_EL1 are not guaranteed to be ordered with respect to accesses using the other mnemonic.
Accesses to this register use the following encodings in the System register encoding space:
MRS <Xt>, TCR_EL2
op0 | op1 | CRn | CRm | op2 |
---|---|---|---|---|
0b11 | 0b100 | 0b0010 | 0b0000 | 0b010 |
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 X[t, 64] = TCR_EL2; elsif PSTATE.EL == EL3 then X[t, 64] = TCR_EL2;
MSR TCR_EL2, <Xt>
op0 | op1 | CRn | CRm | op2 |
---|---|---|---|---|
0b11 | 0b100 | 0b0010 | 0b0000 | 0b010 |
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 TCR_EL2 = X[t, 64]; elsif PSTATE.EL == EL3 then TCR_EL2 = X[t, 64];
When FEAT_VHE is implementedMRS <Xt>, TCR_EL1
op0 | op1 | CRn | CRm | op2 |
---|---|---|---|---|
0b11 | 0b000 | 0b0010 | 0b0000 | 0b010 |
if 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 EffectiveHCR_EL2_NVx() == '111' then X[t, 64] = NVMem[0x120]; else X[t, 64] = TCR_EL1; elsif PSTATE.EL == EL2 then if ELIsInHost(EL2) then X[t, 64] = TCR_EL2; else X[t, 64] = TCR_EL1; elsif PSTATE.EL == EL3 then X[t, 64] = TCR_EL1;
When FEAT_VHE is implementedMSR TCR_EL1, <Xt>
op0 | op1 | CRn | CRm | op2 |
---|---|---|---|---|
0b11 | 0b000 | 0b0010 | 0b0000 | 0b010 |
if 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 EffectiveHCR_EL2_NVx() == '111' then NVMem[0x120] = X[t, 64]; else TCR_EL1 = X[t, 64]; elsif PSTATE.EL == EL2 then if ELIsInHost(EL2) then TCR_EL2 = X[t, 64]; else TCR_EL1 = X[t, 64]; elsif PSTATE.EL == EL3 then TCR_EL1 = X[t, 64];