summaryrefslogtreecommitdiff
path: root/Source/Core/DSPCore/Src/DSPEmitter.cpp
diff options
context:
space:
mode:
authorskidau <skidau@gmail.com>2010-11-28 12:28:03 +0000
committerskidau <skidau@gmail.com>2010-11-28 12:28:03 +0000
commit93a901dd1de7f95b1ddb0cb059b23863e4841d06 (patch)
tree10fbdd7b3cfdc730843c26bff5bc96f256328edd /Source/Core/DSPCore/Src/DSPEmitter.cpp
parent9c1fb241c7b314fed444a828481b96bf608897d2 (diff)
LLE JIT: Speed up the dispatcher by removing one of the cycle checks. This results in the DSP executing cycles slightly above what it is supposed to. This is not a problem currently but might be later on.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6489 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/DSPCore/Src/DSPEmitter.cpp')
-rw-r--r--Source/Core/DSPCore/Src/DSPEmitter.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/Source/Core/DSPCore/Src/DSPEmitter.cpp b/Source/Core/DSPCore/Src/DSPEmitter.cpp
index 113d3aea0e..ec41305f9e 100644
--- a/Source/Core/DSPCore/Src/DSPEmitter.cpp
+++ b/Source/Core/DSPCore/Src/DSPEmitter.cpp
@@ -326,12 +326,9 @@ void DSPEmitter::CompileDispatcher()
// Compile block if needed
FixupBranch found = J_CC(CC_NE);
CALL((void *)CompileCurrent);
+ MOVZX(32, 16, ECX, M(&g_dsp.pc));
SetJumpTarget(found);
- // Check if we have enough cycles to execute
- CMP(32, R(ESI), R(EAX));
- FixupBranch noCycles = J_CC(CC_B);
-
// Execute block. Cycles executed returned in EAX.
#ifdef _M_IX86
CALLptr(MComplex(EBX, ECX, SCALE_4, 0));
@@ -344,12 +341,6 @@ void DSPEmitter::CompileDispatcher()
J_CC(CC_A, dispatcherLoop);
- // Not enough cycles.
- SetJumpTarget(noCycles);
- //MOV(32, M(&cyclesLeft), R(ESI));
- //ABI_PopAllCalleeSavedRegsAndAdjustStack();
- //RET();
-
// DSP gave up the remaining cycles.
SetJumpTarget(halt);
//MOV(32, M(&cyclesLeft), Imm32(0));