mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-02-02 06:11:00 +00:00
952ebdc207
In arm_cpu_realizefn() we check whether the board code disabled EL3 via the has_el3 CPU object property, which we create if the CPU starts with the ARM_FEATURE_EL3 feature bit. If it is disabled, then we turn off ARM_FEATURE_EL3 and also zero out the relevant fields in the ID_PFR1 and ID_AA64PFR0 registers. This codepath was incorrectly being taken for M-profile CPUs, which do not have an EL3 and don't set ARM_FEATURE_EL3, but which may have the M-profile Security extension and so should have non-zero values in the ID_PFR1.Security field. Restrict the handling of the feature flag to A/R-profile cores. Backports 4018818840f499d0a478508aedbb6802c8eae928 |
||
---|---|---|
.. | ||
arm | ||
i386 | ||
m68k | ||
mips | ||
riscv | ||
sparc |