target/arm: Make the final stage1+2 write to secure be unconditional
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 7 Oct 2022 15:21:59 +0000 (08:21 -0700)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 10 Oct 2022 13:52:24 +0000 (14:52 +0100)
commit9b5ba97ac77889b9bf7d27d40da232ee8ff40b09
tree932ae7a981d6808d4ac351aa5760aaed73663fe5
parentc7637be307d36ad8c51bd0e9852e09115969bc29
target/arm: Make the final stage1+2 write to secure be unconditional

While the stage2 call to get_phys_addr_lpae should never set
attrs.secure when given a non-secure input, it's just as easy
to make the final update to attrs.secure be unconditional and
false in the case of non-secure input.

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