qemu/target/s390x/tcg
Ilya Leoshkevich 88b778e4c2 target/s390x: Fix CLC corrupting cc_src
CLC updates cc_src before accessing the second operand; if the latter
is inaccessible, the former ends up containing a bogus value.

Fix by reading cc_src into a temporary first.

Fixes: 4f7403d52b ("target-s390: Convert CLC")
Closes: https://gitlab.com/qemu-project/qemu/-/issues/1865
Cc: qemu-stable@nongnu.org
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Message-ID: <20231106093605.1349201-2-iii@linux.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
(cherry picked from commit aba2ec341c6d20c8dc3e6ecf87fa7c1a71e30c1e)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
2023-11-19 21:15:06 +03:00
..
cc_helper.c
crypto_helper.c
excp_helper.c
fpu_helper.c
insn-data.h.inc
insn-format.h.inc
int_helper.c
mem_helper.c
meson.build
misc_helper.c
s390-tod.h
tcg_s390x.h
translate.c target/s390x: Fix CLC corrupting cc_src 2023-11-19 21:15:06 +03:00
translate_vx.c.inc target/s390x: Check reserved bits of VFMIN/VFMAX's M5 2023-08-23 16:58:41 +03:00
vec.h
vec_fpu_helper.c
vec_helper.c target/s390x: Fix VSTL with a large length 2023-08-23 16:58:41 +03:00
vec_int_helper.c
vec_string_helper.c target/s390x: Fix the "ignored match" case in VSTRS 2023-08-23 16:55:40 +03:00