xemu/include/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
..
debug-assert.h tcg: Split out tcg/debug-assert.h 2023-05-23 18:54:55 -07:00
debuginfo.h accel/tcg: Move perf and debuginfo support to tcg/ 2024-01-29 21:04:10 +10:00
helper-info.h tcg: Make tcg/helper-info.h self-contained 2024-04-30 16:12:05 -07:00
insn-start-words.h tcg: Add insn_start_words to TCGContext 2023-06-05 12:04:29 -07:00
oversized-guest.h tcg: Split out tcg/oversized-guest.h 2023-06-05 12:04:28 -07:00
perf.h accel/tcg: Move perf and debuginfo support to tcg/ 2024-01-29 21:04:10 +10:00
startup.h v9.2.0 release 2025-01-03 22:30:04 -07:00
tcg-cond.h tcg: Introduce TCG_COND_TST{EQ,NE} 2024-02-03 23:43:47 +00:00
tcg-gvec-desc.h tcg: Adjust simd_desc size encoding 2020-10-08 05:57:32 -05:00
tcg-ldst.h accel/tcg: Widen tcg-ldst.h addresses to uint64_t 2023-05-16 16:30:29 -07:00
tcg-mo.h tcg: Move TCG headers to include/tcg/ 2020-01-15 15:13:10 -10:00
tcg-op-common.h tcg: Move tcg_gen_* FP helpers to tcg-op-fp.c 2025-01-06 23:05:53 -07:00
tcg-op-gvec-common.h tcg: Add write_aofs to GVecGen3i 2024-05-06 12:55:50 -07:00
tcg-op-gvec.h tcg: Split tcg/tcg-op-gvec.h 2023-06-05 12:04:29 -07:00
tcg-op.h tcg: Move tcg_gen_* FP helpers to tcg-op-fp.c 2025-01-06 23:05:53 -07:00
tcg-opc.h v9.2.0 release 2025-01-03 22:30:04 -07:00
tcg-temp-internal.h tcg: Reset free_temps before tcg_optimize 2025-01-06 23:07:47 -07:00
tcg.h v9.2.0 release 2025-01-03 22:30:04 -07:00