Skip to contentSkip to conversation

target-arm: Adjust id_aa64pfr0 when has_el3 CPU property disabled

PATCH Applied Sergey Fedorov 3 participants 3 messages Apr 22, 2015 – Apr 23, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 target-arm: Adjust id_aa64pfr0 when has_el3 CPU property disabled

---
 target-arm/cpu.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
target-arm/cpu.c +2 -1
index 986f04c..327b1e5 100644
@@ -524,9 +524,10 @@ static void arm_cpu_realizefn(DeviceState *dev, Error **errp)
         unset_feature(env, ARM_FEATURE_EL3);
 
         /* Disable the security extension feature bits in the processor feature
-         * register as well.  This is id_pfr1[7:4].
+         * registers as well. These are id_pfr1[7:4] and id_aa64pfr0[15:12].
          */
         cpu->id_pfr1 &= ~0xf0;
+        cpu->id_aa64pfr0 &= ~0xf000;
     }
 
     register_cp_regs_for_features(cpu);
Signature · 1 line
2.3.4
#1 lore raw
Quoted 29 lines · Sergey Fedorov
---
 target-arm/cpu.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
target-arm/cpu.c +0 -0
index 986f04c..327b1e5 100644
@@ -524,9 +524,10 @@ static void arm_cpu_realizefn(DeviceState *dev, Error
 **errp)
         unset_feature(env, ARM_FEATURE_EL3);
 
         /* Disable the security extension feature bits in the processor

feature

target-arm/cpu.c +1 -1
-         * register as well.  This is id_pfr1[7:4].
+         * registers as well. These are id_pfr1[7:4] and

id_aa64pfr0[15:12].

          */
         cpu->id_pfr1 &= ~0xf0;
+        cpu->id_aa64pfr0 &= ~0xf000;
     }

     register_cp_regs_for_features(cpu);

--
2.3.4

​​Reviewed-by: Greg Bellows <[email protected]>​​