target-arm: Adjust id_aa64pfr0 when has_el3 CPU property disabled
PATCH 1/1 target-arm: Adjust id_aa64pfr0 when has_el3 CPU property disabled
Signed-off-by Sergey Fedorov <[email protected]>
--- target-arm/cpu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
target-arm/cpu.c +2 -1
@@ -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
Quoted 29 lines · Sergey Fedorov
Signed-off-by Sergey Fedorov <[email protected]>--- target-arm/cpu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)target-arm/cpu.c +0
-0@@ -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.4Reviewed-by: Greg Bellows <[email protected]>
Peter Maydell
AppliedQuoted 4 lines · Sergey Fedorov
Signed-off-by Sergey Fedorov <[email protected]>--- target-arm/cpu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Applied to target-arm.next, thanks.
-- PMM