From ba119e8c0504c3c50580b33bdd60310fe8d64c73 Mon Sep 17 00:00:00 2001 From: Shawn Hoffman Date: Sun, 23 Oct 2011 02:53:31 -0700 Subject: [PATCH] Set the correct bit for "trap" program exception. Fixes http://wiibrew.org/wiki/Descent --- Source/Core/Core/Src/PowerPC/PowerPC.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Core/Src/PowerPC/PowerPC.cpp b/Source/Core/Core/Src/PowerPC/PowerPC.cpp index 4e58873d7e..bd24d2d87d 100644 --- a/Source/Core/Core/Src/PowerPC/PowerPC.cpp +++ b/Source/Core/Core/Src/PowerPC/PowerPC.cpp @@ -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;