mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-23 22:30:58 +00:00
Allow ARMv8 SCR.SMD updates
Updated scr_write to always allow updates to the SCR.SMD bit on ARMv8 regardless of whether virtualization (EL2) is enabled or not. Backports commit 4eb276408363aef5435a72a8e818f24220b5edd0 from qemu
This commit is contained in:
parent
f748c278b2
commit
96a99a1bbe
|
@ -696,8 +696,10 @@ static void scr_write(CPUARMState *env, const ARMCPRegInfo *ri, uint64_t value)
|
||||||
* supported if EL2 exists. The bit is UNK/SBZP when
|
* supported if EL2 exists. The bit is UNK/SBZP when
|
||||||
* EL2 is unavailable. In QEMU ARMv7, we force it to always zero
|
* EL2 is unavailable. In QEMU ARMv7, we force it to always zero
|
||||||
* when EL2 is unavailable.
|
* when EL2 is unavailable.
|
||||||
|
* On ARMv8, this bit is always available.
|
||||||
*/
|
*/
|
||||||
if (arm_feature(env, ARM_FEATURE_V7)) {
|
if (arm_feature(env, ARM_FEATURE_V7) &&
|
||||||
|
!arm_feature(env, ARM_FEATURE_V8)) {
|
||||||
valid_mask &= ~SCR_SMD;
|
valid_mask &= ~SCR_SMD;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue