Set the correct bit for "trap" program exception. Fixes http://wiibrew.org/wiki/Descent

This commit is contained in:
Shawn Hoffman 2011-10-23 02:53:31 -07:00
parent 3cdcdba25f
commit ba119e8c05
1 changed files with 1 additions and 1 deletions

View File

@ -310,7 +310,7 @@ void CheckExceptions()
{
SRR0 = PC;
// say that it's a trap exception
SRR1 = (MSR & 0x87C0FFFF) | 0x40000;
SRR1 = (MSR & 0x87C0FFFF) | 0x20000;
MSR |= (MSR >> 16) & 1;
MSR &= ~0x04EF36;
NPC = 0x80000700;