]> git.ipfire.org Git - thirdparty/qemu.git/commit
linux-user/mips: fix abort on integer overflow
authorMikulas Patocka <mpatocka@redhat.com>
Thu, 28 Sep 2023 19:55:20 +0000 (21:55 +0200)
committerMichael Tokarev <mjt@tls.msk.ru>
Thu, 19 Oct 2023 18:59:58 +0000 (21:59 +0300)
commit814f91d6790de6b24832f9282527a447bdc33de2
tree5c226a2a76c0cb3efd8b2c8f2001886d452006ad
parente73f57b1b57bb41ebbbcb6fe6f75bc8a770d17c7
linux-user/mips: fix abort on integer overflow

QEMU mips userspace emulation crashes with "qemu: unhandled CPU exception
0x15 - aborting" when one of the integer arithmetic instructions detects
an overflow.

This patch fixes it so that it delivers SIGFPE with FPE_INTOVF instead.

Cc: qemu-stable@nongnu.org
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Message-Id: <3ef979a8-3ee1-eb2d-71f7-d788ff88dd11@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
(cherry picked from commit 6fad9b4bb91dcc824f9c00a36ee843883b58313b)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
linux-user/mips/cpu_loop.c