mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-13 09:40:13 +01:00
EE REC: Prevent crash when DI instruction is in branch delay slot
This commit is contained in:
1 parent
a782e03ebf
commit
54f47572af
2 files changed
+3
-1
No files matched your search
+2
-1
@@ -117,7 +117,8 @@ void recDI()
|
||||
// Fixes booting issues in the following games:
|
||||
// Jak X, Namco 50th anniversary, Spongebob the Movie, Spongebob Battle for Bikini Bottom,
|
||||
// The Incredibles, The Incredibles rize of the underminer, Soukou kihei armodyne, Garfield Saving Arlene, Tales of Fandom Vol. 2.
|
||||
recompileNextInstruction(0); // DI execution is delayed by one instruction
|
||||
if(!g_recompilingDelaySlot)
|
||||
recompileNextInstruction(0); // DI execution is delayed by one instruction
|
||||
|
||||
xMOV(eax, ptr[&cpuRegs.CP0.n.Status]);
|
||||
xTEST(eax, 0x20006); // EXL | ERL | EDI
|
||||
|
||||
@@ -61,6 +61,7 @@ extern u32 s_nBlockCycles; // cycles of current block recompiling
|
||||
// Used to clear recompiled code blocks during memory/dma write operations.
|
||||
u32 recClearMem(u32 pc);
|
||||
u32 REC_CLEARM( u32 mem );
|
||||
extern bool g_recompilingDelaySlot;
|
||||
|
||||
// used when processing branches
|
||||
void SaveBranchState();
|
||||
|
||||
Reference in new issue
Block a user