From 6c8fc66698ad659fc994637383bad02f494335fe Mon Sep 17 00:00:00 2001 From: Marko Pusljar Date: Mon, 4 Oct 2010 12:50:16 +0000 Subject: [PATCH] small HandleLoop() optimization for dsplle-int git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6257 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/DSPCore/Src/DSPInterpreter.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Core/DSPCore/Src/DSPInterpreter.cpp b/Source/Core/DSPCore/Src/DSPInterpreter.cpp index 96fac7d485..ee67ce0989 100644 --- a/Source/Core/DSPCore/Src/DSPInterpreter.cpp +++ b/Source/Core/DSPCore/Src/DSPInterpreter.cpp @@ -99,7 +99,9 @@ void Step() u16 opc = dsp_fetch_code(); ExecuteInstruction(UDSPInstruction(opc)); - HandleLoop(); + + if (DSPAnalyzer::code_flags[g_dsp.pc - 1] & DSPAnalyzer::CODE_LOOP_END) + HandleLoop(); } // Used by thread mode.