Richard Henderson 48da29e485 target/arm: Add ptw_idx to S1Translate
Hoist the computation of the mmu_idx for the ptw up to
get_phys_addr_with_struct and get_phys_addr_twostage.
This removes the duplicate check for stage2 disabled
from the middle of the walk, performing it only once.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Tested-by: Alex Bennée <alex.bennee@linaro.org>
Message-id: 20221024051851.3074715-3-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2022-10-27 10:27:23 +01:00
..
2022-06-08 19:38:47 +01:00
2022-10-27 10:27:23 +01:00
2022-10-20 11:28:29 +01:00
2022-10-27 10:27:23 +01:00
2022-06-08 19:38:47 +01:00
2022-07-11 13:43:51 +01:00
2022-07-11 13:43:51 +01:00
2020-09-09 09:27:09 -04:00
2022-09-14 11:19:40 +01:00
2022-10-10 14:52:25 +01:00
2022-10-27 10:27:23 +01:00
2022-06-27 11:18:17 +01:00
2022-10-20 11:28:29 +01:00