target/arm: Reorg regime_translation_disabled
commit3b2af99313504b65f582e034cf505fea839984e9
authorRichard Henderson <richard.henderson@linaro.org>
Sat, 1 Oct 2022 16:22:47 +0000 (1 09:22 -0700)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 10 Oct 2022 13:52:24 +0000 (10 14:52 +0100)
tree7502a38125f16778d5e0b3acfe9138a24146822c
parentd902ae7558690a8442bf3560d5707167e485ab92
target/arm: Reorg regime_translation_disabled

Use a switch on mmu_idx for the a-profile indexes, instead of
three different if's vs regime_el and arm_mmu_idx_is_stage1_of_2.

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