summaryrefslogtreecommitdiff
path: root/Source/UnitTests/DSPJitTester.cpp
diff options
context:
space:
mode:
authorpierre <pierre@pirsoft.de>2010-10-31 23:26:18 +0000
committerpierre <pierre@pirsoft.de>2010-10-31 23:26:18 +0000
commit4b9831cdce7ffa1fcb0fc5eda5e5686130096eb2 (patch)
tree31c40b514d03bf3134e0cf87c3b5518836ef957b /Source/UnitTests/DSPJitTester.cpp
parent2f2a76b28a0f612c2b2550d25cdae775de0614f5 (diff)
Core/DSPCore: Extended opcode handling fixes
* Make writeToBackLog private to DSPIntExtOps.cpp (JIT variants of 'l and 'ln are disabled and broken as is) * Make zeroing of the backlog conditional on doing an interpreter fallback and do it at a few more places * Fix selection of cleanup for extended opcodes. * Fix the DSP unit tests to correctly emit the function prolog/epilog (else EBX wouldn't be saved) * Add a few more DSP unit tests git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6325 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/UnitTests/DSPJitTester.cpp')
-rw-r--r--Source/UnitTests/DSPJitTester.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/UnitTests/DSPJitTester.cpp b/Source/UnitTests/DSPJitTester.cpp
index 2012ee09b8..c0b95ca35e 100644
--- a/Source/UnitTests/DSPJitTester.cpp
+++ b/Source/UnitTests/DSPJitTester.cpp
@@ -41,7 +41,9 @@ SDSP DSPJitTester::RunJit(SDSP dsp_settings)
ResetJit();
memcpy(&g_dsp, &dsp_settings, sizeof(SDSP));
const u8* code = jit.GetCodePtr();
+ jit.ABI_PushAllCalleeSavedRegsAndAdjustStack();
jit.EmitInstruction(instruction);
+ jit.ABI_PopAllCalleeSavedRegsAndAdjustStack();
jit.RET();
((void(*)())code)();