From b4732de7826b8d1241a9e5a7cced43a4d36c733d Mon Sep 17 00:00:00 2001 From: cracyc Date: Mon, 6 Feb 2023 09:00:39 -0600 Subject: i386: emms should trap too --- src/devices/cpu/i386/pentops.hxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/devices/cpu/i386/pentops.hxx b/src/devices/cpu/i386/pentops.hxx index 2d8f046bc4d..a43ecf30161 100644 --- a/src/devices/cpu/i386/pentops.hxx +++ b/src/devices/cpu/i386/pentops.hxx @@ -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 -- cgit v1.2.3