From 908049a0fbd41718409894403dfd7223e35d0c15 Mon Sep 17 00:00:00 2001 From: refractionpcsx2 Date: Wed, 18 Dec 2019 22:38:36 +0100 Subject: [PATCH] pcsx2: DI execution is delayed by one instruction. 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. The games will no longer require a patch to boot. --- pcsx2/x86/iCOP0.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pcsx2/x86/iCOP0.cpp b/pcsx2/x86/iCOP0.cpp index 61c99dd068..de182af291 100644 --- a/pcsx2/x86/iCOP0.cpp +++ b/pcsx2/x86/iCOP0.cpp @@ -114,6 +114,11 @@ void recDI() //xFastCall((void*)(uptr)Interp::DI ); + // 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 + xMOV(eax, ptr[&cpuRegs.CP0.n.Status]); xTEST(eax, 0x20006); // EXL | ERL | EDI xForwardJNZ8 iHaveNoIdea;