fix crash bug in movddup-on-sse2-emulation

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@241 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
hrydgard 2008-08-17 22:58:12 +00:00
parent ba684cabcd
commit af7e0404ca

View File

@ -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));
}
}