target/arm: Fix ATS12NSO* from S PL1
authorRichard Henderson <richard.henderson@linaro.org>
Sat, 1 Oct 2022 16:22:53 +0000 (09:22 -0700)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 10 Oct 2022 13:52:25 +0000 (14:52 +0100)
commit2189c79858a9eadd85851afc2369d8679ecd563a
treec24ff3c61ecf1bdcb4e36f275703308ca784efab
parentac76c2e508871e8180780338aa035c67ece75888
target/arm: Fix ATS12NSO* from S PL1

Use arm_hcr_el2_eff_secstate instead of arm_hcr_el2_eff, so
that we use is_secure instead of the current security state.
These AT* operations have been broken since arm_hcr_el2_eff
gained a check for "el2 enabled" for Secure EL2.

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