Skip to contentSkip to conversation

FYI floating point

parisc-linux [email protected] 2 participants 2 messages Mar 28, 2001 – Mar 29, 2001

lore
Share & tools
lore
#0 lore raw

After adding code to emulate the FRND instruction I thought I'd be done with FP, but I've been seeing unimplemented instruction traps on FP instructions that I know are implemented (FSUB, FDIV). Apparently the FPU expects emulation to handle the exceptional cases of some instructions (such as division by a very tiny number). Don't count on this to be fixed until sometime next week.

-Paul Bame

#1 lore raw
Quoted 4 lines · Paul

Apparently
the FPU expects emulation to handle the exceptional cases of some instructions (such as division by a very tiny number). Don't count on this to be fixed until sometime next week.

Yes, the architecture allows the FP hardware to give up and trap to the emulation handler for any reason whatsoever. The emulation handler is expected to include a full implementation of all instructions.

When the lack of of an FP emulation handler in parisc-linux was first discussed on this list, I started the machinery inside HP to get the HP-UX one open-sourced. Thanks to the work of many individuals in HP, this is actually happening now. So, if you'd like to hack in some minimal support to get a particular program working, fine, but otherwise I would suggest you wait until the HP-UX handler is released.

-- Jim