Welcome, Guest. Please login or register.

Author Topic: OS4 Classic, why disable the 68k ?  (Read 8450 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline ErebosTopic starter

  • Newbie
  • *
  • Join Date: Aug 2005
  • Posts: 37
    • Show only replies by Erebos
    • http://dabeuss.over-blog.com
OS4 Classic, why disable the 68k ?
« on: April 10, 2012, 12:45:46 AM »
Hi,
I just wondering why the onboard 68k is disable on the Classic version of OS4 ?
If it wasn't, would it be possible to run things without 'runinuae' or the likes ? or maybe it will speed up this as it wont need to emulate the 68k ?
 

Offline Steady

Re: OS4 Classic, why disable the 68k ?
« Reply #1 on: April 10, 2012, 12:57:13 AM »
From what I understand, the context switches between 68K and PPC were way too slow, and it introduces a whole lot more complexity.
 

Offline Matt_H

Re: OS4 Classic, why disable the 68k ?
« Reply #2 on: April 10, 2012, 01:01:12 AM »
You'd run into the same problems as you do with WarpOS and PowerUp - context switches that zap performance.

Besides, the main issues with OS4 and compatibility have less to do with the processor and more to do with the substantial rewrite of the OS. It's the same kind of problem we experienced going from 1.3 to 2.04. In other words, even if we had a full 68K build of OS4, the stuff that requires UAE would almost certainly still require UAE to work.
 

Offline cha05e90

  • Full Member
  • ***
  • Join Date: Feb 2003
  • Posts: 232
  • Country: de
    • Show only replies by cha05e90
    • http://www.ruthe.info
Re: OS4 Classic, why disable the 68k ?
« Reply #3 on: April 10, 2012, 08:40:47 AM »
Quote from: Erebos;687835
Hi,
I just wondering why the onboard 68k is disable on the Classic version of OS4 ?
If it wasn't, would it be possible to run things without 'runinuae' or the likes ? or maybe it will speed up this as it wont need to emulate the 68k ?


This seems to be a common misunderstanding. You don't need UAE or RunInUAE to use 68k software with AmigaOS4.x (or MorphOS in that respect).
X1000|II/G4|440ep|2000/060|2000/040|1000
 

Offline vox

  • Hero Member
  • *****
  • Join Date: Feb 2011
  • Posts: 862
    • Show only replies by vox
    • http://anticusa.wordpress.com
Re: OS4 Classic, why disable the 68k ?
« Reply #4 on: April 10, 2012, 05:04:33 PM »
Quote from: Erebos;687835
Hi,
I just wondering why the onboard 68k is disable on the Classic version of OS4 ?
If it wasn't, would it be possible to run things without 'runinuae' or the likes ? or maybe it will speed up this as it wont need to emulate the 68k ?


Simplest answer is that whole OS4 is PowerPC and running native PPC apps is whole level of new experience. 68k WB friendly software will be working under Petunia, maybe even faster then 040 if PPC is 604 I suppose. AGA chipset should be even acessible? so even more software should work? (has anyone tested e.g. apps that used to crash on A1 on Classic OS4?
http://www.intuitionbase.com/ossoftware.php?category=3&letter=NON

Plus the context switching was known slowdown problem of PPC cards, so your PPC experience is full now :-)
Future Acube and MOS supporter, fi di good, nothing fi di unprofessionals. Learn it harder way! http://www.youtube.com/user/rasvoja and https://www.facebook.com/rasvoja
 

Offline Zac67

  • Hero Member
  • *****
  • Join Date: Nov 2004
  • Posts: 2890
    • Show only replies by Zac67
Re: OS4 Classic, why disable the 68k ?
« Reply #5 on: April 10, 2012, 07:23:02 PM »
In theory, the '040/060 could run asynchronously in parallel to the PPC (WarpOS + 3.x worked that way). However, OS4 isn't up to handling SMP/AMP, it needs to be designed that way.
 

Offline SamuraiCrow

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2281
  • Country: us
  • Gender: Male
    • Show only replies by SamuraiCrow
Re: OS4 Classic, why disable the 68k ?
« Reply #6 on: April 10, 2012, 07:32:18 PM »
Quote from: Zac67;687930
In theory, the '040/060 could run asynchronously in parallel to the PPC (WarpOS + 3.x worked that way). However, OS4 isn't up to handling SMP/AMP, it needs to be designed that way.


It's not just OS4 that needs a redesign.  The Phase5 accelerator card has only one memory bus so it CANNOT run both processors at the same time.  It can switch between them, but not run them in parallel.
 

Offline dreamcast270mhz

  • Sr. Member
  • ****
  • Join Date: May 2009
  • Posts: 322
    • Show only replies by dreamcast270mhz
Re: OS4 Classic, why disable the 68k ?
« Reply #7 on: April 10, 2012, 07:42:38 PM »
The issue Samurai describes is also present on the saturn, and a reson for its demise. The CPUs apart were weak, but together they ran well. Only one CPU could access the memory registers at a time, but their memory was divided for each cpu
My machines:
PowerMac G4 MDD 1.5ghz 1.25GB 10.5.8 & MOS 2.7
Mac Mini C2D 10.6.8 2GHz 3GB 250GB HDD
MacBook Retina 16GB 256GB SSD 10.8
iPad 2
Underground Gamer invites (a classic game site) PM

Need a part for a PC or Mac? PM me, I\'ll let you know if I come across it.

OS X trumps Windows on every level.

MorphOS, OS4 and Classic Amiga systems are the only ones who are real \'Amigas\', not that joke AROS or Amiga Forever.
 

Offline cha05e90

  • Full Member
  • ***
  • Join Date: Feb 2003
  • Posts: 232
  • Country: de
    • Show only replies by cha05e90
    • http://www.ruthe.info
Re: OS4 Classic, why disable the 68k ?
« Reply #8 on: April 10, 2012, 07:46:36 PM »
Quote from: Zac67;687930
In theory, the '040/060 could run asynchronously in parallel to the PPC (WarpOS + 3.x worked that way).

Really? I don't think it worked that way.
X1000|II/G4|440ep|2000/060|2000/040|1000
 

Offline ErebosTopic starter

  • Newbie
  • *
  • Join Date: Aug 2005
  • Posts: 37
    • Show only replies by Erebos
    • http://dabeuss.over-blog.com
Re: OS4 Classic, why disable the 68k ?
« Reply #9 on: April 10, 2012, 11:39:43 PM »
indeed, very interesting answers here.
So it is because of hardware design that OS4 is doing that way..
But if WarpOS+ 3.x managed to do that it must be feasible ;-)
 

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show only replies by Piru
    • http://www.iki.fi/sintonen/
Re: OS4 Classic, why disable the 68k ?
« Reply #10 on: April 10, 2012, 11:57:26 PM »
Quote from: SamuraiCrow;687931
The Phase5 accelerator card has only one memory bus so it CANNOT run both processors at the same time.  It can switch between them, but not run them in parallel.
The CPUs most definitely do run in parallel.

I don't know who invented this nonsense and for what purposes, but it is not true.
« Last Edit: April 11, 2012, 12:04:55 AM by Piru »
 

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show only replies by Piru
    • http://www.iki.fi/sintonen/
Re: OS4 Classic, why disable the 68k ?
« Reply #11 on: April 11, 2012, 12:00:26 AM »
Quote from: cha05e90;687933
Really? I don't think it worked that way.

It was possible to run 68k and PPC code independent from each other, at least with PowerUP. There were certain highly optimized apps that used to do this. For instance the infamous FastQuake used a special cache inhibited memory area as a ring-buffer to avoid the need for cache flushes. This way both CPUs could run at full speed with as few context switches as possible.
 

Offline cgutjahr

  • Hero Member
  • *****
  • Join Date: Feb 2003
  • Posts: 697
  • Country: 00
    • Show only replies by cgutjahr
Re: OS4 Classic, why disable the 68k ?
« Reply #12 on: April 11, 2012, 12:17:15 AM »
Quote from: Erebos;687953
But if WarpOS+ 3.x managed to do that it must be feasible ;-)

It is feasible, but it would slow down the PPC CPU considerably: Each time you switch from one CPU to the other on a PowerUp board, you have to flush all CPU caches (because the CPUs are sharing the same memory, and this is the only way to maintain memory integrity). Now imagine doing that hundreds of times per second (as you would have to, when running 68k and PPC tasks in parallel) - the system would crawl.

As it is, depending on the speed of your PPC CPU, the 68k CPU emulated by OS4 is definitely faster than a 68040 anyway.
 

Offline ErebosTopic starter

  • Newbie
  • *
  • Join Date: Aug 2005
  • Posts: 37
    • Show only replies by Erebos
    • http://dabeuss.over-blog.com
Re: OS4 Classic, why disable the 68k ?
« Reply #13 on: April 11, 2012, 01:28:56 AM »
@cgutjahr
as i was talking about classic version, I cant see how the PPC side of my blizard ppc at 240mhz can be faster emulating 68k than my real 060 onboard...
Plus i'd say that performances do not drop at all when on 3.9 i have 68k tasks running along side ppc ones (like wos mp3 decoding)
Reason maybe is that it is much easier to maintain an unique branch of the OS that is primary towarded to NG amigas and not designed for classic at first.
maybe that contexts switches are too heavy to handle, but...i'm skeptical

Anyway please do not misunderstand my words, i'm glad that OS4 exists for classic and thanks Hyperion for it ;-)
 

Offline bbond007

  • Hero Member
  • *****
  • Join Date: Mar 2009
  • Posts: 1517
    • Show only replies by bbond007
Re: OS4 Classic, why disable the 68k ?
« Reply #14 on: April 11, 2012, 02:11:35 AM »
Quote from: Erebos;687963
@cgutjahr
as i was talking about classic version, I cant see how the PPC side of my blizard ppc at 240mhz can be faster emulating 68k than my real 060 onboard...
Plus i'd say that performances do not drop at all when on 3.9 i have 68k tasks running along side ppc ones (like wos mp3 decoding)
Reason maybe is that it is much easier to maintain an unique branch of the OS that is primary towarded to NG amigas and not designed for classic at first.
maybe that contexts switches are too heavy to handle, but...i'm skeptical

Anyway please do not misunderstand my words, i'm glad that OS4 exists for classic and thanks Hyperion for it ;-)

Well, you would need to take the same approach they took with 3.X

Because your native OS is in PPC you would need to write a specialized kernel for your 68K and as well as supporting PPC libraries to communicate with and facilitate data exchange with said 68K kernel.  

You would convince application developers to compile parts of their applications 68K native and to retool their applications to use a design pattern conducive to offloading tasks to a slower processor. To convince the developers you'll just need to remind them of the Amiga's central design philosophy concerning multitasking and the offloading of work from the central CPU.

The first PPC->68K API would called "Power Down" but soon after its introduction a new standard will emerge called "WarpOS/2".

Fortunately, specific "Power Down" and "WarpOS/2" compatibility layers will created for the respective API's which will allow some degree of compatibility.

People will bicker over the technical merits of both APIs for years until the entire OS is fully ported to 68K.
« Last Edit: April 11, 2012, 02:17:51 AM by bbond007 »