From af7e0404cad3440707cc0f5f432358456862f315 Mon Sep 17 00:00:00 2001 From: hrydgard Date: Sun, 17 Aug 2008 22:58:12 +0000 Subject: [PATCH] fix crash bug in movddup-on-sse2-emulation git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@241 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Common/Src/x64Emitter.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Source/Core/Common/Src/x64Emitter.cpp b/Source/Core/Common/Src/x64Emitter.cpp index da7d75c20e..dff1847e9c 100644 --- a/Source/Core/Common/Src/x64Emitter.cpp +++ b/Source/Core/Common/Src/x64Emitter.cpp @@ -1155,16 +1155,15 @@ namespace Gen void MOVDDUP(X64Reg regOp, OpArg arg) { - // TODO(ector): check SSE3 flag if (cpu_info.bSSE3) { - WriteSSEOp(64, 0x12, false, regOp, arg); //SSE3 + WriteSSEOp(64, 0x12, false, regOp, arg); //SSE3 movddup } else { // Simulate this instruction with SSE2 instructions if (!arg.IsSimpleReg(regOp)) - MOVAPD(regOp, arg); + MOVQ_xmm(regOp, arg); UNPCKLPD(regOp, R(regOp)); } }