Backward compatibility for c13_c0_3

This commit is contained in:
lazymio
2022-02-12 22:31:10 +01:00
parent 96518634fb
commit 81eb7da837

View File

@ -2192,6 +2192,10 @@ ARMCPU *cpu_arm_init(struct uc_struct *uc)
// Big endian code access. // Big endian code access.
env->cp15.sctlr_ns |= SCTLR_B; env->cp15.sctlr_ns |= SCTLR_B;
} }
// Backward compatiblity, start arm CPU in non-secure state.
env->cp15.scr_el3 |= SCR_NS;
arm_rebuild_hflags(env); arm_rebuild_hflags(env);
return cpu; return cpu;