mirror of
https://github.com/yuzu-emu/unicorn
synced 2024-11-25 12:38:57 +00:00
target-arm: Adjust id_aa64pfr0 when has_el3 CPU property disabled
This commit is contained in:
parent
dd9e33bb6d
commit
f748c278b2
1 changed files with 2 additions and 1 deletions
|
@ -447,9 +447,10 @@ static int arm_cpu_realizefn(struct uc_struct *uc, DeviceState *dev, Error **err
|
||||||
unset_feature(env, ARM_FEATURE_EL3);
|
unset_feature(env, ARM_FEATURE_EL3);
|
||||||
|
|
||||||
/* Disable the security extension feature bits in the processor feature
|
/* 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_pfr1 &= ~0xf0;
|
||||||
|
cpu->id_aa64pfr0 &= ~0xf000;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (arm_feature(env, ARM_FEATURE_EL3)) {
|
if (arm_feature(env, ARM_FEATURE_EL3)) {
|
||||||
|
|
Loading…
Reference in a new issue