PPC core fix

Post Reply
Tantric
Junior Member
Posts: 17
Joined: Sat Oct 04, 2008 3:12 pm

PPC core fix

Post by Tantric »

Problem: After activating the PPC core, GBA-thumb.cpp wouldn't compile for me using gcc stating: unsupported relocation against xer.

 

Fix: replace two lines that have 'mtspr xer' with 'mtspr 1'.

 

This doc explains it: http://publib.boulder.ibm.com/infocenter/systems/index.jsp?topic=/com.ibm.aix.aixassem/doc/alangref/mtspr.htm

 

mtspr - move to special purpose register

xer - register at 1

 

Works quite happily now! Now if only someone would update the GBA-arm.cpp PPC code...

bgK
Member
Posts: 88
Joined: Thu Apr 17, 2008 3:58 pm

PPC core fix

Post by bgK »

Good job ! Commited.

 

Does it give a good speed boost on the Wii ?

Tantric
Junior Member
Posts: 17
Joined: Sat Oct 04, 2008 3:12 pm

PPC core fix

Post by Tantric »

It's hard to tell, but I think every little bit helps. VBA-Wii is actually running decently - games like Minish Cap run without frameskip, games like SMB3 run at frameskip 1 or 2 (totally unnoticeable). The only exception is stuff like Mode 7 - the intro for FFIV runs well at cough frameskip 15 cough.

 

GBA-thumb is the only part that's been PPC-activated, I think activating more would help more...

Squall Leonhart
Posting Freak
Posts: 1223
Joined: Tue Mar 18, 2008 9:21 am

PPC core fix

Post by Squall Leonhart »

So is the source ok to compile for the MAC yet? i want the guy here

 

http://forums.ngemu.com/visualboy-advance-discussion/113524-help-fire-emblem-6-a.html#post1495390

 

to take it for a test drive.

bgK
Member
Posts: 88
Joined: Thu Apr 17, 2008 3:58 pm

PPC core fix

Post by bgK »

The SDL port has always been OK to build on MacOS X. The GTK+ port should build with very minor changes (mostly disabling XVideo). And I think KunaiTeam is working on a Cocoa port.

 

BTW modern macs aren't PPC anymore ...

Squall Leonhart
Posting Freak
Posts: 1223
Joined: Tue Mar 18, 2008 9:21 am

PPC core fix

Post by Squall Leonhart »

thanks bgK,

KunaiTeam
Junior Member
Posts: 44
Joined: Thu Aug 14, 2008 9:37 pm

PPC core fix

Post by KunaiTeam »

Yeah, but there are still quite a few people who use them, so I went out of my way to make sure the VBA-M Launcher I made was a Universal Binary. As far as I know, the SDL works on PPC Macs. At least it did a few months ago when I last had a PPC Mac.

 

The VBA-M Launcher app I posted here may solve his problem.

Post Reply