fixed compilation error and a logic bug together
This commit is contained in:
parent
c15abe90f2
commit
513db033ab
@ -504,7 +504,7 @@ void BX_CPU_C::MOVD_PqEd(bxInstruction_c *i)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#else
|
#endif
|
||||||
{
|
{
|
||||||
MMXUD1(op) = 0;
|
MMXUD1(op) = 0;
|
||||||
|
|
||||||
@ -517,7 +517,6 @@ void BX_CPU_C::MOVD_PqEd(bxInstruction_c *i)
|
|||||||
read_virtual_dword(i->seg(), RMAddr(i), &(MMXUD0(op)));
|
read_virtual_dword(i->seg(), RMAddr(i), &(MMXUD0(op)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
/* now write result back to destination */
|
/* now write result back to destination */
|
||||||
BX_WRITE_MMX_REG(i->nnn(), op);
|
BX_WRITE_MMX_REG(i->nnn(), op);
|
||||||
@ -716,7 +715,7 @@ void BX_CPU_C::MOVD_EdPd(bxInstruction_c *i)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#else
|
#endif
|
||||||
{
|
{
|
||||||
/* destination is a register or memory reference */
|
/* destination is a register or memory reference */
|
||||||
if (i->modC0()) {
|
if (i->modC0()) {
|
||||||
@ -726,7 +725,6 @@ void BX_CPU_C::MOVD_EdPd(bxInstruction_c *i)
|
|||||||
write_virtual_dword(i->seg(), RMAddr(i), &(MMXUD0(op)));
|
write_virtual_dword(i->seg(), RMAddr(i), &(MMXUD0(op)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
#else
|
#else
|
||||||
BX_INFO(("MOVD_EdPd: MMX not supported in current configuration"));
|
BX_INFO(("MOVD_EdPd: MMX not supported in current configuration"));
|
||||||
|
@ -707,7 +707,7 @@ void BX_CPU_C::MOVD_VdqEd(bxInstruction_c *i)
|
|||||||
op1.xmm64u(0) = op2;
|
op1.xmm64u(0) = op2;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#else
|
#endif
|
||||||
{
|
{
|
||||||
Bit32u op2;
|
Bit32u op2;
|
||||||
|
|
||||||
@ -722,7 +722,6 @@ void BX_CPU_C::MOVD_VdqEd(bxInstruction_c *i)
|
|||||||
|
|
||||||
op1.xmm64u(0) = (Bit64u)(op2);
|
op1.xmm64u(0) = (Bit64u)(op2);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
/* now write result back to destination */
|
/* now write result back to destination */
|
||||||
BX_WRITE_XMM_REG(i->nnn(), op1);
|
BX_WRITE_XMM_REG(i->nnn(), op1);
|
||||||
@ -755,7 +754,7 @@ void BX_CPU_C::MOVD_EdVd(bxInstruction_c *i)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#else
|
#endif
|
||||||
{
|
{
|
||||||
Bit32u op2 = op1.xmm32u(0);
|
Bit32u op2 = op1.xmm32u(0);
|
||||||
|
|
||||||
@ -768,7 +767,6 @@ void BX_CPU_C::MOVD_EdVd(bxInstruction_c *i)
|
|||||||
write_virtual_dword(i->seg(), RMAddr(i), &op2);
|
write_virtual_dword(i->seg(), RMAddr(i), &op2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
BX_INFO(("MOVD_EdVd: SSE2 not supported in current configuration"));
|
BX_INFO(("MOVD_EdVd: SSE2 not supported in current configuration"));
|
||||||
UndefinedOpcode(i);
|
UndefinedOpcode(i);
|
||||||
|
Loading…
Reference in New Issue
Block a user