xemu/tcg
Richard Henderson a8a8e54564 tcg: Reset free_temps before tcg_optimize
When allocating new temps during tcg_optmize, do not re-use
any EBB temps that were used within the TB.  We do not have
any idea what span of the TB in which the temp was live.

Introduce tcg_temp_ebb_reset_freed and use before tcg_optimize,
as well as replacing the equivalent in plugin_gen_inject and
tcg_func_start.

Cc: qemu-stable@nongnu.org
Fixes: fb04ab7ddd ("tcg/optimize: Lower TCG_COND_TST{EQ,NE} if unsupported")
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2711
Reported-by: wannacu <wannacu2049@gmail.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
2025-01-06 23:07:47 -07:00
..
aarch64 tcg/aarch64: Support TCG_TARGET_HAS_tst_vec 2024-05-22 19:05:25 -07:00
arm include/exec/memop: Rename get_alignment_bits 2024-10-13 11:27:03 -07:00
i386 v9.2.0 release 2025-01-03 22:30:04 -07:00
loongarch64 tcg/loongarch64: remove break after g_assert_not_reached() 2024-09-24 13:53:35 +02:00
mips tcg: Add TCGConst argument to tcg_target_const_match 2024-02-03 23:53:48 +00:00
ppc tcg/ppc: Fix tcg_out_rlw_rc 2024-10-22 13:45:03 -07:00
riscv tcg/riscv: Enable native vector support for TCG host 2024-10-22 11:57:25 -07:00
s390x tcg/s390x: fix constraint for 32-bit TSTEQ/TSTNE 2024-10-17 19:41:22 +02:00
sparc64 include/exec/memop: Rename get_alignment_bits 2024-10-13 11:27:03 -07:00
tci tcg/tci: Support TCG_COND_TST{EQ,NE} 2024-02-05 22:45:41 +00:00
debuginfo.c accel/tcg: Move perf and debuginfo support to tcg/ 2024-01-29 21:04:10 +10:00
meson.build tcg: Move tcg_gen_* FP helpers to tcg-op-fp.c 2025-01-06 23:05:53 -07:00
optimize.c tcg/optimize: Optimize bitsel_vec 2024-09-22 06:54:49 +02: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: Silent -Wmissing-field-initializers warning 2023-02-27 22:29:01 +01:00
tcg-internal.h tcg: Export vec_gen_6 2024-09-22 06:54:49 +02:00
tcg-ldst.c.inc tcg: Move TCGLabelQemuLdst to tcg.c 2023-05-05 17:21:03 +01:00
tcg-op-fp.c tcg: Move tcg_gen_* FP helpers to tcg-op-fp.c 2025-01-06 23:05:53 -07:00
tcg-op-gvec.c tcg: Allow top bit of SIMD_DATA_BITS to be set in simd_desc() 2024-11-16 08:42:25 -08:00
tcg-op-ldst.c include/exec/memop: Rename get_alignment_bits 2024-10-13 11:27:03 -07:00
tcg-op-vec.c tcg: Export vec_gen_6 2024-09-22 06:54:49 +02:00
tcg-op.c Revert old changes (bad merge) 2025-01-06 04:08:41 -07:00
tcg-pool.c.inc tcg: Introduce tcg_splitwx_to_{rx,rw} 2021-01-07 05:09:41 -10:00
tcg.c tcg: Reset free_temps before tcg_optimize 2025-01-06 23:07:47 -07:00
tci.c tcg: Make tcg/helper-info.h self-contained 2024-04-30 16:12:05 -07:00