diff options
| author | Marko Pusljar <LM1234@gmail.com> | 2010-10-04 12:50:16 +0000 |
|---|---|---|
| committer | Marko Pusljar <LM1234@gmail.com> | 2010-10-04 12:50:16 +0000 |
| commit | 6c8fc66698ad659fc994637383bad02f494335fe (patch) | |
| tree | d53284ef040b86d022740867d612dacf5ff9ff2b | |
| parent | 9ffc071e34d232e0ed38b6ed0d52c68f8236324f (diff) | |
small HandleLoop() optimization for dsplle-int
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6257 8ced0084-cf51-0410-be5f-012b33b47a6e
| -rw-r--r-- | Source/Core/DSPCore/Src/DSPInterpreter.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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. |
