qemu/target/hppa
Helge Deller 2a23f0f118 target/hppa: Fix possible overflow in TLB size calculation
Coverty found that the shift of TARGET_PAGE_SIZE (32-bit type) might
overflow.  Fix it by casting TARGET_PAGE_SIZE to a 64-bit type before
doing the shift (CID 1523902 and CID 1523908).

Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Helge Deller <deller@gmx.de>
Message-Id: <ZU6F/H8CZr3q4pP/@p100>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
2023-11-13 09:17:07 -08:00
..
cpu-param.h target/hppa: Remove TARGET_REGISTER_BITS 2023-11-06 18:49:34 -08:00
cpu-qom.h target: Move ArchCPUClass definition to 'cpu.h' 2023-11-07 13:08:48 +01:00
cpu.c target/hppa: Add unwind_breg to CPUHPPAState 2023-11-06 18:49:34 -08:00
cpu.h target: Move ArchCPUClass definition to 'cpu.h' 2023-11-07 13:08:48 +01:00
fpu_helper.c target/hppa: Extract FPU helpers to fpu_helper.c 2023-02-27 22:29:01 +01:00
gdbstub.c target/hppa: Drop attempted gdbstub support for hppa64 2023-11-06 18:49:34 -08:00
helper.c target/hppa: Remove TARGET_REGISTER_BITS 2023-11-06 18:49:34 -08:00
helper.h target/hppa: Add pa2.0 cpu local tlb flushes 2023-11-06 18:49:34 -08:00
insns.decode target/hppa: Add pa2.0 cpu local tlb flushes 2023-11-06 18:49:34 -08:00
int_helper.c target/hppa: Fix calculation of CR_IIASQ back register 2023-11-13 09:17:07 -08:00
Kconfig meson: Introduce target-specific Kconfig 2021-07-09 18:21:34 +02:00
machine.c target/hppa: Adjust vmstate_env for pa2.0 tlb 2023-11-06 18:49:34 -08:00
mem_helper.c target/hppa: Fix possible overflow in TLB size calculation 2023-11-13 09:17:07 -08:00
meson.build meson: Rename target_softmmu_arch -> target_system_arch 2023-10-07 19:03:07 +02:00
op_helper.c target/hppa: Use PRIV_P_TO_MMU_IDX in helper_probe 2023-11-13 09:17:07 -08:00
sys_helper.c target/hppa: Update IIAOQ, IIASQ for pa2.0 2023-11-06 18:49:34 -08:00
trace-events target/hppa: Add pa2.0 cpu local tlb flushes 2023-11-06 18:49:34 -08:00
trace.h trace: switch position of headers to what Meson requires 2020-08-21 06:18:24 -04:00
translate.c target/hppa: Use only low 2 immediate bits for PROBEI 2023-11-13 09:16:36 -08:00