qemu-e2k/target/arm
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
..
hvf
tcg target/arm: Export arm_v7m_get_sp_ptr 2023-03-06 14:08:11 +00:00
arch_dump.c
arm_ldst.h
arm-powerctl.c target/arm: Wrap arm_rebuild_hflags calls with tcg_enabled 2023-02-27 13:27:04 +00:00
arm-powerctl.h
arm-qmp-cmds.c target/arm: Restrict 'qapi-commands-machine.h' to system emulation 2023-03-02 07:51:06 +01:00
common-semi-target.h
cpregs.h target/arm: Move cpregs code out of cpu.h 2023-02-16 16:11:04 +00:00
cpu64.c target/arm: Enable FEAT_FGT on '-cpu max' 2023-02-03 12:59:24 +00:00
cpu_tcg.c target/arm: Declare CPU <-> NVIC helpers in 'hw/intc/armv7m_nvic.h' 2023-02-16 16:00:47 +00:00
cpu-param.h target/arm: Remove TARGET_TB_PCREL define 2023-03-01 07:32:07 -10:00
cpu-qom.h
cpu.c target/arm: Replace tb_pc() with tb->pc 2023-03-01 07:33:25 -10:00
cpu.h target/arm: Diagnose incorrect usage of arm_is_secure subroutines 2023-03-06 14:08:12 +00:00
debug_helper.c target/arm: Wrap TCG-only code in debug_helper.c 2023-02-27 13:27:04 +00:00
gdbstub64.c target/arm: Implement gdbstub pauth extension 2023-03-06 14:08:11 +00:00
gdbstub.c target/arm: Implement gdbstub m-profile systemreg and secext 2023-03-06 14:08:12 +00:00
helper-a64.h target/arm: Use tcg_gen_atomic_cmpxchg_i128 for CASP 2023-02-04 06:19:42 -10:00
helper-mve.h
helper-sme.h
helper-sve.h
helper.c target/arm: Stub arm_hcr_el2_eff for m-profile 2023-03-06 14:08:12 +00:00
helper.h
hvf_arm.h
idau.h
internals.h target/arm: Export arm_v7m_get_sp_ptr 2023-03-06 14:08:11 +00:00
Kconfig
kvm64.c
kvm_arm.h
kvm-consts.h
kvm-stub.c
kvm.c
machine.c target/arm: Wrap arm_rebuild_hflags calls with tcg_enabled 2023-02-27 13:27:04 +00:00
meson.build target/arm: Restrict 'qapi-commands-machine.h' to system emulation 2023-03-02 07:51:06 +01:00
op_addsub.h
ptw.c target/arm: Rewrite check_s2_mmu_setup 2023-03-06 14:08:12 +00:00
sve_ldst_internal.h
syndrome.h target/arm: Implement the HFGITR_EL2.ERET trap 2023-02-03 12:59:24 +00:00
tcg-stubs.c target/arm: Move hflags code into the tcg directory 2023-02-27 13:27:04 +00:00
trace-events
trace.h
translate-a32.h
vfp_helper.c