Login  •  Register


The time is now: Sat Oct 19, 2019 7:29 am

Emaculation wiki  •  Delete all board cookies



Post new topic  Reply to topic Page 1 of 1 [ 7 posts ]
Print view Previous topic  |  Next topic
Author Message
PostPosted: Sat Jul 13, 2019 3:16 am 
Offline
Apple Corer

Joined: Sun Feb 01, 2009 4:55 pm
Posts: 269
I've been spending a good chunk of time learning how a PowerPC Mac works. While I still have a long way to go before it can even reach the boot screen, I've put in no small amount of effort into this.

Here is a link to the source code, if you want to give it a spin.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Sun Jul 21, 2019 4:53 am 
Offline
Apple Corer

Joined: Sun Feb 01, 2009 4:55 pm
Posts: 269
So, the ROMs get a little farther, but it will be some time before it's ready.

Right now, at best, the emulator runs slightly faster than a PowerPC 601 at 60 MHz. And that's with an Intel Core i7. Needless to say, I'll need to optimize this some before progressing.

Also, dynamic memory mapping will be needed as this is aiming toward multiple Old World Macs.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Fri Jul 26, 2019 4:42 am 
Offline
Apple Corer

Joined: Sun Feb 01, 2009 4:55 pm
Posts: 269
With bit of a tweak, it now performs at slightly under 200 MHz. The change will be merged soon, along with another commit that will deal with both NuBus and PCI PowerMac memory mapping.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Fri Jul 26, 2019 11:49 pm 
Offline
Site Admin
User avatar

Joined: Mon May 20, 2002 4:37 am
Posts: 3741
Location: Uiwang
Hey, keep sharing your updates. Nice to see a long-time forum member creating something really new.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Sun Sep 29, 2019 8:25 pm 
Offline
Apple Corer

Joined: Sun Feb 01, 2009 4:55 pm
Posts: 269
So, on two different Macs so far, the Power Mac G3 Beige and the Power Mac 6100, we've gotten up to the point where it starts playing the boot chime.

That said, we're also considering moving this project from C++11 to Rust. Mainly because Rust is a bit more modern in so many ways (dependency management, code interoperation, Some speed-ups (though this is somewhat subjective) etc.)


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Tue Oct 01, 2019 4:10 pm 
Offline
Forum All-Star
User avatar

Joined: Fri Nov 27, 2009 5:11 am
Posts: 2699
Location: Emaculation.com
That's great on getting past the hardware tests and OF initialization!

How hard does the migration from C++11 to Rust look? I've never attempted a re-implementation in Rust, but it looks much more doable than doing a legacy language re-implementation. Are you planning on sticking some legacy code in libraries to import, or just write it all from scratch?


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Thu Oct 03, 2019 4:40 am 
Offline
Apple Corer

Joined: Sun Feb 01, 2009 4:55 pm
Posts: 269
It would be somewhat difficult, but DingusPPC is largely coded like a C program with some C++ bits here and there and encapsulated. We would mostly just stick with C++ for the initial conversion, but use the Rust toolchain to aid us in development.


Top
 Profile  
Reply with quote Post a reply  
Display posts from previous:  Sort by  
Post new topic  Reply to topic Page 1 of 1 [ 7 posts ]


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
 

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group