From 92f200e87b70fd6bd9907e32ed9ed64e28ecff83 Mon Sep 17 00:00:00 2001 From: Marko Pusljar Date: Wed, 13 Apr 2011 16:47:13 +0000 Subject: [PATCH] llejit/addaxl - Fix issue 4257 (SSX On Tour crashing with llejit/64bit) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7457 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Core/Src/DSP/Jit/DSPJitArithmetic.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/Core/Core/Src/DSP/Jit/DSPJitArithmetic.cpp b/Source/Core/Core/Src/DSP/Jit/DSPJitArithmetic.cpp index c1716d0d41..88115c57e1 100644 --- a/Source/Core/Core/Src/DSP/Jit/DSPJitArithmetic.cpp +++ b/Source/Core/Core/Src/DSP/Jit/DSPJitArithmetic.cpp @@ -786,6 +786,7 @@ void DSPEmitter::addaxl(const UDSPInstruction opc) MOV(64, R(RAX), R(tmp1)); // u16 acx = (u16)dsp_get_ax_l(sreg); get_ax_l(sreg, RDX); + MOVZX(64, 16, RDX, R(RDX)); // u64 res = acc + acx; ADD(64, R(RAX), R(RDX)); // dsp_set_long_acc(dreg, (s64)res);