i386: emms should trap too

This commit is contained in:
cracyc 2023-02-06 09:00:39 -06:00
parent 241cdf4fea
commit b4732de782

View File

@ -1912,6 +1912,11 @@ void i386_device::mmx_paddd_r64_rm64() // Opcode 0f fe
void i386_device::mmx_emms() // Opcode 0f 77
{
if (m_cr[0] & 0xc)
{
i386_trap(FAULT_NM, 0, 0);
return;
}
m_x87_tw = 0xffff; // tag word = 0xffff
// TODO
CYCLES(1); // TODO: correct cycle count