]> 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 10:14:52 +0000 (13:14 +0300)
commit148eb79f573299bf517ff2ff0f2ed87f18d59af9
treebd9d3a9e9be0d76b119902f3e610554fcfef0a3d
parentb1ff64ba4e84fdefc514111270da4283b94271c3
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