Welcome, Guest. Please login or register.

Author Topic: PPC Questions  (Read 1473 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline beakster2Topic starter

  • Jr. Member
  • **
  • Join Date: Jul 2007
  • Posts: 63
    • Show only replies by beakster2
PPC Questions
« on: February 29, 2008, 01:20:18 AM »
Yo,

I've just downloaded the Phase5 PPC devkit from http://powerup.amigaworld.de/index.php?lang=en&page=13 and I'm trying to get my head around it.  Ultimately I'd like to have a shot at integrating some Open Source PPC Emulation code into UAE, but I have a lot to learn first.

Questions:
1)  Where can I get the source code for PPC.library?  I understand that this abstracts all communication with the PPC Co-Processor, so I need to understand how method such as PPCRunObject() work.

2) The documentation states that on the PPC side a small kernel runs which controls memory management and communication back to the 68k side.  Is this kernel loaded and started by the ppc.library, or is this something which loads from a ROM on the CyberstormPPC board when the computer is booted.  If it is on a ROM where can I get the source for it?

Thanks
 

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: PPC Questions
« Reply #1 on: February 29, 2008, 01:37:10 AM »
The source code is not available to any of these.
 

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12113
    • Show only replies by bloodline
    • http://www.troubled-mind.com
Re: PPC Questions
« Reply #2 on: February 29, 2008, 01:42:57 AM »
Well the PowerUP software isn't going to help if you want PPC emulation in UAE... You'll want to figure out some way up integrate the PPC core from something like PearPPC and then find out the timing and interrupt interaction between the PPC and the 68k... Piru might be able to give you some clues... And perhaps Ralph Schmidt... Probably best to ask on the MorphOS dev boards... Many of the old Phase5 engineers are around there.

Offline beakster2Topic starter

  • Jr. Member
  • **
  • Join Date: Jul 2007
  • Posts: 63
    • Show only replies by beakster2
Re: PPC Questions
« Reply #3 on: February 29, 2008, 01:43:20 AM »
Damn, I thought that would be the case.

I don't suppose the Warpup Powerpc.library code is available anywhere?

My next step is to go through the code of the Linux APUS bootstraping code, but I have a feeling this uses ppc.library to hand control over.

I guess I'll need to start looking at disassembling :-(.
 

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: PPC Questions
« Reply #4 on: February 29, 2008, 01:46:31 AM »
Quote
I don't suppose the Warpup Powerpc.library code is available anywhere?

It's not.
 

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12113
    • Show only replies by bloodline
    • http://www.troubled-mind.com
Re: PPC Questions
« Reply #5 on: February 29, 2008, 01:48:37 AM »
APUS Would be your best option I reckon... Not sure what you'll learn from it though...

Offline beakster2Topic starter

  • Jr. Member
  • **
  • Join Date: Jul 2007
  • Posts: 63
    • Show only replies by beakster2
Re: PPC Questions
« Reply #6 on: February 29, 2008, 01:49:09 AM »


Quote

bloodline wrote:
Well the PowerUP software isn't going to help if you want PPC emulation in UAE...


I think the PowerUp ppc.library would help me alot.  At the moment all I know is that the AmigaOS VBlank interrupt is used to signal the PPC processor, but if I could actually see the code which hands over control to the PPC then I would know what I needed to intercept in UAE to start the PPC emulation process running (and vice versa for switching back to 68k).

Thanks for the tip about the MorphOS forums I'll wait and see who gets back to me here then post on there if I dont have any luck.  :-)