diff mbox series

[PULL,07/45] target/arm: Set ID_PFR0.DIT to 1 for "max" 32-bit CPU

Message ID 20210211125900.22777-8-peter.maydell@linaro.org (mailing list archive)
State New, archived
Headers show
Series [PULL,01/45] target/arm: Don't migrate CPUARMState.features | expand

Commit Message

Peter Maydell Feb. 11, 2021, 12:58 p.m. UTC
From: Rebecca Cran <rebecca@nuviainc.com>

Enable FEAT_DIT for the "max" 32-bit CPU.

Signed-off-by: Rebecca Cran <rebecca@nuviainc.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20210208065700.19454-5-rebecca@nuviainc.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
 target/arm/cpu.c | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/target/arm/cpu.c b/target/arm/cpu.c
index 8ddb2556f8c..5cf6c056c50 100644
--- a/target/arm/cpu.c
+++ b/target/arm/cpu.c
@@ -2202,6 +2202,10 @@  static void arm_max_initfn(Object *obj)
         t = FIELD_DP32(t, ID_MMFR4, CNP, 1); /* TTCNP */
         t = FIELD_DP32(t, ID_MMFR4, XNX, 1); /* TTS2UXN */
         cpu->isar.id_mmfr4 = t;
+
+        t = cpu->isar.id_pfr0;
+        t = FIELD_DP32(t, ID_PFR0, DIT, 1);
+        cpu->isar.id_pfr0 = t;
     }
 #endif
 }