Welcome, Guest. Please login or register.

Author Topic: PPC-Emulator - Any use?  (Read 3993 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline HardboyTopic starter

  • Full Member
  • ***
  • Join Date: Feb 2002
  • Posts: 248
    • Show all replies
PPC-Emulator - Any use?
« on: March 14, 2003, 02:28:00 AM »
I´ve programmed a PowerPC emulator, which by now, emulates allmost all UISA instructions. What I would like to know is, what usage people might have of a PPC emulator, as it currently lacks some system of control.

When thinking about usage, the following things have come to my mind:

*Programmers who doesn´t have a PPC-card can test their code, to ensure it´s working on PPC systems

*The code could be modified to make more or less accurate emulations of a 603, 604, G3 or G4, plus precise emulations of memory models, which could be used to analyse performance and similar things.

Does anybody have other suggestions? I would really like to know, as it could give some inspiration to develop this things a little further.
 

Offline HardboyTopic starter

  • Full Member
  • ***
  • Join Date: Feb 2002
  • Posts: 248
    • Show all replies
Re: PPC-Emulator - Any use?
« Reply #1 on: March 14, 2003, 03:13:58 AM »
Quote
I would use it, but only if came with some type of PowerPC compiler with is ready to use...


I currently use modified vbcc genrated code, but for what would you use it?
 

Offline HardboyTopic starter

  • Full Member
  • ***
  • Join Date: Feb 2002
  • Posts: 248
    • Show all replies
Re: PPC-Emulator - Any use?
« Reply #2 on: March 14, 2003, 03:41:27 AM »
Quote
This is interesting.
 What were your original plans for this?


I´m writting a project about software optimization, and all I have is laptop PC. As I really can´t stand the architecture of X86, I thought about making an emulator to do the job instead.

Quote
you didn't say wich processor the emulator runs on but if it's x86 you could use it to run OS4 when it comes out. Sort of like amithlon.


It´s written in 100% standard C++ and I have succesfully compiled and runned it on both Windows98 and Solaris.

It won´t run OS4 as it only executes a programming model which means it can execute PPC-code, but not emulate other hardware - except memory, off course!
 

Offline HardboyTopic starter

  • Full Member
  • ***
  • Join Date: Feb 2002
  • Posts: 248
    • Show all replies
Re: PPC-Emulator - Any use?
« Reply #3 on: March 14, 2003, 03:49:43 AM »
Quote
Fascinating... Could you graft it into UAE and write a little hack to recognize it as a CyberStorm card? (Essentially that's all it was, right.... I mean there wasn't much hardware to emulate, it just used the 680x0 for everything except specific PPC instructions...) Not knowing about how UAE is structured, nor knowing much about emulation coding, in general, I don't know if what I'm suggesting is practical, only fascinating to me...


Well, not really. This emulator recognise PPC-code, and execute it in a high-level implementation. To do the other trick, one should translate PPC-code directly to native code, which then should be executed - quite different things.
 

Offline HardboyTopic starter

  • Full Member
  • ***
  • Join Date: Feb 2002
  • Posts: 248
    • Show all replies
Re: PPC-Emulator - Any use?
« Reply #4 on: March 14, 2003, 04:31:19 AM »
Quote
Have you implemented PPC MMU for your PPC emulator?


Nope! The emulated memory is  taken from the available memory from the underlying OS. It is translated to local adresses by an interface, and I have therefore not implemented MMU instructions.

Quote
I wonder IF one could do a AmigaOS (or AROS) version instead of Linux.


Anyone who has gcc installed, as I said: It´s 100% standard C++
 

Offline HardboyTopic starter

  • Full Member
  • ***
  • Join Date: Feb 2002
  • Posts: 248
    • Show all replies
Re: PPC-Emulator - Any use?
« Reply #5 on: March 14, 2003, 09:52:11 AM »
Quote
Is this a "thread" based emulator?


I guess not. I don´t see clearly what "thread" based means, but all this program does, is recognising PPC-instructions and executes them. There are no environment, like OS functions, available.

Quote
You basically saying it will run PPC binaries, which are complied by gcc?


No, I say that anyone who has gcc installed could make a version of the program. It should though, without problems run binaries made from gcc unless they use some of the yet unimplemented instructions.
 

Offline HardboyTopic starter

  • Full Member
  • ***
  • Join Date: Feb 2002
  • Posts: 248
    • Show all replies
Re: PPC-Emulator - Any use?
« Reply #6 on: March 16, 2003, 12:11:32 PM »
I could send them to you. What OS do you use?