]> 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)
committerMichael Tokarev <mjt@tls.msk.ru>
Sun, 25 May 2025 08:19:57 +0000 (11:19 +0300)
commit5f119c69ff8867ecea92f78cbc7e288efb3a23a9
tree4687a0513c5c6a996c18b23bcb81c488f3c87083
parent679450c92650294c77e80104760e93c7503bea78
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>
(cherry picked from commit b4b49cf39dba5f993ad925f204cb820aacfc8e45)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
linux-user/hppa/cpu_loop.c