FPU Emulator

General Discussion, STOS.

Moderator: troed

User avatar
agranlund
Posts: 777
Joined: Sun Aug 18, 2019 10:43 pm
Location: Sweden
Contact:

Re: FPU Emulator

Post by agranlund »

Badwolf wrote: Wed Jul 13, 2022 8:05 pm 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.
shoggoth77
Posts: 22
Joined: Tue Mar 08, 2022 8:08 pm

Re: FPU Emulator

Post by shoggoth77 »

Personally I think this should eventually end up in the mint kernel, though I suspect there are other opinions.

Awesome work, Granlund.
User avatar
agranlund
Posts: 777
Joined: Sun Aug 18, 2019 10:43 pm
Location: Sweden
Contact:

Re: FPU Emulator

Post 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.
User avatar
Badwolf
Posts: 2231
Joined: Tue Nov 19, 2019 12:09 pm

Re: FPU Emulator

Post by Badwolf »

agranlund wrote: Sun Jul 17, 2022 3:29 am Sourcecode for fpemu is on Github too:
https://github.com/agranlund/tftools
Thank you very much for this! :-)

BW
DFB1 Open source 50MHz 030 and TT-RAM accelerator for the Falcon
DSTB1 Open source 16Mhz 68k and AltRAM accelerator for the ST
Smalliermouse ST-optimised USB mouse adapter based on SmallyMouse2
FrontBench The Frontier: Elite 2 intro as a benchmark
foft
Posts: 316
Joined: Mon Mar 28, 2022 12:20 pm

Re: FPU Emulator

Post 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.
Post Reply

Return to “SOFTWARE”