]> git.ipfire.org Git - thirdparty/qemu.git/commit
linux-user/hppa: Send proper si_code on SIGFPE exception
authorHelge Deller <deller@gmx.de>
Sat, 17 May 2025 11:20:17 +0000 (13:20 +0200)
committerHelge Deller <deller@gmx.de>
Sat, 17 May 2025 11:20:17 +0000 (13:20 +0200)
commitb4b49cf39dba5f993ad925f204cb820aacfc8e45
tree9a84550fba413444704fd5e8c4a28459fc7b0bc2
parent923976dfe367b0bfed45ff660c369f3fe65604a7
linux-user/hppa: Send proper si_code on SIGFPE exception

Improve the linux-user emulation to send the correct si_code depending
on overflow (TARGET_FPE_FLTOVF), underflow (TARGET_FPE_FLTUND), ...
Note that the hardware stores the relevant flags in FP exception
register #1, which is actually the lower 32-bits of the 64-bit fr[0]
register in qemu.

Signed-off-by: Helge Deller <deller@gmx.de>
linux-user/hppa/cpu_loop.c