You will not be able to post if you are still using Microsoft email addresses such as Hotmail etc
See here for more information viewtopic.php?f=20&t=7296
BOOKMARK THIS PAGE !
https://www.exxosforum.co.uk:8085/IP_CHECK/
You can unban yourself if needed. It also sends me reports to investigate the ban.
DO NOT USE MOBILE / CGNAT DEVICES WHERE THE IP CHANGES CONSTANTLY!
At this time, it is unfortunately not possible to whitelist users when your IP changes constantly.
You may inadvertently get banned because a previous attack may have used the IP you are now on.
So I suggest people only use fixed IP address devices until I can think of a solution for this problem!

Getting software to work on 68LC060

News & updates for the upcoming 68060 accelerator

Moderators: terriblefire, Terriblefire Moderator

alenppc
Moderator Team
Moderator Team
Posts: 933
Joined: 08 Nov 2018 12:59

Getting software to work on 68LC060

Post by alenppc »

The 68LC060 (rev4) is super cheap right now, it clocks really high (same as rev6), it would be a shame not being able to use it. But how to get software to run on it?

Unfortunately almost everything crashes, including Stephen's own CPUSPEED command. The forced FPU code is coming out of somewhere but I can't figure out from where. What's really weird is that the same setup runs fine on 030 without FPU, so it's probably some component of AmigaOS that detects an 040+ and forces FPU instructions. But which part?
amimjf
Posts: 87
Joined: 22 Mar 2020 08:25

Re: Getting software to work on 68LC060

Post by amimjf »

Hi,

I guess this might be obvious, but the OS can't force FPU instructions unless they are generated by the compiler or present in inline assembly. Likewise if the program loads a dynamic library or links against a static library that has no FPU instructions there are none for the FPU to execute. Question is where are FPU instructions coming from ?

An FPU instruction on an LC will probably produce an illigal instruction trap in a debugger.

Combination of a resident debugger like COP and SnoopDOS will let you see where the FPU instruction is loaded from.

At a guess some library is deciding 060 is always full, as that was always the case on historical accelerators.
terriblefire
Admin sponsor
Admin sponsor
Posts: 5686
Joined: 28 Aug 2017 22:56
Location: Glasgow, UK

Re: Getting software to work on 68LC060

Post by terriblefire »

The 680x0 series can trap all unrecognised instructions and emulate them.

Because AmigaOS is stupid you have to create separate binaries for 6888x emulation (via a library), real 68881/2 and 68040/68060 FPU. All three are different need different binaries. IMHO the code should always do the same and the OS should handle the absence of an FPU. I'd call this hardfloat on ARM.

Either that or the runtime linker should patch up things at runtime. But the current state of not having a single binary that can run on all setups is very irrirating.

My cpuspeed C code does float math so it needs to be recompiled for no-fpu. I'll get around to it.
———
"It is not necessarily a supply voltage at no load, but the amount of current it can provide when touched that
indicates how much hurting you shall receive."
alenppc
Moderator Team
Moderator Team
Posts: 933
Joined: 08 Nov 2018 12:59

Re: Getting software to work on 68LC060

Post by alenppc »

Ok I get the explanation for cpuspeed, makes sense. But what doesn’t make sense is all the other software happily crashing away while the same software runs without issue on the 030 without fpu.
amimjf
Posts: 87
Joined: 22 Mar 2020 08:25

Re: Getting software to work on 68LC060

Post by amimjf »

Well if you compile for no-fpu and don't link against any libraries that have fpu code in them it will work on any 060.

Problem of course is that most/all 060 exe's where compiled for FPU, not even sure if you can specify 060 + no-fpu code generation in most compilers as it was never a historically available combination.

Simplest option would probably be an LC aware 060 library that handled trapped 060 fpu instructions and emulated them in software, just like standard 060 libraries do with 040 instructions not present on the 060.

Problem is that it would be pretty slow for any fpu intensive stuff
terriblefire
Admin sponsor
Admin sponsor
Posts: 5686
Joined: 28 Aug 2017 22:56
Location: Glasgow, UK

Re: Getting software to work on 68LC060

Post by terriblefire »

amimjf wrote: 26 Aug 2020 23:32 Well if you compile for no-fpu and don't link against any libraries that have fpu code in them it will work on any 060
It doesnt thought. Tried it.. its infuriating.
———
"It is not necessarily a supply voltage at no load, but the amount of current it can provide when touched that
indicates how much hurting you shall receive."
juz400
Posts: 36
Joined: 11 Sep 2019 20:18

Re: Getting software to work on 68LC060

Post by juz400 »

Could this be of any help in your diagnosis?
I think it might be for the missing FPU instructions from 68882 though.

http://aminet.net/package/dev/debug/FPSPSnoop
This debugging tool intercepts the traps generated by a 68040 or 68060
processor as soon as it detects an instruction that is valid, but not
implemented in hardware. It is the job of the 68040 or 68060.library to
emulate these instructions in software. FPSPSnoop disassembles these
instructions, and prints the user status of the CPU and FPU at the
time the emulation is entered.
terriblefire
Admin sponsor
Admin sponsor
Posts: 5686
Joined: 28 Aug 2017 22:56
Location: Glasgow, UK

Re: Getting software to work on 68LC060

Post by terriblefire »

Try this... its compiled as -lmieee
cpuspeed.zip
You do not have the required permissions to view the files attached to this post.
———
"It is not necessarily a supply voltage at no load, but the amount of current it can provide when touched that
indicates how much hurting you shall receive."
User avatar
supaduper
Site sponsor
Site sponsor
Posts: 664
Joined: 08 Nov 2018 12:05

Re: Getting software to work on 68LC060

Post by supaduper »

Just tried CPUSPEED LC on an LC 060 on the TF360 and it all looks good here fella
You do not have the required permissions to view the files attached to this post.
User avatar
32Bits
Posts: 33
Joined: 21 Jan 2019 19:57

Re: Getting software to work on 68LC060

Post by 32Bits »

This is great news. Thanks for the recompile will test with my LC.
C128/A3000/CD32/A1200 -https://www.youtube.com/c/32Bits

Return to “TF360”

Who is online

Users browsing this forum: CCBot and 6 guests