summary refs log tree commit diff stats
path: root/hw/core/gpio.c
diff options
context:
space:
mode:
authorIlya Leoshkevich <iii@linux.ibm.com>2023-11-06 10:31:22 +0100
committerThomas Huth <thuth@redhat.com>2023-11-07 19:27:08 +0100
commitaba2ec341c6d20c8dc3e6ecf87fa7c1a71e30c1e (patch)
treebbbfc3c688b79cfdd4cf329a255f7af9fc8ff0d9 /hw/core/gpio.c
parentad63e6d69326a2db0ed5ab8c9277b5b504a919a8 (diff)
downloadfocaccia-qemu-aba2ec341c6d20c8dc3e6ecf87fa7c1a71e30c1e.tar.gz
focaccia-qemu-aba2ec341c6d20c8dc3e6ecf87fa7c1a71e30c1e.zip
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: 4f7403d52b1c ("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>
Diffstat (limited to 'hw/core/gpio.c')
0 files changed, 0 insertions, 0 deletions