]> git.ipfire.org Git - thirdparty/qemu.git/commit
tcg: Allocate TEMP_VAL_MEM frame in temp_load()
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 1 Apr 2025 14:43:32 +0000 (16:43 +0200)
committerMichael Tokarev <mjt@tls.msk.ru>
Sat, 5 Apr 2025 13:48:28 +0000 (16:48 +0300)
commit5313973fd495d788bd2b42f0b6a4af0213f3b245
treebdcc1ddbccb5bf211fcf84a61142cec3d1531324
parent83d36ab099efed63e860c11a97099e3d49114041
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: c896fe29d6c ("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>
(cherry picked from commit e139bc4b1772575e1f2dcf8e3dbe1df2b684ef1f)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
tcg/tcg.c