diff options
author | Peter Maydell | 2020-02-14 18:50:57 +0100 |
---|---|---|
committer | Peter Maydell | 2020-02-21 17:07:00 +0100 |
commit | f8af1143ef93954e77cf59e09b5e004dafbd64fd (patch) | |
tree | 62332563a07d2de02d5f146e60e5508d37dfcb82 /target | |
parent | target/arm: Add _aa32_ to isar_feature functions testing 32-bit ID registers (diff) | |
download | qemu-f8af1143ef93954e77cf59e09b5e004dafbd64fd.tar.gz qemu-f8af1143ef93954e77cf59e09b5e004dafbd64fd.tar.xz qemu-f8af1143ef93954e77cf59e09b5e004dafbd64fd.zip |
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.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20200214175116.9164-3-peter.maydell@linaro.org
Diffstat (limited to 'target')
-rw-r--r-- | target/arm/helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/arm/helper.c b/target/arm/helper.c index 9c02d5d6b8..ad2bfa9ef8 100644 --- a/target/arm/helper.c +++ b/target/arm/helper.c @@ -8858,7 +8858,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)) { |