amiga.org
     
iconAll times are GMT -6. The time now is 10:55 PM. | Welcome to Forum, please register to access all of our features.

» Amiga.org » Amiga computer related discussion » Amiga Software Issues and Discussion » PPC-Emulator - Any use?

Amiga Software Issues and Discussion This forum exists for the discussion of the use, issues with, and fun brought about by classic and next generation Amiga software.

Reply
 
Thread Tools Display Modes
Old 03-13-2003, 07:28 PM   #1
Hardboy
Technoid
Points: 5,848, Level: 49 Points: 5,848, Level: 49 Points: 5,848, Level: 49
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2002
Posts: 248
Default PPC-Emulator - Any use?

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.
Hardboy is offline   Reply With Quote
Old 03-13-2003, 08:09 PM   #2
fatman2021
Too much caffeine
Points: 5,871, Level: 49 Points: 5,871, Level: 49 Points: 5,871, Level: 49
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2002
Posts: 118
Default Re: PPC-Emulator - Any use?

I would use it, but only if came with some type of PowerPC compiler with is ready to use...
fatman2021 is offline   Reply With Quote
Old 03-13-2003, 08:13 PM   #3
Hardboy
Technoid
Points: 5,848, Level: 49 Points: 5,848, Level: 49 Points: 5,848, Level: 49
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2002
Posts: 248
Default Re: PPC-Emulator - Any use?

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?
Hardboy is offline   Reply With Quote
Old 03-13-2003, 08:26 PM   #4
Darth_X
Cult Member
Points: 9,507, Level: 65 Points: 9,507, Level: 65 Points: 9,507, Level: 65
Activity: 1% Activity: 1% Activity: 1%
 
Darth_X's Avatar
 
Join Date: Jan 2003
Location: Vancouver Island, Canada
Posts: 743
Send a message via MSN to Darth_X
Default Re: PPC-Emulator - Any use?

This is interesting.


What were your original plans for this?


Darth_X is offline   Reply With Quote
Old 03-13-2003, 08:30 PM   #5
Peggus
Too much caffeine
Points: 5,560, Level: 48 Points: 5,560, Level: 48 Points: 5,560, Level: 48
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2002
Posts: 134
Send a message via ICQ to Peggus Send a message via AIM to Peggus
Default Re: PPC-Emulator - Any use?

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!!!!!!!
Peggus is offline   Reply With Quote
Old 03-13-2003, 08:41 PM   #6
Hardboy
Technoid
Points: 5,848, Level: 49 Points: 5,848, Level: 49 Points: 5,848, Level: 49
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2002
Posts: 248
Default Re: PPC-Emulator - Any use?

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!
Hardboy is offline   Reply With Quote
Old 03-13-2003, 08:45 PM   #7
Ilwrath
Kindred of Babble-on
Points: 12,069, Level: 72 Points: 12,069, Level: 72 Points: 12,069, Level: 72
Activity: 1% Activity: 1% Activity: 1%
Zookeeper Champion
 
Ilwrath's Avatar
 
Join Date: Mar 2002
Posts: 2,184
Default Re: PPC-Emulator - Any use?

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...
Ilwrath is offline   Reply With Quote
Old 03-13-2003, 08:49 PM   #8
Hardboy
Technoid
Points: 5,848, Level: 49 Points: 5,848, Level: 49 Points: 5,848, Level: 49
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2002
Posts: 248
Default Re: PPC-Emulator - Any use?

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.
Hardboy is offline   Reply With Quote
Old 03-13-2003, 08:54 PM   #9
Hammer
VIP / Donor
Points: 11,529, Level: 70 Points: 11,529, Level: 70 Points: 11,529, Level: 70
Activity: 20% Activity: 20% Activity: 20%
 
Join Date: Mar 2002
Location: NSW, Oz
Posts: 1,992
Default Re: PPC-Emulator - Any use?

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.

Hammer is offline   Reply With Quote
Old 03-13-2003, 09:31 PM   #10
Hardboy
Technoid
Points: 5,848, Level: 49 Points: 5,848, Level: 49 Points: 5,848, Level: 49
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2002
Posts: 248
Default Re: PPC-Emulator - Any use?

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++
Hardboy is offline   Reply With Quote
Old 03-13-2003, 09:49 PM   #11
Hammer
VIP / Donor
Points: 11,529, Level: 70 Points: 11,529, Level: 70 Points: 11,529, Level: 70
Activity: 20% Activity: 20% Activity: 20%
 
Join Date: Mar 2002
Location: NSW, Oz
Posts: 1,992
Default Re: PPC-Emulator - Any use?

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).
Hammer is offline   Reply With Quote
Old 03-13-2003, 09:54 PM   #12
Hammer
VIP / Donor
Points: 11,529, Level: 70 Points: 11,529, Level: 70 Points: 11,529, Level: 70
Activity: 20% Activity: 20% Activity: 20%
 
Join Date: Mar 2002
Location: NSW, Oz
Posts: 1,992
Default Re: PPC-Emulator - Any use?

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 <strong>PowerPC</strong> Instruction Set Architecture, and includes, for each level, a number of simulated run-time environments:

UEA <strong>PSIM</strong> can run static programs compiled for any of the following operating systems: <UL> <LI>NetBSD <LI>Solaris <LI>LINIX </UL>
VEA Support for environmental features of the Instruction Set Architecture including:
Symetric multi-processing
Cache manipulation
Time base registers
OEA Details of the target <cite>PowerPC Platform</cite> being modeled can be specified including:
firmware (Motorola BUG or OpenFirmware)
memory and I/O address maps
attached devices
interrupt controller (OpenPIC) configuration
[quote]
Hammer is offline   Reply With Quote
Old 03-14-2003, 02:52 AM   #13
Hardboy
Technoid
Points: 5,848, Level: 49 Points: 5,848, Level: 49 Points: 5,848, Level: 49
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2002
Posts: 248
Default Re: PPC-Emulator - Any use?

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.
Hardboy is offline   Reply With Quote
Old 03-16-2003, 04:13 AM   #14
Hammer
VIP / Donor
Points: 11,529, Level: 70 Points: 11,529, Level: 70 Points: 11,529, Level: 70
Activity: 20% Activity: 20% Activity: 20%
 
Join Date: Mar 2002
Location: NSW, Oz
Posts: 1,992
Default Re: PPC-Emulator - Any use?

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.
Hammer is offline   Reply With Quote
Old 03-16-2003, 05:11 AM   #15
Hardboy
Technoid
Points: 5,848, Level: 49 Points: 5,848, Level: 49 Points: 5,848, Level: 49
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2002
Posts: 248
Default Re: PPC-Emulator - Any use?

I could send them to you. What OS do you use?
Hardboy is offline   Reply With Quote
Reply

Bookmarks

Tags
ppcemulator

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PC Emulator sim085 Amiga Hardware Issues and discussion 23 12-05-2008 05:51 PM
C64 Emulator rja4096 Amiga Software Issues and Discussion 14 09-08-2008 05:03 AM
PPC Emulator Belial6 Amiga Emulation 15 05-11-2004 06:29 AM
I used to have an emulator neonblaze Amiga Emulation 3 01-05-2004 10:32 AM
PPC Emulator for x86 Alternative Operating Systems 30 08-19-2003 04:11 AM