target/arm: Calculate mask/base_mask in get_level1_table_address()
commit9e70e26c5382f433d9ffd93b7ac5f1501ff473ff
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 14 Jul 2022 13:22:58 +0000 (14 14:22 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 18 Jul 2022 12:20:13 +0000 (18 13:20 +0100)
tree115280927af5b7907bd56cac4f8b32e2e2a4e094
parentdfce4aa8feccf77dc10e27b7491a97c94326460d
target/arm: Calculate mask/base_mask in get_level1_table_address()

In get_level1_table_address(), instead of using precalculated values
of mask and base_mask from the TCR struct, calculate them directly
(in the same way we currently do in vmsa_ttbcr_raw_write() to
populate the TCR struct fields).

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