target/arm: Fix Secure PL1 tests in fp_exception_el
commit02e1de14bcf7cc686bf4f542b36033521f22d1ee
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 10 Jun 2022 13:32:35 +0000 (10 14:32 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 10 Jun 2022 13:32:35 +0000 (10 14:32 +0100)
treec96eae1edb9720d15caa1627a0eca9bb2d1212b4
parent38e8a13c116b114c100f488dc6a32c9c9df3ccd0
target/arm: Fix Secure PL1 tests in fp_exception_el

We were using arm_is_secure and is_a64, which are
tests against the current EL, as opposed to
arm_el_is_aa64 and arm_is_secure_below_el3, which
can be applied to a different EL than current.
Consolidate the two tests.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20220609202901.1177572-24-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/helper.c