target-arm: Adjust id_aa64pfr0 when has_el3 CPU property disabled

This commit is contained in:
Sergey Fedorov 2018-02-12 20:47:23 -05:00 committed by Lioncash
parent dd9e33bb6d
commit f748c278b2
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -447,9 +447,10 @@ static int arm_cpu_realizefn(struct uc_struct *uc, DeviceState *dev, Error **err
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;
}
if (arm_feature(env, ARM_FEATURE_EL3)) {