Mail Archives: djgpp-workers/1996/06/12/00:40:47
> It seems like the coprocessor emulators and libraries don't work with
> signals. This small program doesn't get SIGFPE when run under either
> emu387 or wmemu387:
Under the braindead AT architecture, with the FPU exception hooked up
to a hardware interrupt instead of a processor exception vector, emulation
of FP errors would be infeasible, so a different method would be needed.
The emu control word would need to be set to generat an exception, then the
emulator would need to return an error code, which the current code
somewhat incorrectly handles as SIGFPE. I don't know of anyone who
is willing to spend any time working on emulation stuff when FPUs
are essentially free. Find the person with lots of time to waste, and
I'll put them to work fixing these things.
> the FSU pthreads library uses signal handling and it doesn't seem to work
> at all with floating point emulation.
That may well be a completely separate problem, since the interface to
the emulation stuff is tightly coupled with the signal library, and if
you mess with signals incorrectly, or modify the signal library, it
probably won't work.
- Raw text -