Welcome, Guest. Please login or register.

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

Description:

0 Members and 1 Guest are viewing this topic.

Offline HardboyTopic starter

  • Full Member
  • ***
  • Join Date: Feb 2002
  • Posts: 248
    • Show only replies by Hardboy
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 fatman2021

  • Full Member
  • ***
  • Join Date: Dec 2002
  • Posts: 118
    • Show only replies by fatman2021
    • http://www.geocities.com/fatman2021/
Re: PPC-Emulator - Any use?
« Reply #1 on: March 14, 2003, 03:09:49 AM »
I would use it, but only if came with some type of PowerPC compiler with is ready to use...
 

Offline HardboyTopic starter

  • Full Member
  • ***
  • Join Date: Feb 2002
  • Posts: 248
    • Show only replies by Hardboy
Re: PPC-Emulator - Any use?
« Reply #2 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 Darth_X

  • Hero Member
  • *****
  • Join Date: Jan 2003
  • Posts: 791
    • Show only replies by Darth_X
Re: PPC-Emulator - Any use?
« Reply #3 on: March 14, 2003, 03:26:26 AM »
This is interesting.


What were your original plans for this?


 

Offline Peggus

  • Full Member
  • ***
  • Join Date: Apr 2002
  • Posts: 134
    • Show only replies by Peggus
    • http://snow.prohosting.com/vkingboy/
Re: PPC-Emulator - Any use?
« Reply #4 on: March 14, 2003, 03:30:18 AM »
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.
Too much caffeine????
There\\\'s no such thing!!!!!!!  :pint:
 

Offline HardboyTopic starter

  • Full Member
  • ***
  • Join Date: Feb 2002
  • Posts: 248
    • Show only replies by Hardboy
Re: PPC-Emulator - Any use?
« Reply #5 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 Ilwrath

Re: PPC-Emulator - Any use?
« Reply #6 on: March 14, 2003, 03:45:26 AM »
Quote
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!


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...  
 

Offline HardboyTopic starter

  • Full Member
  • ***
  • Join Date: Feb 2002
  • Posts: 248
    • Show only replies by Hardboy
Re: PPC-Emulator - Any use?
« Reply #7 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 Hammer

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 1996
  • Country: 00
    • Show only replies by Hammer
Re: PPC-Emulator - Any use?
« Reply #8 on: March 14, 2003, 03:54:54 AM »
Quote
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.

- PPC application development work on some cheap X86 box or laptop. PPC embedded Linux systems would be the ideal candidate.
 
- PPC processor theory subjects within a University environment  i.e. PPC simulators intended for design and research.

- Support for PPC legacy software on non-PPC hardware.

Have you implemented PPC MMU for your PPC emulator?

For a "PowerPC 750 Simulator" (executes PPC Linux binaries  on Non-PPC Linux)  refer to http://www.microlib.org/G3/PowerPC750.php

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

Amiga 1200 PiStorm32-Emu68-RPI 4B 4GB.
Ryzen 9 7900X, DDR5-6000 64 GB, RTX 4080 16 GB PC.
 

Offline HardboyTopic starter

  • Full Member
  • ***
  • Join Date: Feb 2002
  • Posts: 248
    • Show only replies by Hardboy
Re: PPC-Emulator - Any use?
« Reply #9 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 Hammer

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 1996
  • Country: 00
    • Show only replies by Hammer
Re: PPC-Emulator - Any use?
« Reply #10 on: March 14, 2003, 04:49:10 AM »
Quote

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.

Is this a "thread" based emulator?

I recall there are 3 main methods for gaining legacy software compatibility;
1. Complete machine emulators (e.g. UAE, MAME, Bochs).
2. Sandbox (e.g. MorphOS’s 68k sandbox, SoftWindows (i.e. native PPC Windows95 with X86 emulator)).
3. Thread emulators (e.g. AmigaOS 4.0’s 68k method).
Amiga 1200 PiStorm32-Emu68-RPI 4B 4GB.
Ryzen 9 7900X, DDR5-6000 64 GB, RTX 4080 16 GB PC.
 

Offline Hammer

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 1996
  • Country: 00
    • Show only replies by Hammer
Re: PPC-Emulator - Any use?
« Reply #11 on: March 14, 2003, 04:54:02 AM »
Quote

Hardboy wrote:

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++

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


Yet another PPC emulator (simulator).  
http://www-rohan.sdsu.edu/doc/psim/manual_toc.html#SEC152
Quote

PSIM, both implements all three levels of the PowerPC Instruction Set Architecture, and includes, for each level, a number of simulated run-time environments:

UEA PSIM can run static programs compiled for any of the following operating systems:
  • NetBSD
  • Solaris
  • LINIX

VEA Support for environmental features of the Instruction Set Architecture including:
Symetric multi-processing
Cache manipulation
Time base registers
OEA Details of the target PowerPC Platform being modeled can be specified including:
firmware (Motorola BUG or OpenFirmware)
memory and I/O address maps
attached devices
interrupt controller (OpenPIC) configuration
Quote

Amiga 1200 PiStorm32-Emu68-RPI 4B 4GB.
Ryzen 9 7900X, DDR5-6000 64 GB, RTX 4080 16 GB PC.
 

Offline HardboyTopic starter

  • Full Member
  • ***
  • Join Date: Feb 2002
  • Posts: 248
    • Show only replies by Hardboy
Re: PPC-Emulator - Any use?
« Reply #12 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 Hammer

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 1996
  • Country: 00
    • Show only replies by Hammer
Re: PPC-Emulator - Any use?
« Reply #13 on: March 16, 2003, 11:13:46 AM »
Quote

No, I say that anyone who has gcc installed could make a version of the program.

Ok. Where does one download this program/source code?    

Quote

It should though, without problems run binaries made from gcc unless they use some of the yet unimplemented instructions.

Ok.
Amiga 1200 PiStorm32-Emu68-RPI 4B 4GB.
Ryzen 9 7900X, DDR5-6000 64 GB, RTX 4080 16 GB PC.
 

Offline HardboyTopic starter

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