mirror_qemu/target
Richard Henderson 0ffe5b7ba8 target/arm: Rewrite check_s2_mmu_setup
Integrate neighboring code from get_phys_addr_lpae which computed
starting level, as it is easier to validate when doing both at the
same time.  Mirror the checks at the start of AArch{64,32}.S2Walk,
especially S2InvalidSL and S2InconsistentSL.

This reverts 49ba115bb7, which was incorrect -- there is nothing
in the ARM pseudocode that depends on TxSZ, i.e. outputsize; the
pseudocode is consistent in referencing PAMax.

Fixes: 49ba115bb7 ("target/arm: Pass outputsize down to check_s2_mmu_setup")
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20230227225832.816605-5-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2023-03-06 14:08:12 +00:00
..
alpha target/alpha: Drop tcg_temp_free 2023-03-05 13:44:07 -08:00
arm target/arm: Rewrite check_s2_mmu_setup 2023-03-06 14:08:12 +00:00
avr target/avr: Drop tcg_temp_free 2023-03-05 13:44:07 -08:00
cris target/cris: Drop tcg_temp_free 2023-03-05 13:44:07 -08:00
hexagon target/hexagon/idef-parser: Use gen_constant for gen_extend_tcg_width_op 2023-03-05 13:45:16 -08:00
hppa target/hppa: Drop tcg_temp_free 2023-03-05 13:44:07 -08:00
i386 target/i386: Simplify POPF 2023-03-05 13:45:31 -08:00
loongarch target/loongarch: Drop tcg_temp_free 2023-03-05 13:44:07 -08:00
m68k target/m68k: Drop tcg_temp_free 2023-03-05 13:44:07 -08:00
microblaze target/microblaze: Avoid tcg_const_* throughout 2023-03-05 13:45:44 -08:00
mips target/mips: Fix trans_mult_acc return 2023-03-05 13:44:08 -08:00
nios2 target/nios2: Drop tcg_temp_free 2023-03-05 13:44:08 -08:00
openrisc target/openrisc: Drop tcg_temp_free 2023-03-05 13:44:08 -08:00
ppc target/ppc: Drop tcg_temp_free 2023-03-05 13:44:08 -08:00
riscv target/riscv: Avoid tcg_const_* 2023-03-05 13:46:13 -08:00
rx target/rx: Drop tcg_temp_free 2023-03-05 13:44:08 -08:00
s390x target/s390x: Split out gen_ri2 2023-03-05 13:46:26 -08:00
sh4 target/sh4: Drop tcg_temp_free 2023-03-05 13:44:08 -08:00
sparc target/sparc: Avoid tcg_const_{tl,i32} 2023-03-05 13:46:39 -08:00
tricore target/tricore: Drop tcg_temp_free 2023-03-05 13:44:08 -08:00
xtensa target/xtensa: Avoid tcg_const_i32 2023-03-05 13:47:25 -08:00
Kconfig hw/loongarch: Add support loongson3 virt machine type. 2022-06-06 18:09:03 +00:00
meson.build target/loongarch: Add target build suport 2022-06-06 18:09:03 +00:00