OSDN Git Service

target/s390x: Fix SIGILL and SIGFPE psw.addr reporting
authorIlya Leoshkevich <iii@linux.ibm.com>
Mon, 5 Jul 2021 21:04:33 +0000 (23:04 +0200)
committerThomas Huth <thuth@redhat.com>
Tue, 3 Aug 2021 13:17:32 +0000 (15:17 +0200)
commit54ba2161d8c40235d7b486d68ac3803ae0818f43
tree9b7aeb3d66e912ca2f974e024e464fb3d7800d1e
parent7f1cab9c628a798ae2607940993771e6300e9e00
target/s390x: Fix SIGILL and SIGFPE psw.addr reporting

For SIGILL, SIGFPE and SIGTRAP the PSW must point after the
instruction, and at the instruction for other signals. Currently under
qemu-user for SIGFILL and SIGFPE it points at the instruction.

Fix by advancing psw.addr for these signals.

Co-developed-by: Ulrich Weigand <ulrich.weigand@de.ibm.com>
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Buglink: https://gitlab.com/qemu-project/qemu/-/issues/319
Message-Id: <20210705210434.45824-2-iii@linux.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
linux-user/s390x/cpu_loop.c