From: Richard Henderson <[email protected]>
Reviewed-by: Peter Maydell <[email protected]>
Signed-off-by: Richard Henderson <[email protected]>
Message-id: [email protected]
Signed-off-by: Peter Maydell <[email protected]>
---
docs/system/arm/emulation.rst | 1 +
target/arm/tcg/cpu64.c | 4 ++++
2 files changed, 5 insertions(+)
diff --git a/docs/system/arm/emulation.rst b/docs/system/arm/emulation.rst
index 3bd5c42a664..d1467ef4bfb 100644
--- a/docs/system/arm/emulation.rst
+++ b/docs/system/arm/emulation.rst
@@ -105,6 +105,7 @@ the following architecture extensions:
- FEAT_HPMN0 (Setting of MDCR_EL2.HPMN to zero)
- FEAT_I8MM (AArch64 Int8 matrix multiplication instructions)
- FEAT_IDST (ID space trap handling)
+- FEAT_IDTE3 (Trapping ID register accesses to EL3)
- FEAT_IESB (Implicit error synchronization event)
- FEAT_IVIPT (The IVIPT Extension)
- FEAT_JSCVT (JavaScript conversion instructions)
diff --git a/target/arm/tcg/cpu64.c b/target/arm/tcg/cpu64.c
index 59692dddcfa..c92e331e731 100644
--- a/target/arm/tcg/cpu64.c
+++ b/target/arm/tcg/cpu64.c
@@ -1461,6 +1461,10 @@ void aarch64_max_v9_tcg_initfn(Object *obj)
t = FIELD_DP64(t, ID_AA64PFR2, FPMR, 1); /* v9.2: FEAT_FPMR */
SET_IDREG(isar, ID_AA64PFR2, t);
+ t = GET_IDREG(isar, ID_AA64MMFR2);
+ t = FIELD_DP64(t, ID_AA64MMFR2, IDS, 2); /* v9.0: FEAT_IDTE3 */
+ SET_IDREG(isar, ID_AA64MMFR2, t);
+
t = GET_IDREG(isar, ID_AA64MMFR3);
t = FIELD_DP64(t, ID_AA64MMFR3, MEC, 1); /* v9.2: FEAT_MEC */
SET_IDREG(isar, ID_AA64MMFR3, t);
--
2.43.0