Welcome, Guest. Please login or register.

Author Topic: OS4 and 680x0 emulation  (Read 3032 times)

Description:

0 Members and 1 Guest are viewing this topic.

  • Guest
OS4 and 680x0 emulation
« on: June 11, 2004, 09:25:57 AM »
Hello,

i've installed OS4 and restored a backup from my old calssic amiga (68060)....
when i start voyager (the 68060 optimized version) it crashed at startup. then i installed the 030 version (with fpu) and now voyager started up. :-)

did the 68k emulator in OS4 not emulate the 68060? which processor doe it emulate?
have i to remove all my 68060 comiled programs and subst it with a other version?

thanx!

tanarri

- subject line edited by mikeymike - short and sweet is good :-) -
 

Offline mikeymike

  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 3420
  • Country: 00
    • Show only replies by mikeymike
Re: OS4 and 680x0 emulation
« Reply #1 on: June 11, 2004, 09:55:39 AM »
Try the original binaries, see what happens?
 

Offline DaNi

  • Sr. Member
  • ****
  • Join Date: Oct 2003
  • Posts: 281
    • Show only replies by DaNi
    • http://morphos.blog.com.es/
Re: OS4 and 680x0 emulation
« Reply #2 on: June 11, 2004, 10:31:46 AM »
The os4 uses petunia for emulate all 68k codes, the pre-release have built-in the 020 emulation, but the petunia full emulates 040+fpu (no mmu) http://amigos.amiga.hu/rachy/petunia.html,i think emulating programs or libraries using mmu can have any type of problems. The best method is install all 68k soft and choose the cpu for dont have problems.

Cheers
EFIKA 5K2 PowerPC G2 400Mhz, MorphOS 2.7, 128MB 266MHz DDR RAM, FSB 133MHz, 500GB HDD, Radeon 9200 PRO 128MB, USB HUB x8.
 

Offline xeron

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 2533
    • Show only replies by xeron
    • http://www.petergordon.org.uk
Re: OS4 and 680x0 emulation
« Reply #3 on: June 11, 2004, 10:44:49 AM »
To be honest, expecting 68k Voyager to do anything but crash, even on a real Amiga, is at best unrealistically optimistic ;-)

Well written 68060 optimised applications will run fine under OS4, but whether it is best to install the 020 or 060 version i'm not sure.
Playstation Network ID: xeron6
 

Offline alx

Re: OS4 and 680x0 emulation
« Reply #4 on: June 11, 2004, 10:51:26 AM »
Quote
Well written 68060 optimised applications will run fine under OS4, but whether it is best to install the 020 or 060 version i'm not sure.


IIRC the emulation can emulate most 040 specific code, but programs with an 040 version tend to assume that there's an MMU (which obviously won't run, as DaNi says) - something like that at least :-D

Offline DeQuevedo

  • Full Member
  • ***
  • Join Date: Jun 2002
  • Posts: 220
    • Show only replies by DeQuevedo
Re: OS4 and 680x0 emulation
« Reply #5 on: June 11, 2004, 12:39:03 PM »
Hi All

As far I know, Petunia ATM is included in Os4 as a interpretive emulator, an its a stippeddown version of the full power 68k emulador.

Its actually emulating  a 68020 with FPU but NO MMU, so the best choice for me is choosing the 020 / 030 version at the installer of the software, in order to avoid crashes.

The JIT version of petunia will emulate a 040 FPU (let see if MMU will be emulated or not), so yes, If were you I will erase all the 060 stuff of the backup in order to try it on Aone.

Best Regards

-DeQ
---------------------------------------

-Have Fun infected Incubes!
 

Offline Framiga

  • Hero Member
  • *****
  • Join Date: May 2003
  • Posts: 4096
    • Show only replies by Framiga
Re: OS4 and 680x0 emulation
« Reply #6 on: June 11, 2004, 02:19:37 PM »
Hi all,

don't use 060 optimized apps under AOS4.

020-040 should works fine.

Ciao

 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16882
  • Country: gb
  • Thanked: 6 times
    • Show only replies by Karlos
Re: OS4 and 680x0 emulation
« Reply #7 on: June 11, 2004, 02:44:02 PM »
I've ran stuff compiled for 020-060 with no problems at all on OS4. The user mode of these chips varies very little. It's only when an application directly uses some specific (usually supervisor mode) function of a processor (such as MMU or direct cache manipulation) you get problems.

In the best intrests of compatibility, since the interpretive emulator emulates 68020 + FPU I'd be inclined to use either 68020+FPU or generic 68020-68060+FPU (the latter doesnt have any FPU instructions the 040/060 can't directly manage) binaries first. It's most unlikely that there would be any noticable speed gains from an 060 optimised binary over an 020 one when dealing with emulation anyway.
int p; // A
 

Offline Kronos

  • Resident blue troll
  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 4017
    • Show only replies by Kronos
    • http://www.SteamDraw.de
Re: OS4 and 680x0 emulation
« Reply #8 on: June 11, 2004, 02:53:42 PM »
And what normal apps use MMU ? None !!
Only OS-patches and debugging-tools use it.

Dunno bout Petunia, but most emus will run best with 020/881 when the app uses floating-point and 040 if it doesn't since the emus  emulate an 040 with FULL FPU.

Running 060 binaries is a bit counter-productive since all improvement over the 040 are in the way it executes the SW, something that will make no difference for the emu.

It may even be that the emu has a harder time with the specially aranged instruction in a 060-bin (to make full use of it's parallel features) compared to a straight-down 040-bin. The instructions missing in the 060 compared to the 040 will also mean a small performance downgrade as the app will call replacement routines instead of simply useing the 040-instructions (which is supported by the emu).
1. Make an announcment.
2. Wait a while.
3. Check if it can actually be done.
4. Wait for someone else to do it.
5. Start working on it while giving out hillarious progress-reports.
6. Deny that you have ever announced it
7. Blame someone else
 

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12114
    • Show only replies by bloodline
    • http://www.troubled-mind.com
Re: OS4 and 680x0 emulation
« Reply #9 on: June 11, 2004, 03:15:05 PM »
Does the 060 have a conditional move instruction?

Offline itix

  • Hero Member
  • *****
  • Join Date: Oct 2002
  • Posts: 2380
    • Show only replies by itix
Re: OS4 and 680x0 emulation
« Reply #10 on: June 11, 2004, 03:59:15 PM »
If you are installing browser and have fast internet: use datatype loaders :-D
My Amigas: A500, Mac Mini and PowerBook
 

Offline KennyR

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 8081
    • Show only replies by KennyR
    • http://wrongpla.net
Re: OS4 and 680x0 emulation
« Reply #11 on: June 11, 2004, 04:04:07 PM »
I've been using 68k emulation for over a year in MorphOS, and I've set up UAE too on the family PC. I think that, from a user point of view, CPU optimisations don't matter the slightest for emulation. 060 code optimised for branching won't run any faster than 000 code with old instructions. Even if there was a difference, modern CPUs (even as "slow" as a G3) won't let you see it. Not even without JIT.
 

Offline rachy

  • Newbie
  • *
  • Join Date: Mar 2002
  • Posts: 23
    • Show only replies by rachy
    • http://amigos.amiga.hu/rachy
Re: OS4 and 680x0 emulation
« Reply #12 on: June 11, 2004, 05:08:36 PM »
Let's clean up the situation for everybody's good:

1. The Prerelase AOS4 CD does not contain Petunia in any form. It uses the interpretive emulator (formely known as Black box).

2. The interpretive emulator knows all opcodes up to 040+881, and a 060 has even fewer opcodes than a 040, so this cannot imply the crash at all. The system reports only 020+881 for compatibility reasons, but it does not bother too much. You can install any software what is not using MMU and special tricks/traps to determine FPU type and similar things on a non-system friendly way. (Like identify.library does - if I remeber correctly the name of it.)

3. Just as KennyR wrote: 68k processor optimized versions won't be faster normally under the emulation at all. (Probably the specially 040 optimized with MOVE16, but it is highly doubt.)

So all in all: if something crashes that is not caused by a missing opcode from the emulator. I suggest to install 020+881 software. :-)
Álmos Rajnai