]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/s390x: Do not use unwind for per_check_exception
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 2 May 2024 05:44:04 +0000 (22:44 -0700)
committerThomas Huth <thuth@redhat.com>
Wed, 29 May 2024 10:40:49 +0000 (12:40 +0200)
commita6a33760a33e5f6b73b139e1e6c87fb6663c76ea
tree7ae7b75e9eecd9c2cbc2451f7a2fb4e9204f7a6e
parent79d7475f39f1b0f05fcb159f5cdcbf162340dc7e
target/s390x: Do not use unwind for per_check_exception

Using exception unwind via tcg_s390_program_interrupt,
we discard the current value of psw.addr, which discards
the result of a branch.

Pass in the address of the next instruction, which may
not be sequential.  Pass in ilen, which we would have
gotten from unwind and is passed to the exception handler.
Sync cc_op before the call, which we would have gotten
from unwind.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Ilya Leoshkevich <iii@linux.ibm.com>
Message-ID: <20240502054417.234340-2-richard.henderson@linaro.org>
[thuth: Silence checkpatch.pl errors]
Signed-off-by: Thomas Huth <thuth@redhat.com>
target/s390x/helper.h
target/s390x/tcg/excp_helper.c
target/s390x/tcg/misc_helper.c
target/s390x/tcg/translate.c