fixed compilation error and a logic bug together

This commit is contained in:
Stanislav Shwartsman 2003-01-09 05:21:22 +00:00
parent c15abe90f2
commit 513db033ab
2 changed files with 4 additions and 8 deletions

View File

@ -504,7 +504,7 @@ void BX_CPU_C::MOVD_PqEd(bxInstruction_c *i)
}
}
else
#else
#endif
{
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)));
}
}
#endif
/* now write result back to destination */
BX_WRITE_MMX_REG(i->nnn(), op);
@ -716,7 +715,7 @@ void BX_CPU_C::MOVD_EdPd(bxInstruction_c *i)
}
}
else
#else
#endif
{
/* destination is a register or memory reference */
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)));
}
}
#endif
#else
BX_INFO(("MOVD_EdPd: MMX not supported in current configuration"));

View File

@ -707,7 +707,7 @@ void BX_CPU_C::MOVD_VdqEd(bxInstruction_c *i)
op1.xmm64u(0) = op2;
}
else
#else
#endif
{
Bit32u op2;
@ -722,7 +722,6 @@ void BX_CPU_C::MOVD_VdqEd(bxInstruction_c *i)
op1.xmm64u(0) = (Bit64u)(op2);
}
#endif
/* now write result back to destination */
BX_WRITE_XMM_REG(i->nnn(), op1);
@ -755,7 +754,7 @@ void BX_CPU_C::MOVD_EdVd(bxInstruction_c *i)
}
}
else
#else
#endif
{
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);
}
}
#endif
BX_INFO(("MOVD_EdVd: SSE2 not supported in current configuration"));
UndefinedOpcode(i);