mirror of
https://github.com/dingusdev/dingusppc.git
synced 2025-01-21 23:29:51 +00:00
acc6e77ec5
Rather than running them normally, they should trigger a "no FPU" exception. This appears to be required to allow correct graphical rendering under Mac OS X - the FP bit cleared via mtmsr and rfi instructions and something else appears to be relying on the exception to be thrown. Implemented by maintaining a parallel version of the OpcodeGrabber table (OpcodeGrabberNoFPU) which contains alternate implementations for all the floating point instructions. We switch the table whenever the MSR value changes. This should minimize the overhead of doing these checks.