The HCR2 characteristics are:
Provides additional configuration controls for virtualization.
AArch32 System register HCR2 bits [31:0] are architecturally mapped to AArch64 System register HCR_EL2[63:32].
This register is present only when EL2 is capable of using AArch32. Otherwise, direct accesses to HCR2 are UNDEFINED.
If EL2 is not implemented, this register is RES0 from EL3.
HCR2 is a 32-bit register.
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 | TTLBIS | RES0 | TOCU | RES0 | TICAB | TID4 | RES0 | MIOCNCE | TEA | TERR | RES0 | ID | CD |
Reserved, RES0.
Trap TLB maintenance instructions that operate on the Inner Shareable domain. Traps execution of the following TLB maintenance instructions at EL1 to EL2:
TLBIALLIS, TLBIASIDIS, TLBIMVAAIS, TLBIMVAALIS, TLBIMVAIS, and TLBIMVALIS
TTLBIS | Meaning |
---|---|
0b0 |
This control does not cause any instructions to be trapped. |
0b1 |
Non-secure EL1 execution of the specified TLB maintenance instructions is trapped to EL2. |
When the Effective value of HCR_EL2.{E2H, TGE} is {1, 1}, the Effective value of this field is 0.
The reset behavior of this field is:
Reserved, RES0.
Reserved, RES0.
Trap cache maintenance instructions that operate to the Point of Unification. Traps execution of DCCMVAU, ICIALLU, and ICIMVAU at EL1 to EL2.
TOCU | Meaning |
---|---|
0b0 |
This control does not cause any instructions to be trapped. |
0b1 |
Non-secure execution of the specified cache maintenance instructions is trapped to EL2. |
If the Point of Unification is before any level of data cache, it is IMPLEMENTATION DEFINED whether the execution of any data or unified cache clean by VA to the Point of Unification instruction can be trapped when the value of this control is 1.
If the Point of Unification is before any level of instruction cache, it is IMPLEMENTATION DEFINED whether the execution of any instruction cache invalidate to the Point of Unification instruction can be trapped when the value of this control is 1.
When the Effective value of HCR_EL2.{E2H, TGE} is {1, 1}, the Effective value of this field is 0.
The reset behavior of this field is:
Reserved, RES0.
Reserved, RES0.
Trap ICIALLUIS cache maintenance instructions. Traps execution of those cache maintenance instructions at EL1 to EL2.
This applies to the following instructions:
TICAB | Meaning |
---|---|
0b0 |
This control does not cause any instructions to be trapped. |
0b1 |
Non-secure EL1 execution of the specified cache maintenance instructions is trapped to EL2. |
If the Point of Unification is before any level of instruction cache, it is IMPLEMENTATION DEFINED whether the execution of any instruction cache invalidate to the Point of Unification instruction can be trapped when the value of this control is 1.
When the Effective value of HCR_EL2.{E2H, TGE} is {1, 1}, the Effective value of this field is 0.
The reset behavior of this field is:
Reserved, RES0.
Trap ID group 4. Traps the following register accesses to EL2:
TID4 | Meaning |
---|---|
0b0 |
This control does not cause any instructions to be trapped. |
0b1 |
The specified Non-secure EL1 and EL0 accesses to ID group 4 registers are trapped to EL2. |
When the Effective value of HCR_EL2.{E2H, TGE} is {1, 1}, the Effective value of this field is 0.
The reset behavior of this field is:
Reserved, RES0.
Reserved, RES0.
Mismatched Inner/Outer Cacheable Non-Coherency Enable, for the Non-secure PL1&0 translation regime.
MIOCNCE | Meaning |
---|---|
0b0 |
For the Non-secure PL1&0 translation regime, for permitted accesses to a memory location that use a common definition of the Shareability and Cacheability of the location, there must be no loss of coherency if the Inner Cacheability attribute for those accesses differs from the Outer Cacheability attribute. |
0b1 |
For the Non-secure PL1&0 translation regime, for permitted accesses to a memory location that use a common definition of the Shareability and Cacheability of the location, there might be a loss of coherency if the Inner Cacheability attribute for those accesses differs from the Outer Cacheability attribute. |
For more information, see 'Mismatched memory attributes'.
This field can be implemented as RAZ/WI.
The reset behavior of this field is:
Route synchronous External abort exceptions from EL0 and EL1 to EL2.
TEA | Meaning |
---|---|
0b0 |
Does not route synchronous External abort exceptions from Non-secure EL0 and EL1 to EL2. |
0b1 |
Route synchronous External abort exceptions from Non-secure EL0 and EL1 to EL2, if not routed to EL3. |
The reset behavior of this field is:
Reserved, RES0.
Trap Error record accesses from EL1 to EL2. Traps MRC or MCR accesses, reported using EC syndrome value 0x03, and MRRC or MCRR accesses, reported using EC syndrome value 0x04, to the following registers from EL1 to EL2:
ERRIDR, ERRSELR, ERXADDR, ERXADDR2, ERXCTLR, ERXCTLR2, ERXFR, ERXFR2, ERXMISC0, ERXMISC1, ERXMISC2, ERXMISC3, and ERXSTATUS.
When FEAT_RASv1p1 is implemented, ERXMISC4, ERXMISC5, ERXMISC6, and ERXMISC7.
TERR | Meaning |
---|---|
0b0 |
This control does not cause any instructions to be trapped. |
0b1 |
Accesses to the specified registers from EL1 generate a Trap exception to EL2. |
The reset behavior of this field is:
Reserved, RES0.
Reserved, RES0.
Stage 2 Instruction access cacheability disable. For the Non-secure PL1&0 translation regime, when HCR.VM==1, this control forces all stage 2 translations for instruction accesses to Normal memory to be Non-cacheable.
ID | Meaning |
---|---|
0b0 |
This control has no effect on stage 2 of the Non-secure PL1&0 translation regime. |
0b1 |
For the Non-secure PL1&0 translation regime, forces all stage 2 translations for instruction accesses to Normal memory to be Non-cacheable. |
This bit has no effect on the EL2 translation regime.
The reset behavior of this field is:
Stage 2 Data access cacheability disable. When HCR.VM==1, this forces all stage 2 translations for data accesses and translation table walks to Normal memory to be Non-cacheable for the Non-secure PL1&0 translation regime.
CD | Meaning |
---|---|
0b0 |
This control has no effect on stage 2 of the Non-secure PL1&0 translation regime for data accesses and translation table walks. |
0b1 |
For the Non-secure PL1&0 translation regime, forces all stage 2 translations for data accesses and translation table walks to Normal memory to be Non-cacheable. |
This bit has no effect on the EL2 translation regime.
The reset behavior of this field is:
Accesses to this register use the following encodings in the System register encoding space:
coproc | opc1 | CRn | CRm | opc2 |
---|---|---|---|---|
0b1111 | 0b100 | 0b0001 | 0b0001 | 0b100 |
if PSTATE.EL == EL0 then UNDEFINED; elsif PSTATE.EL == EL1 then if EL2Enabled() && !ELUsingAArch32(EL2) && HSTR_EL2.T1 == '1' then AArch64.AArch32SystemAccessTrap(EL2, 0x03); elsif EL2Enabled() && ELUsingAArch32(EL2) && HSTR.T1 == '1' then AArch32.TakeHypTrapException(0x03); else UNDEFINED; elsif PSTATE.EL == EL2 then R[t] = HCR2; elsif PSTATE.EL == EL3 then if SCR.NS == '0' then UNDEFINED; else R[t] = HCR2;
coproc | opc1 | CRn | CRm | opc2 |
---|---|---|---|---|
0b1111 | 0b100 | 0b0001 | 0b0001 | 0b100 |
if PSTATE.EL == EL0 then UNDEFINED; elsif PSTATE.EL == EL1 then if EL2Enabled() && !ELUsingAArch32(EL2) && HSTR_EL2.T1 == '1' then AArch64.AArch32SystemAccessTrap(EL2, 0x03); elsif EL2Enabled() && ELUsingAArch32(EL2) && HSTR.T1 == '1' then AArch32.TakeHypTrapException(0x03); else UNDEFINED; elsif PSTATE.EL == EL2 then HCR2 = R[t]; elsif PSTATE.EL == EL3 then if SCR.NS == '0' then UNDEFINED; else HCR2 = R[t];
26/03/2024 09:49; 67c0ae5282a7629ba0ea0ba7267b43cd4f7939f6
Copyright © 2010-2024 Arm Limited or its affiliates. All rights reserved. This document is Non-Confidential.