4ebaf4d105
Fix regress/lib/libc/ieeefp/except for MIPS. Newer FPE handling code did not generate SIGFPE, but always SIGILL. Add this back to the assembly code. The QED 5231 requests the kernel emulates some of the conditions that generate an SIGFPE, but when the emulation code did a ctc1 to fsr with an exception the kernel got a FPE in kernel mode. Fix this by saving the fp regs earlier, then saving the new FSR in the context. This allows the FSR value to be seen by the SIGFPE handler. Add fp emulation for 8 mips2 fpu instructions to handle exceptions (round.w.fmt, trunc.w.fmt, ceil.w.fmt, floor.w.fmt). This lets perl5 run when compiled -mips2. |
||
---|---|---|
bin | ||
dist | ||
distrib | ||
etc | ||
games | ||
gnu | ||
include | ||
lib | ||
libexec | ||
regress | ||
sbin | ||
share | ||
sys | ||
usr.bin | ||
usr.sbin | ||
Makefile |