qemu/target/s390x
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
..
kvm kvm: Introduce kvm_arch_get_default_type hook 2023-08-24 18:43:47 +03:00
tcg target/s390x: Fix CLC corrupting cc_src 2023-11-19 21:15:06 +03:00
arch_dump.c hw/s390x: Move KVM specific PV from hw/ to target/s390x/kvm/ 2023-07-10 15:34:23 +02:00
cpu-dump.c
cpu-param.h
cpu-qom.h
cpu-sysemu.c hw/s390x: Move KVM specific PV from hw/ to target/s390x/kvm/ 2023-07-10 15:34:23 +02:00
cpu.c
cpu.h
cpu_features.c s390x: spelling fixes 2023-07-25 17:13:45 +03:00
cpu_features.h
cpu_features_def.h
cpu_features_def.h.inc
cpu_models.c s390x: spelling fixes 2023-07-25 17:13:45 +03:00
cpu_models.h
cpu_models_sysemu.c
cpu_models_user.c
diag.c hw/s390x: Move KVM specific PV from hw/ to target/s390x/kvm/ 2023-07-10 15:34:23 +02:00
gdbstub.c
gen-features.c
helper.c hw/s390x: Move KVM specific PV from hw/ to target/s390x/kvm/ 2023-07-10 15:34:23 +02:00
helper.h target/s390x: Fix LRA overwriting the top 32 bits on DAT error 2023-07-10 15:34:24 +02:00
interrupt.c
ioinst.c hw/s390x: Move KVM specific PV from hw/ to target/s390x/kvm/ 2023-07-10 15:34:23 +02:00
Kconfig
machine.c
meson.build
mmu_helper.c target/s390x: Fix LRA when DAT is off 2023-07-10 15:34:24 +02:00
s390x-internal.h
sigp.c
trace-events
trace.h