FPU Emulator

General Discussion, STOS.
User avatar
agranlund
Site sponsor
Site sponsor
Posts: 1749
Joined: 18 Aug 2019 22:43
Location: Sweden

Re: FPU Emulator

Post 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.
shoggoth77
Posts: 22
Joined: 08 Mar 2022 20:08

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
Site sponsor
Site sponsor
Posts: 1749
Joined: 18 Aug 2019 22:43
Location: Sweden

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
Site sponsor
Site sponsor
Posts: 3043
Joined: 19 Nov 2019 12:09

Re: FPU Emulator

Post 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
DFB1 Open source 50MHz 030 and TT-RAM accelerator for the Falcon
Smalliermouse ST-optimised USB mouse adapter based on SmallyMouse2
FrontBench The Frontier: Elite 2 intro as a benchmark
foft
Posts: 342
Joined: 28 Mar 2022 12:20

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.

Return to “SOFTWARE”

Who is online

Users browsing this forum: ClaudeBot, Fairchild and 3 guests