From 4b9831cdce7ffa1fcb0fc5eda5e5686130096eb2 Mon Sep 17 00:00:00 2001 From: pierre Date: Sun, 31 Oct 2010 23:26:18 +0000 Subject: 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 --- Source/UnitTests/DSPJitTester.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Source/UnitTests/DSPJitTester.cpp') 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)(); -- cgit v1.2.3