target/arm: Split s2walk_secure from ipa_secure in get_phys_addr
commitc7637be307d36ad8c51bd0e9852e09115969bc29
authorRichard Henderson <richard.henderson@linaro.org>
Sat, 1 Oct 2022 16:22:37 +0000 (1 09:22 -0700)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 10 Oct 2022 13:52:24 +0000 (10 14:52 +0100)
treed44d70349b2cf69cf077ffabcf84e76524136919
parent86a85d73e3167c97da8f9680536af89e66943b76
target/arm: Split s2walk_secure from ipa_secure in get_phys_addr

The starting security state comes with the translation regime,
not the current state of arm_is_secure_below_el3().

Create a new local variable, s2walk_secure, which does not need
to be written back to result->attrs.secure -- we compute that
value later, after the S2 walk is complete.

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