On 5/28/26 08:34, Jim MacArthur wrote:
Signed-off-by: Jim MacArthur <[email protected]>
---
  target/arm/cpu-features.h | 5 +++++
  target/arm/tcg/cpu64.c    | 4 ++--
  2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/target/arm/cpu-features.h b/target/arm/cpu-features.h
index f9c979d20b..6819d5f6a7 100644
--- a/target/arm/cpu-features.h
+++ b/target/arm/cpu-features.h
@@ -1138,6 +1138,11 @@ static inline bool isar_feature_aa64_rme_gpc2(const 
ARMISARegisters *id)
      return FIELD_EX64_IDREG(id, ID_AA64PFR0, RME) >= 2;
  }
+static inline bool isar_feature_aa64_rme_gpc3(const ARMISARegisters *id)
+{
+    return FIELD_EX64_IDREG(id, ID_AA64PFR0, RME) >= 3;
+}
+
  static inline bool isar_feature_aa64_dit(const ARMISARegisters *id)
  {
      return FIELD_EX64_IDREG(id, ID_AA64PFR0, DIT) != 0;

This hunk is ok.

diff --git a/target/arm/tcg/cpu64.c b/target/arm/tcg/cpu64.c
index a377f67b9c..53f0ea0404 100644
--- a/target/arm/tcg/cpu64.c
+++ b/target/arm/tcg/cpu64.c
@@ -159,8 +159,8 @@ static void cpu_arm_set_rme(Object *obj, bool value, Error 
**errp)
  {
      ARMCPU *cpu = ARM_CPU(obj);
- /* Enable FEAT_RME_GPC2 */
-    FIELD_DP64_IDREG(&cpu->isar, ID_AA64PFR0, RME, value ? 2 : 0);
+    /* Enable FEAT_RME_GPC3 */
+    FIELD_DP64_IDREG(&cpu->isar, ID_AA64PFR0, RME, value ? 3 : 0);
  }

This hunk has to go last, once the implementation is complete.


r~

Reply via email to