Page 5 of 5

Re: FPU Emulator

Posted: 16 Jul 2022 20:42
by agranlund
Badwolf wrote: 13 Jul 2022 20:05 I see you program as a way around that.
A ratio of about 1:440!
Wow! Yep I agree, it’s mostly useful as a compatibility thing for programs not having to using it much, especially with ratios like that :)
Looking at the code I can spot some obvious optimization opportunities but even so I don’t think it’s worth the effort. It’s still going to be very slow even compared to compiled-in softfloats.

The latest version emulates the fpu null/idle states and fsave+frestore instructions were improved.
This made MacOS happy with the fake FPU and you can now get terrible numbers in Speedometers FPU benchmark :)
(in latest version of Basilisk, the previous ones wouldn’t use Atari lineF emulators from the Mac context)

I’m not sure there’s too much more to add at this point so next up is probably to arrange the sources for Github.

Re: FPU Emulator

Posted: 16 Jul 2022 21:05
by shoggoth77
Personally I think this should eventually end up in the mint kernel, though I suspect there are other opinions.

Awesome work, Granlund.

Re: FPU Emulator

Posted: 17 Jul 2022 03:29
by agranlund
Updated both fpemu and Basilisk.

Sourcecode for fpemu is on Github too:
https://github.com/agranlund/tftools

Yes, the sources are in the tftools repo. Maybe not the best place but that's how I had it locally and it's convenient for me. The other tools are not strictly just for TF53x either so I don't feel too bad about it. I might get around to rearranging and renaming some stuff later on.

Re: FPU Emulator

Posted: 18 Jul 2022 19:12
by Badwolf
agranlund wrote: 17 Jul 2022 03:29 Sourcecode for fpemu is on Github too:
https://github.com/agranlund/tftools
Thank you very much for this! :-)

BW

Re: FPU Emulator

Posted: 11 Feb 2023 15:28
by foft
This looks great.

I'm curious why the code explicitly stops it running on 060, i.e. the CPU > 40?
https://github.com/agranlund/tftools/bl ... emu/main.c
Wouldn't the line F traps also work for anyone using an LC 060? A lot of 060 code, at least on Amiga, is compiled using the FPU for just some minor init stuff.