]> 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)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 18 Oct 2023 22:32:16 +0000 (15:32 -0700)
commit6fad9b4bb91dcc824f9c00a36ee843883b58313b
treef4cd35611ee0b219b1430288f07e7c8770eb5093
parente6e66b03287331abc6f184456dbc6d25505590ec
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>
linux-user/mips/cpu_loop.c