MiKRO a écrit :
There is something wrong here, I use 68020-60 for near 10 years, because in past I was under MagicMac with a PPC and PowerFPU, PowerFPU emulate only 68040 FPU and is not able to use 68881 specific instructions and there was no 68881 avaible, so I have find this solution and compil application with this flag and it work! Now if you not sure of this just remove your 68881 emulator, and test Kronos in this config, do the opengl test choose 68060 computer and look, this was compil with 68020-60 flag and use a very old libm from netsbsd I have port a long time ago! Notice there was in past in the math.h inline asm 68881 instruction that generate 68881 instruction even with 68020-60 option but now this is corrected for a long time.Of course m68020-60 use only FPU instructions avaible on 68881 and 68060 and 68040, there is no specific 68881 instruction (like sin cos...) used with this option. Hmm... |-m68020-60| Generate output for a 68060, without using any of the new instructions. This results in code which can run relatively efficiently on either a 68020/68881 or a 68030 or a 68040. *The generated code does use the 68881 instructions that are emulatedon the 68060*.-- MiKRO / Mystic Byteshttp://mikro.atari.org
I can send you the actual libm from netbsd with 68020-60 or even try compil it with 68060 option to see (absolutly not sure it work correctly, not try compil any application except ffmpeg and an simple printf("%lf\n",sin(0.5)))!
Olivier