qemu/tcg
Philippe Mathieu-Daudé e139bc4b17 tcg: Allocate TEMP_VAL_MEM frame in temp_load()
Be sure to allocate the temp frame if it wasn't.

In the resolved issues, incomplete dead code elimination left a load
at the top of an unreachable loop.  We simply need to allocate the
stack slot to avoid crashing.

Fixes: c896fe29d6 ("TCG code generator")
Reported-by: Michael Tokarev <mjt@tls.msk.ru>
Reported-by: Helge Konetzka <hk@zapateado.de>
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2891
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2899
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20250401144332.41615-1-philmd@linaro.org>
2025-04-03 15:57:37 -07:00
..
aarch64 tcg/aarch64: Use 'z' constraint 2025-02-18 08:29:03 -08:00
arm include/exec: Use uintptr_t in CPUTLBEntry 2025-02-18 08:29:02 -08:00
i386 tcg/i386: Use tcg_{high,unsigned}_cond in tcg_out_brcond2 2025-02-18 08:29:03 -08:00
loongarch64 tcg: Remove TCG_TARGET_HAS_{br,set}cond2 from riscv and loongarch64 2025-02-18 08:29:03 -08:00
mips tcg/mips: Use 'z' constraint 2025-02-18 08:29:03 -08:00
ppc include/exec: Use uintptr_t in CPUTLBEntry 2025-02-18 08:29:02 -08:00
riscv tcg: Remove TCG_TARGET_HAS_{br,set}cond2 from riscv and loongarch64 2025-02-18 08:29:03 -08:00
s390x tcg: Replace addr{lo,hi}_reg with addr_reg in TCGLabelQemuLdst 2025-02-18 07:33:42 -08:00
sparc64 tcg/sparc64: Use 'z' constraint 2025-02-18 08:29:03 -08:00
tci tcg: Merge INDEX_op_qemu_*_{a32,a64}_* 2025-02-18 07:33:42 -08:00
debuginfo.c accel/tcg: Move perf and debuginfo support to tcg/ 2024-01-29 21:04:10 +10:00
meson.build meson: Drop the .fa library suffix 2024-07-03 18:41:26 +02:00
optimize.c tcg: Merge INDEX_op_qemu_*_{a32,a64}_* 2025-02-18 07:33:42 -08:00
perf.c accel/tcg: Move perf and debuginfo support to tcg/ 2024-01-29 21:04:10 +10:00
region.c tcg: Make the cleanup-on-error path unique 2024-01-23 13:22:46 +10:00
tcg-common.c tcg: Constify tcg_op_defs 2025-01-16 20:57:16 -08:00
tcg-has.h tcg: Remove TCG_TARGET_HAS_deposit_{i32,i64} 2025-01-16 20:57:17 -08:00
tcg-internal.h tcg: Move tcg_op_insert_{after,before} decls to tcg-internal.h 2025-01-16 20:57:16 -08:00
tcg-op-gvec.c tcg: Only include 'tcg-has.h' when necessary 2025-01-16 20:57:16 -08:00
tcg-op-ldst.c tcg: Merge INDEX_op_qemu_*_{a32,a64}_* 2025-02-18 07:33:42 -08:00
tcg-op-vec.c tcg: Only include 'tcg-has.h' when necessary 2025-01-16 20:57:16 -08:00
tcg-op.c tcg: Remove TCG_TARGET_HAS_deposit_{i32,i64} 2025-01-16 20:57:17 -08:00
tcg.c tcg: Allocate TEMP_VAL_MEM frame in temp_load() 2025-04-03 15:57:37 -07:00
tci.c tcg: Merge INDEX_op_qemu_*_{a32,a64}_* 2025-02-18 07:33:42 -08:00