mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 13:27:45 -07:00
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:
parent
ba684cabcd
commit
af7e0404ca
@ -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));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user