HAFGRTR_EL2
Hypervisor Activity Monitors Fine-Grained Read Trap Register
Provides controls for traps of MRS reads of Activity Monitors System registers.
Configuration
This register is present only when FEAT_AMUv1 is implemented, FEAT_FGT is implemented, and FEAT_AA64 is implemented. Otherwise, direct accesses to HAFGRTR_EL2 are UNDEFINED.
If EL2 is not implemented, this register is RES0 from EL3.
Attributes
HAFGRTR_EL2 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 | AMEVTYPER115_EL0 | AMEVCNTR115_EL0 | AMEVTYPER114_EL0 | AMEVCNTR114_EL0 | AMEVTYPER113_EL0 | AMEVCNTR113_EL0 | AMEVTYPER112_EL0 | AMEVCNTR112_EL0 | AMEVTYPER111_EL0 | AMEVCNTR111_EL0 | AMEVTYPER110_EL0 | AMEVCNTR110_EL0 | AMEVTYPER19_EL0 | AMEVCNTR19_EL0 | AMEVTYPER18_EL0 | AMEVCNTR18_EL0 | AMEVTYPER17_EL0 | AMEVCNTR17_EL0 | |||||||||||||
| AMEVTYPER16_EL0 | AMEVCNTR16_EL0 | AMEVTYPER15_EL0 | AMEVCNTR15_EL0 | AMEVTYPER14_EL0 | AMEVCNTR14_EL0 | AMEVTYPER13_EL0 | AMEVCNTR13_EL0 | AMEVTYPER12_EL0 | AMEVCNTR12_EL0 | AMEVTYPER11_EL0 | AMEVCNTR11_EL0 | AMEVTYPER10_EL0 | AMEVCNTR10_EL0 | AMCNTEN1 | RES0 | AMEVCNTR03_EL0 | AMEVCNTR02_EL0 | AMEVCNTR01_EL0 | AMEVCNTR00_EL0 | AMCNTEN0 | |||||||||||
Bits [63:50]:
Reserved, RES0.
AMEVTYPER1<x>_EL0, bit [19+2x], for x = 15 to 0:
Trap MRS reads of AMEVTYPER1<x>_EL0 at EL1 and EL0 using AArch64 and MRC reads of AMEVTYPER1<x> at EL0 using AArch32 when EL1 is using AArch64 to EL2.
| AMEVTYPER1<x>_EL0 | Meaning |
|---|---|
| 0b0 |
MRS reads of AMEVTYPER1<x>_EL0 at EL1 and EL0 using AArch64 and MRC reads of AMEVTYPER1<x> at EL0 using AArch32 are not trapped by this mechanism. |
| 0b1 |
If EL2 is implemented and enabled in the current Security state, the Effective value of HCR_EL2.{E2H, TGE} is not {1, 1}, EL1 is using AArch64, and either EL3 is not implemented or SCR_EL3.FGTEn == 1, then, unless the read generates a higher priority exception:
|
The reset behavior of this field is:
-
On a Warm reset:
- When the highest implemented Exception level is EL2, this field resets to '0'.
- Otherwise, this field resets to an architecturally UNKNOWN value.
Accessing this field has the following behavior:
- When x >= UInt(AMCGCR_EL0.CG1NC), access to this field is RES0 .
- When auxiliary activity monitor event counter <x> is not implemented, access to this field is RES0 .
AMEVCNTR1<x>_EL0, bit [18+2x], for x = 15 to 0:
Trap MRS reads of AMEVCNTR1<x>_EL0 at EL1 and EL0 using AArch64 and MRC reads of AMEVCNTR1<x> at EL0 using AArch32 when EL1 is using AArch64 to EL2.
| AMEVCNTR1<x>_EL0 | Meaning |
|---|---|
| 0b0 |
MRS reads of AMEVCNTR1<x>_EL0 at EL1 and EL0 using AArch64 and MRC reads of AMEVCNTR1<x> at EL0 using AArch32 are not trapped by this mechanism. |
| 0b1 |
If EL2 is implemented and enabled in the current Security state, the Effective value of HCR_EL2.{E2H, TGE} is not {1, 1}, EL1 is using AArch64, and either EL3 is not implemented or SCR_EL3.FGTEn == 1, then, unless the read generates a higher priority exception:
|
The reset behavior of this field is:
-
On a Warm reset:
- When the highest implemented Exception level is EL2, this field resets to '0'.
- Otherwise, this field resets to an architecturally UNKNOWN value.
Accessing this field has the following behavior:
- When x >= UInt(AMCGCR_EL0.CG1NC), access to this field is RES0 .
- When auxiliary activity monitor event counter <x> is not implemented, access to this field is RES0 .
AMCNTEN<x>, bit [17x], for x = 1 to 0:
Trap MRS reads and MRC reads of multiple System registers.
Enables a trap to EL2 the following operations:
- At EL1 and EL0 using AArch64: MRS reads of AMCNTENCLR<x>_EL0 and AMCNTENSET<x>_EL0.
- At EL0 using AArch32 when EL1 is using AArch64: MRC reads of AMCNTENCLR<x> and AMCNTENSET<x>.
| AMCNTEN<x> | Meaning |
|---|---|
| 0b0 |
The operations listed above are not trapped by this mechanism. |
| 0b1 |
If EL2 is implemented and enabled in the current Security state, the Effective value of HCR_EL2.{E2H, TGE} is not {1, 1}, EL1 is using AArch64, and either EL3 is not implemented or SCR_EL3.FGTEn == 1, then, unless the read generates a higher priority exception:
|
The reset behavior of this field is:
-
On a Warm reset:
- When the highest implemented Exception level is EL2, this field resets to '0'.
- Otherwise, this field resets to an architecturally UNKNOWN value.
Bits [16:5]:
Reserved, RES0.
AMEVCNTR0<x>_EL0, bit [x+1], for x = 3 to 0:
Trap MRS reads of AMEVCNTR0<x>_EL0 at EL1 and EL0 using AArch64 and MRC reads of AMEVCNTR0<x> at EL0 using AArch32 when EL1 is using AArch64 to EL2.
| AMEVCNTR0<x>_EL0 | Meaning |
|---|---|
| 0b0 |
MRS reads of AMEVCNTR0<x>_EL0 at EL1 and EL0 using AArch64 and MRC reads of AMEVCNTR0<x> at EL0 using AArch32 are not trapped by this mechanism. |
| 0b1 |
If EL2 is implemented and enabled in the current Security state, the Effective value of HCR_EL2.{E2H, TGE} is not {1, 1}, EL1 is using AArch64, and either EL3 is not implemented or SCR_EL3.FGTEn == 1, then, unless the read generates a higher priority exception:
|
The reset behavior of this field is:
-
On a Warm reset:
- When the highest implemented Exception level is EL2, this field resets to '0'.
- Otherwise, this field resets to an architecturally UNKNOWN value.
When x >= 4, access to this field is RES0 .
Access Instructions
Accesses to this register use the following encodings in the System register encoding space:
MRS <Xt>, HAFGRTR_EL2
(op0 = 0b11, op1 = 0b100, CRn = 0b0011, CRm = 0b0001, op2 = 0b110)
if !(IsFeatureImplemented(FEAT_AMUv1) && IsFeatureImplemented(FEAT_FGT) && IsFeatureImplemented(FEAT_AA64)) then
Undefined();
elsif HaveEL(EL3) && PSTATE.EL == EL2 && EL3SDDUndefPriority() && SCR_EL3().FGTEn == '0' then
Undefined();
elsif PSTATE.EL == EL0 then
Undefined();
elsif PSTATE.EL == EL1 then
if EffectiveHCR_EL2_NVx() IN {'1x1'} then
X{64}(t) = NVMem(0x1E8);
elsif EffectiveHCR_EL2_NVx() IN {'xx1'} then
AArch64_SystemAccessTrap(EL2, 0x18);
else
Undefined();
end;
elsif PSTATE.EL == EL2 then
if HaveEL(EL3) && SCR_EL3().FGTEn == '0' then
if EL3SDDUndef() then
Undefined();
else
AArch64_SystemAccessTrap(EL3, 0x18);
end;
else
X{64}(t) = HAFGRTR_EL2();
end;
elsif PSTATE.EL == EL3 then
X{64}(t) = HAFGRTR_EL2();
end;
MSR HAFGRTR_EL2, <Xt>
(op0 = 0b11, op1 = 0b100, CRn = 0b0011, CRm = 0b0001, op2 = 0b110)
if !(IsFeatureImplemented(FEAT_AMUv1) && IsFeatureImplemented(FEAT_FGT) && IsFeatureImplemented(FEAT_AA64)) then
Undefined();
elsif HaveEL(EL3) && PSTATE.EL == EL2 && EL3SDDUndefPriority() && SCR_EL3().FGTEn == '0' then
Undefined();
elsif PSTATE.EL == EL0 then
Undefined();
elsif PSTATE.EL == EL1 then
if EffectiveHCR_EL2_NVx() IN {'1x1'} then
NVMem(0x1E8) = X{64}(t);
elsif EffectiveHCR_EL2_NVx() IN {'xx1'} then
AArch64_SystemAccessTrap(EL2, 0x18);
else
Undefined();
end;
elsif PSTATE.EL == EL2 then
if HaveEL(EL3) && SCR_EL3().FGTEn == '0' then
if EL3SDDUndef() then
Undefined();
else
AArch64_SystemAccessTrap(EL3, 0x18);
end;
else
HAFGRTR_EL2() = X{64}(t);
end;
elsif PSTATE.EL == EL3 then
HAFGRTR_EL2() = 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.