From 10b39bcb532bfce238ed89ebb9fb8fe5c69d0510 Mon Sep 17 00:00:00 2001 From: John Peterson Date: Sun, 1 Feb 2009 19:16:34 +0000 Subject: [PATCH] JIT: Disabled a "if (js.isLastInstruction)" condition in WriteCallInterpreter(). This will make MegaMan Network Transmission (2003) show the main menu again, and perhaps work like before again. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2065 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Core/Src/PowerPC/Jit64/Jit.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/Core/Core/Src/PowerPC/Jit64/Jit.cpp b/Source/Core/Core/Src/PowerPC/Jit64/Jit.cpp index c340d228ea..26546e56f9 100644 --- a/Source/Core/Core/Src/PowerPC/Jit64/Jit.cpp +++ b/Source/Core/Core/Src/PowerPC/Jit64/Jit.cpp @@ -221,7 +221,7 @@ namespace CPUCompare asm_routines.Shutdown(); } - + // This is only called by Default() in this file. It will execute an instruction with the interpreter functions. void Jit64::WriteCallInterpreter(UGeckoInstruction inst) { gpr.Flush(FLUSH_ALL); @@ -233,11 +233,14 @@ namespace CPUCompare } Interpreter::_interpreterInstruction instr = GetInterpreterOp(inst); ABI_CallFunctionC((void*)instr, inst.hex); + // This was added in revision 1954, I don't know what it does. MegaMan would hang if this was enabled. + /* if (js.isLastInstruction) { MOV(32, R(EAX), M(&NPC)); WriteRfiExitDestInEAX(); } + */ } void Jit64::unknown_instruction(UGeckoInstruction inst)