|
|
|
|
|
by retrac
51 days ago
|
|
> Modern implementation of FPU emulation might be more straightforward. Most 32-bit designs throw an exception on an invalid instruction so it can be caught and handled at runtime. Even basic ARM Cortex-M0 chips throw a catchable exception on illegal instructions. So one option is to just issue the FPU instructions as if the FPU exists, and then catch and emulate. This is how operating systems emulated FPUs on processors like the 68020, the 386 and early RISC machines, if they didn't have an FPU. |
|