]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/hppa: Copy instruction code into fr1 on FPU assist fault
authorHelge Deller <deller@gmx.de>
Sat, 17 May 2025 11:12:07 +0000 (13:12 +0200)
committerHelge Deller <deller@gmx.de>
Sat, 17 May 2025 11:12:07 +0000 (13:12 +0200)
commit923976dfe367b0bfed45ff660c369f3fe65604a7
tree765ed949e42a6c19d3e7315eb62b3de69b5e2d78
parent7c949c53e936aa3a658d84ab53bae5cadaa5d59c
target/hppa: Copy instruction code into fr1 on FPU assist fault

The hardware stores the instruction code in the lower bits of the FP
exception register #1 on FP assist traps.
This fixes the FP exception handler on Linux, as the Linux kernel uses
the value to decide on the correct signal which should be pushed into
userspace (see decode_fpu() in Linux kernel).

Signed-off-by: Helge Deller <deller@gmx.de>
target/hppa/int_helper.c