Welcome, Guest. Please login or register.

Author Topic: AROS 68k EMU  (Read 5762 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline CrumbTopic starter

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 1786
  • Country: 00
    • Show only replies by Crumb
    • http://cuaz.sourceforge.net
Re: AROS 68k EMU
« Reply #14 on: February 03, 2004, 03:43:34 PM »
@Matt:
"The Best solution is to have a *special* version of AROS 68k running in an Emuator. This *special* version of AROS would not implement many functions but instead pass most over to the Native AROS x86 running the machine. This would make the 68k program appear to be running nativly with the added bonus of Chipset emulation!!! "

That's not a bad idea for x86, but on PPC and big-endian cpus as you don't have endianess problems it may be integrated as in OS4 or MOS more easily. The downside of using UAE with a "native" AROS ROM that calls OS functions is that it probably won't be as fast as an integrated emu. The advantage of being able to use hardware hitting software is a big bonus anyway...

@Fabio:
"but since programs are free to poke around in memory, there's no way you can make both native and emulated program work seamlessy together AND let them share memory. "

Well, if you mark a zone with the MMU to use it with 68k programs and other for native software you could share memory because you could know where you have to reverse words and longwords and were you haven't.

I'm not saying that it's easy but I think that it's possible. If you can notice if a program is writing on an area where you have to invert the bytes and in other were you don't and everything is aligned... it may be possible wouldn't it?

-edit:-
[offtopic] Fabio... the reaction stuff continues without linking correctly, should I use fd2pragma?

As you have done the gcc port to AROS do you know how easy is to add various targets to the same gcc "distro"? I'd like to have one 3.x 68k gcc that created code for MorphOS, OS4, OS3.x, AROS and Amithlon changing only a flag at compile time.

I would add one thing more:
If you use an integrated emu you won't need to wait until AROS is finished and you won't have to make modifications to the emu.

If you choose the UAE with "native" rom approach you will need to have a complete replacement of rom3.1 and if you change a function in AROS you will need to change it inside the emulation too and maintenance of it will take a lot of time every time something is changed.
The only spanish amiga news web page/club: Club de Usuarios de Amiga de Zaragoza (CUAZ)
 

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12113
    • Show only replies by bloodline
    • http://www.troubled-mind.com
Re: AROS 68k EMU
« Reply #15 on: February 03, 2004, 04:00:42 PM »
Quote

Well, if you mark a zone with the MMU to use it with 68k programs and other for native software you could share memory because you could know where you have to reverse words and longwords and were you haven't.

I'm not saying that it's easy but I think that it's possible. If you can notice if a program is writing on an area where you have to invert the bytes and in other were you don't and everything is aligned... it may be possible wouldn't it?
 


Even if that were possible, the performance hit would be far below The emulator option I have already suggested.

You seem concerned about performance penatys from the emulator option, but I assue you, 68k software will run much faster than any real Amiga (as it will ahve the UAE JIT) and any 68K->x86 AROS overhead would be not much greater than a byte swapping + function call....

Offline CrumbTopic starter

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 1786
  • Country: 00
    • Show only replies by Crumb
    • http://cuaz.sourceforge.net
Re: AROS 68k EMU
« Reply #16 on: February 03, 2004, 04:13:32 PM »
@bloodline:
"You seem concerned about performance penatys from the emulator option, but I assue you, 68k software will run much faster than any real Amiga (as it will ahve the UAE JIT) and any 68K->x86 AROS overhead would be not much greater than a byte swapping + function call...."

In amithlon native software reverses the bytes of the word and achieves a 75% of performance. We would have to add the overhead of the 68k emu, but UAE would be hardly faster.

And you are forgetting than on big-endian systems an integrated 68k emu would be FAR faster than the approach taken for the x86 port. It would be as fast as in MOS or OS4.
The only spanish amiga news web page/club: Club de Usuarios de Amiga de Zaragoza (CUAZ)
 

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12113
    • Show only replies by bloodline
    • http://www.troubled-mind.com
Re: AROS 68k EMU
« Reply #17 on: February 03, 2004, 04:36:24 PM »
Quote

Crumb wrote:
@bloodline:
"You seem concerned about performance penatys from the emulator option, but I assue you, 68k software will run much faster than any real Amiga (as it will ahve the UAE JIT) and any 68K->x86 AROS overhead would be not much greater than a byte swapping + function call...."

In amithlon native software reverses the bytes of the word and achieves a 75% of performance. We would have to add the overhead of the 68k emu, but UAE would be hardly faster.

And you are forgetting than on big-endian systems an integrated 68k emu would be FAR faster than the approach taken for the x86 port. It would be as fast as in MOS or OS4.


Several issues here:
1. Only the actuall function call would have any overhead, the function itself would be executed at fll speed natively on the CPU.

2. The Emulator would run as fast as any JIT, since only the actual OS function calls need to be passed to the Host OS, everything else runs via the JIT (as in MOS and OS4).

3. On an x86 system, you tend to have quite a bit of raw horsepower available even on low end systems.

4. By using an Emulator we do have the ability to use Games and Demos that hit the hardware.

5. By Big endien systems, you are refering to the PPC, which will be increasing in performance and AROS would have the advantage of harware hitting software, which is less likely to be ported to the new CPU anyway :-)

Offline CrumbTopic starter

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 1786
  • Country: 00
    • Show only replies by Crumb
    • http://cuaz.sourceforge.net
Re: AROS 68k EMU
« Reply #18 on: February 03, 2004, 05:46:39 PM »
The difficulty I see is that this approach would require that AROS was nearly finished (I mean, that it was 100% compatible with 3.1)

I guess that finishing the Amiga 68k port would help a little... once it's done it would be a matter of changing the "rom" 68k functions with functions that called native ones.
The only spanish amiga news web page/club: Club de Usuarios de Amiga de Zaragoza (CUAZ)
 

Offline CrumbTopic starter

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 1786
  • Country: 00
    • Show only replies by Crumb
    • http://cuaz.sourceforge.net
Re: AROS 68k EMU
« Reply #19 on: February 03, 2004, 05:50:47 PM »
BTW, what do you think about the idea of creating ONE distro that generated code for all amiga-like OSes hosted in OS3.x (firstly, then it would be ported to AROS, MOS, OS4, Amithlon, MacOS, Linux, windows...)?

Most of Amiga developers won't have linux or aros installed on their systems so there are more chances of seeing AROS soft appear.

In addition to that stupid wars would end because developers will be able to compile binaries for all targets changing only one flag.
The only spanish amiga news web page/club: Club de Usuarios de Amiga de Zaragoza (CUAZ)
 

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12113
    • Show only replies by bloodline
    • http://www.troubled-mind.com
Re: AROS 68k EMU
« Reply #20 on: February 03, 2004, 06:59:03 PM »
Quote

Crumb wrote:
The difficulty I see is that this approach would require that AROS was nearly finished (I mean, that it was 100% compatible with 3.1)

I guess that finishing the Amiga 68k port would help a little... once it's done it would be a matter of changing the "rom" 68k functions with functions that called native ones.


AROS is suppsoed to be 100% compatible to 3.1. Getting the 68K version to work is a trivial task, it just that the only persopn with the time and experience to do it has a broken Network card (ZorroII)  in his Amiga 3000 so he can't do much at the moment (how to get 100megs of sources to the A3K?).

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12113
    • Show only replies by bloodline
    • http://www.troubled-mind.com
Re: AROS 68k EMU
« Reply #21 on: February 03, 2004, 06:59:55 PM »
Quote

Crumb wrote:
BTW, what do you think about the idea of creating ONE distro that generated code for all amiga-like OSes hosted in OS3.x (firstly, then it would be ported to AROS, MOS, OS4, Amithlon, MacOS, Linux, windows...)?

Most of Amiga developers won't have linux or aros installed on their systems so there are more chances of seeing AROS soft appear.

In addition to that stupid wars would end because developers will be able to compile binaries for all targets changing only one flag.


Look up openamiga.org :-)

That is the place to start such an idea :-)

Offline melott

  • Hero Member
  • *****
  • Join Date: Dec 2002
  • Posts: 989
    • Show only replies by melott
Re: AROS 68k EMU
« Reply #22 on: February 04, 2004, 04:32:00 AM »
I was going to say that I'm disappointed that AROS
had abandoned the idea of Classic Amiga
compatability. But after reading this thread maybe
not.
As I see it, any 'Amiga Like' OS, to have a chance
of being anything more than just another 'Also Ran'
has carry with it Classic Amiga compatability.
Without that compatability I don't really see any
reason for it. There are already a number of other
OS's that have very little support.
The Classic Amiga is a cult, look at how many ppl
now don't even consider the A1 a real Amiga.
No Classic compatability.
Without Classic compatability AROS ( IMHO )
is a waste of time, whats the point??
Stealth ONE  8-)
 

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12113
    • Show only replies by bloodline
    • http://www.troubled-mind.com
Re: AROS 68k EMU
« Reply #23 on: February 04, 2004, 09:52:01 AM »
Quote

melott wrote:
I was going to say that I'm disappointed that AROS
had abandoned the idea of Classic Amiga
compatability. But after reading this thread maybe
not.
As I see it, any 'Amiga Like' OS, to have a chance
of being anything more than just another 'Also Ran'
has carry with it Classic Amiga compatability.
Without that compatability I don't really see any
reason for it. There are already a number of other
OS's that have very little support.
The Classic Amiga is a cult, look at how many ppl
now don't even consider the A1 a real Amiga.
No Classic compatability.
Without Classic compatability AROS ( IMHO )
is a waste of time, whats the point??


Once such a system is built for AROS, I don't see why it couldn't be ported to MOS and OS4.

Offline CrumbTopic starter

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 1786
  • Country: 00
    • Show only replies by Crumb
    • http://cuaz.sourceforge.net
Re: AROS 68k EMU
« Reply #24 on: February 04, 2004, 10:09:48 AM »
@Matt:
"it just that the only persopn with the time and experience to do it has a broken Network card (ZorroII) in his Amiga 3000 so he can't do much at the moment (how to get 100megs of sources to the A3K?)."

mmm do you know what a CD is? ;-) you burn a cd on your pc with the sources, put it in the cd of your A3k and copy the sources to your hd ;-)

Sorry, I only have a cbm 286 bridgeboard and it takes a little time to use it with an ISA NE2000 card and requires a harddisk controller without dma.


BTW: with your idea of making using native calls from UAE etc... how would you mix AROS native and 68k libraries and devices? It sounds as it would be much more difficult than using an integrated emu.
The only spanish amiga news web page/club: Club de Usuarios de Amiga de Zaragoza (CUAZ)
 

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12113
    • Show only replies by bloodline
    • http://www.troubled-mind.com
Re: AROS 68k EMU
« Reply #25 on: February 04, 2004, 10:34:58 AM »
Quote

BTW: with your idea of making using native calls from UAE etc... how would you mix AROS native and 68k libraries and devices? It sounds as it would be much more difficult than using an integrated emu.
 


That is the only drawback with the emulator system.

Native tasks could not access the 68k libraries and devices.

But it would not take much work to make the *Special* 68k AROS build maybe a speical calling library on the Native side (That traps calls and directs them to the Emualtor)... hmmm I think it could be done actually... I have to assk Fabio though.

Offline CrumbTopic starter

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 1786
  • Country: 00
    • Show only replies by Crumb
    • http://cuaz.sourceforge.net
Re: AROS 68k EMU
« Reply #26 on: February 04, 2004, 10:42:16 AM »
@Bloodline:

"Look up openamiga.org :-)

That is the place to start such an idea :-)"

added:
http://openamiga.org/forum/viewtopic.php?t=10
The only spanish amiga news web page/club: Club de Usuarios de Amiga de Zaragoza (CUAZ)
 

Offline ptek

  • Sr. Member
  • ****
  • Join Date: Jul 2002
  • Posts: 328
    • Show only replies by ptek
Re: AROS 68k EMU
« Reply #27 on: February 04, 2004, 10:42:34 AM »
Personally, I don't see the reason for all the fuss about AROS ...

OK, I agree that's a serious project and the people involved are surelly skilled ...

But I have only one complain : Did you ever tried to run it on a 486 on the past ?

Before you laugh at me, let me say that I tried AROS some years ago when I have a 80Mhz 486 and that thing was damn slow !

Are you blaming the 486 ?
Don't.
On that same 486 I also run win95 and that was fast !
Usable.

OK, AROS is AMIGA like, now we have GHz CPU, blahblahbla, but I was totally putted by the lack of optimization of AROS ...

I really looked like a 68K emulator (which it isn't!)


Onions have layers ...
 

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12113
    • Show only replies by bloodline
    • http://www.troubled-mind.com
Re: AROS 68k EMU
« Reply #28 on: February 04, 2004, 10:53:56 AM »
Quote

ptek wrote:
Personally, I don't see the reason for all the fuss about AROS ...

OK, I agree that's a serious project and the people involved are surelly skilled ...

But I have only one complain : Did you ever tried to run it on a 486 on the past ?

Before you laugh at me, let me say that I tried AROS some years ago when I have a 80Mhz 486 and that thing was damn slow !

Are you blaming the 486 ?
Don't.
On that same 486 I also run win95 and that was fast !
Usable.

OK, AROS is AMIGA like, now we have GHz CPU, blahblahbla, but I was totally putted by the lack of optimization of AROS ...

I really looked like a 68K emulator (which it isn't!)




Since AROS is written in C, we did not use any optimisation until recently, sicne optimisation makes bug hunting more difficult.

THe Graphics drivers you would have seen were the first ones made and they only ued the most basic VGA display (which is slow on my 3Ghz machine). The Windows95 you were using would have had speciall build accelerated GFX drivers.

Basicly AROS only looked slow :-) I tried AROS on an old P75 a year ago and it was faster than my 1200 with a BlizzPPC :-)

-Edit- I'm not blaming the 486, it's a powerful CPU, I'm blaming the lack of AROS specific gfx drivers for your old GFX card.

Offline CrumbTopic starter

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 1786
  • Country: 00
    • Show only replies by Crumb
    • http://cuaz.sourceforge.net
Re: AROS 68k EMU
« Reply #29 from previous page: February 04, 2004, 10:56:31 AM »
I think I tried it with a 133 pentium loading from disk. I didn't try the CD version...
floppies are very slow...
The only spanish amiga news web page/club: Club de Usuarios de Amiga de Zaragoza (CUAZ)