mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-03-23 02:55:06 +00:00
target/arm: Check aa32_pan in take_aarch32_exception(), not aa64_pan
In take_aarch32_exception(), we know we are dealing with a CPU that has AArch32, so the right isar_feature test is aa32_pan, not aa64_pan. Backports commit f8af1143ef93954e77cf59e09b5e004dafbd64fd from qemu
This commit is contained in:
parent
e63f70f980
commit
778fcd9562
|
@ -8633,7 +8633,7 @@ static void take_aarch32_exception(CPUARMState *env, int new_mode,
|
|||
env->elr_el[2] = env->regs[15];
|
||||
} else {
|
||||
/* CPSR.PAN is normally preserved preserved unless... */
|
||||
if (cpu_isar_feature(aa64_pan, env_archcpu(env))) {
|
||||
if (cpu_isar_feature(aa32_pan, env_archcpu(env))) {
|
||||
switch (new_el) {
|
||||
case 3:
|
||||
if (!arm_is_secure_below_el3(env)) {
|
||||
|
|
Loading…
Reference in a new issue