mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-10-25 10:59:10 -05:00
PowerPC: Set SRR1 correctly for program exceptions
This commit is contained in:
@@ -483,8 +483,8 @@ void CheckExceptions()
|
||||
else if (exceptions & EXCEPTION_PROGRAM)
|
||||
{
|
||||
SRR0 = PC;
|
||||
// say that it's a trap exception
|
||||
SRR1 = (MSR.Hex & 0x87C0FFFF) | 0x20000;
|
||||
// SRR1 was partially set by GenerateProgramException, so bitwise or is used here
|
||||
SRR1 |= MSR.Hex & 0x87C0FFFF;
|
||||
MSR.LE = MSR.ILE;
|
||||
MSR.Hex &= ~0x04EF36;
|
||||
PC = NPC = 0x00000700;
|
||||
|
||||
Reference in New Issue
Block a user