]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/arm: Hoist read of *is_secure in S1_ptw_translate
authorRichard Henderson <richard.henderson@linaro.org>
Sat, 1 Oct 2022 16:22:50 +0000 (09:22 -0700)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 10 Oct 2022 13:52:25 +0000 (14:52 +0100)
commitab1f78859dd711fed72b1aeb7e46e05b0273a017
tree6d9d3076baa14ac5b407df8c6b9e70e7300a2669
parentb74c04431d0afac930634794c8a7b74ec0d8572b
target/arm: Hoist read of *is_secure in S1_ptw_translate

Rename the argument to is_secure_ptr, and introduce a
local variable is_secure with the value.  We only write
back to the pointer toward the end of the function.

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