Welcome, Guest. Please login or register.

Author Topic: 68K Access Under OS4  (Read 5512 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline nyteschaydeTopic starter

  • VIP / Donor - Lifetime Member
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 644
    • Show only replies by nyteschayde
    • http://www.nyteshade.com
68K Access Under OS4
« on: February 07, 2012, 07:02:53 AM »
Is it possible to access the 68K processor from OS4 just like we were once able to access the PPC from OS3.x? Basically RunInUAE is a great idea but is more or less completely unusable under OS4 Classic (at least with my BlizPPC).

It kills me I have a 68060 sitting there dreaming while the 603e struggles to emulate a 68K for E-UAE. Any chance of passing through to the real 68K (ala ShapeShifter for MacOS, etc...)
Senior MTS Software Engineer with PayPal
Amigas: A1200T 060/603e PPC • A1200T 060 • A4000D 040 • A3000 (x2) • A2000 Vamp/V2 • A1200 (x4) • A1000 (x3) • A600 Vamp/V1 • A500
 

Offline wawrzon

Re: 68K Access Under OS4
« Reply #1 on: February 07, 2012, 10:43:25 AM »
under os4.x 68k on classic is only used to bootstrap. live with it. and shape shifter doesnt run without uae on ops4?
 

Offline Frags

  • Jr. Member
  • **
  • Join Date: Jun 2005
  • Posts: 89
    • Show only replies by Frags
Re: 68K Access Under OS4
« Reply #2 on: February 07, 2012, 06:42:43 PM »
It must be possible, the damn thing is still there on the bus after all.  Irrespective of that I can`t think of a sensible reason not to just boot into OS3 - you could write a script to reboot from an adf in RAD or something I dunno...
-insert clever profundity here-
 

Offline jorkany

  • Hero Member
  • *****
  • Join Date: Sep 2006
  • Posts: 1009
    • Show only replies by jorkany
    • http://www.amigaos4.com
Re: 68K Access Under OS4
« Reply #3 on: February 07, 2012, 07:05:55 PM »
Quote from: nyteschayde;679650
Is it possible to access the 68K processor from OS4 just like we were once able to access the PPC from OS3.x? Basically RunInUAE is a great idea but is more or less completely unusable under OS4 Classic (at least with my BlizPPC).

It kills me I have a 68060 sitting there dreaming while the 603e struggles to emulate a 68K for E-UAE. Any chance of passing through to the real 68K (ala ShapeShifter for MacOS, etc...)


Sounds like the problem is OS4. Get rid of that and everything will work fine.
 

Offline nyteschaydeTopic starter

  • VIP / Donor - Lifetime Member
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 644
    • Show only replies by nyteschayde
    • http://www.nyteshade.com
Re: 68K Access Under OS4
« Reply #4 on: February 07, 2012, 07:49:49 PM »
OS4.1 is really quite nice. One very nice thing about RunInUAE is that it allows me to use the RTG graphics card for running classic OS games (in theory).

My reference to Shapeshifter was the direct use of the CPU in the emulated environment. This direct CPU usage was the only thing that allows Amigas to emulate 68K Macs at almost as fast, and sometimes faster, speeds as compared to a real one.

I've heard from the author/supporter of RunInUAE Christopher Handley that one of the main reasons RunInUAE is so slow is that there isn't a JIT being used in the emulation.

Anyhow, it doesn't look like this has been done or that people have tried to do it (access the 68k from OS4). Just thought I'd ask is all.
« Last Edit: February 07, 2012, 08:40:39 PM by nyteschayde »
Senior MTS Software Engineer with PayPal
Amigas: A1200T 060/603e PPC • A1200T 060 • A4000D 040 • A3000 (x2) • A2000 Vamp/V2 • A1200 (x4) • A1000 (x3) • A600 Vamp/V1 • A500
 

Offline Framiga

  • Hero Member
  • *****
  • Join Date: May 2003
  • Posts: 4096
    • Show only replies by Framiga
Re: 68K Access Under OS4
« Reply #5 on: February 07, 2012, 08:10:10 PM »
Quote from: jorkany;679722
Sounds like the problem is OS4. Get rid of that and everything will work fine.


sounds like the problem are crooks bored to post on moo****ingbunny lately!
 

Offline Frags

  • Jr. Member
  • **
  • Join Date: Jun 2005
  • Posts: 89
    • Show only replies by Frags
Re: 68K Access Under OS4
« Reply #6 on: February 07, 2012, 08:45:13 PM »
Sorry?
-insert clever profundity here-
 

Offline stevieu

  • Jr. Member
  • **
  • Join Date: Sep 2007
  • Posts: 84
    • Show only replies by stevieu
    • http://myspace.com/stevieu83
Re: 68K Access Under OS4
« Reply #7 on: February 07, 2012, 08:50:38 PM »
Quote from: Framiga;679730
sounds like the problem are crooks bored to post on moo****ingbunny lately!


The trolls are hungry :D

Offline stevieu

  • Jr. Member
  • **
  • Join Date: Sep 2007
  • Posts: 84
    • Show only replies by stevieu
    • http://myspace.com/stevieu83
Re: 68K Access Under OS4
« Reply #8 on: February 07, 2012, 09:05:39 PM »
Quote from: nyteschayde;679728
OS4.1 is really quite nice. One very nice thing about RunInUAE is that it allows me to use the RTG graphics card for running classic OS games (in theory).

....

Anyhow, it doesn't look like this has been done or that people have tried to do it (access the 68k from OS4). Just thought I'd ask is all.


See this thread: http://www.amigans.net/modules/xforum/viewtopic.php?topic_id=1296&forum=3&post_id=15422

Steve

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16882
  • Country: gb
  • Thanked: 6 times
    • Show only replies by Karlos
Re: 68K Access Under OS4
« Reply #9 on: February 07, 2012, 11:07:29 PM »
I had my own crazy idea for co-opting the 68K, but I am not really sure how practical it is. Probably entirely impractical. However, if we note for a moment that it can read and write all the same address space the PPC can, then we could envisage it as a programmable DMA controller for motherboard resources, such as the IDE, PCMCIA etc. In this scenario, it has a small work area reserved for it (unpageable from the PPC side) that it can cache (for code and small amount of working set), but otherwise it regards the rest of the address space as uncacheable. It could then be invoked to transfer data to/from legacy devices independently of the PPC. From the latter's perspective, you'd obviously need to do the Pre/Post DMA calls for regions affected by any operation you intend to perform. Uncached memory access from the 68K would be suboptimal, but at the same time faster than any of the IO devices it would be talking to, so they'd almost always be the bottleneck. For a lot of block stuff, with luck, you could use move16, thus avoiding cache pollution so that your 68K manages to keep it's local working data and code in it's cache, avoiding unwanted memory accesses that aren't part of the transfer you are performing.

Of course, this nebulous hand-wavy description overlooks many important technical details (arbitrated access to the "DMA controller", interrupt control, scheduling etc), though I see it as being slightly less complicated than trying to actually use the 68K for running actual 68K applications under any kind of inverted WarpOS scenario.
« Last Edit: February 07, 2012, 11:11:37 PM by Karlos »
int p; // A
 

Offline nyteschaydeTopic starter

  • VIP / Donor - Lifetime Member
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 644
    • Show only replies by nyteschayde
    • http://www.nyteshade.com
Re: 68K Access Under OS4
« Reply #10 on: February 07, 2012, 11:29:44 PM »
Quote from: stevieu;679739
See this thread: http://www.amigans.net/modules/xforum/viewtopic.php?topic_id=1296&forum=3&post_id=15422

Steve


That helps but simply raises more questions. E-UAE under OS4.1 doesn't have a JIT. Petunia is a perfectly working JIT but lacks the environment provided by E-UAE in order to make older games function correctly.

Has anybody done any dev work on OS4 that takes advantage of or directly works with Petunia? Do we know if there are APIs of any type exposed to allow this happen?

I've sent an email to Chris and Álmos about just this. If people want to chat more about it, feel free to do so; otherwise I'll update this thread later when/if I hear more from them.
Senior MTS Software Engineer with PayPal
Amigas: A1200T 060/603e PPC • A1200T 060 • A4000D 040 • A3000 (x2) • A2000 Vamp/V2 • A1200 (x4) • A1000 (x3) • A600 Vamp/V1 • A500
 

Offline nyteschaydeTopic starter

  • VIP / Donor - Lifetime Member
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 644
    • Show only replies by nyteschayde
    • http://www.nyteshade.com
Re: 68K Access Under OS4
« Reply #11 on: February 07, 2012, 11:49:00 PM »
So Karlos, have you worked with the 68K or even accessed it at all from OS4? I know you have a lot of experience working with the PPC from 68K code but was curious if you've done anything from OS4 regarding the 68K?
Senior MTS Software Engineer with PayPal
Amigas: A1200T 060/603e PPC • A1200T 060 • A4000D 040 • A3000 (x2) • A2000 Vamp/V2 • A1200 (x4) • A1000 (x3) • A600 Vamp/V1 • A500
 

Offline stevieu

  • Jr. Member
  • **
  • Join Date: Sep 2007
  • Posts: 84
    • Show only replies by stevieu
    • http://myspace.com/stevieu83
Re: 68K Access Under OS4
« Reply #12 on: February 07, 2012, 11:52:00 PM »
Quote from: nyteschayde;679747
That helps but simply raises more questions. E-UAE under OS4.1 doesn't have a JIT. Petunia is a perfectly working JIT but lacks the environment provided by E-UAE in order to make older games function correctly.

Has anybody done any dev work on OS4 that takes advantage of or directly works with Petunia? Do we know if there are APIs of any type exposed to allow this happen?

I've sent an email to Chris and Álmos about just this. If people want to chat more about it, feel free to do so; otherwise I'll update this thread later when/if I hear more from them.


On that topic, see here: http://amigabounty.net/index.php?function=viewproject&projectid=35 and here http://euaejit.blogspot.com/ :)

Steve

Offline nyteschaydeTopic starter

  • VIP / Donor - Lifetime Member
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 644
    • Show only replies by nyteschayde
    • http://www.nyteshade.com
Re: 68K Access Under OS4
« Reply #13 on: February 07, 2012, 11:55:01 PM »
I'll forward that link to Chris and Álmos

UPDATE: I'm a dork. If I actually read closely I would have found the link to http://euaejit.blogspot.com/. On this page, the author of Petunia, Álmos is already working and likely nearing completion a JIT for E-UAE for OS4.1.

Still it would be nice to know more about this stuff being a dev myself who is getting into Amiga programming.
« Last Edit: February 08, 2012, 12:06:19 AM by nyteschayde »
Senior MTS Software Engineer with PayPal
Amigas: A1200T 060/603e PPC • A1200T 060 • A4000D 040 • A3000 (x2) • A2000 Vamp/V2 • A1200 (x4) • A1000 (x3) • A600 Vamp/V1 • A500
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16882
  • Country: gb
  • Thanked: 6 times
    • Show only replies by Karlos
Re: 68K Access Under OS4
« Reply #14 on: February 08, 2012, 12:00:24 AM »
Quote from: nyteschayde;679750
So Karlos, have you worked with the 68K or even accessed it at all from OS4? I know you have a lot of experience working with the PPC from 68K code but was curious if you've done anything from OS4 regarding the 68K?

Afraid not. It was simply a thought experiment, one that would likely require quite a lot of work to evaluate the feasibility of. As interesting as the idea seems to me for now, there are more pressing things to work on (in the limited time I have in the day in which to cram it in).
int p; // A