From 4a5cc0d71f2b7bb18c6ba2cc3ad8192d469e831b Mon Sep 17 00:00:00 2001 From: cracyc Date: Sat, 20 Feb 2016 08:34:21 -0600 Subject: [PATCH] i386: stuff (nw) --- src/devices/cpu/i386/i386ops.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/devices/cpu/i386/i386ops.inc b/src/devices/cpu/i386/i386ops.inc index 82d49a3008e..2f13445c8be 100644 --- a/src/devices/cpu/i386/i386ops.inc +++ b/src/devices/cpu/i386/i386ops.inc @@ -2506,8 +2506,8 @@ void i386_device::i386_loadall() // Opcode 0x0f 0x07 (0x0f 0x05 on 80286), { if(PROTECTED_MODE && (m_CPL != 0)) FAULT(FAULT_GP,0) - UINT32 ea = i386_translate(ES, REG32(EDI), 1); - m_cr[0] = READ32(ea); + UINT32 ea = i386_translate(ES, REG32(EDI), 0); + m_cr[0] = READ32(ea) & 0xfffeffff; // wp not supported on 386 set_flags(READ32(ea + 0x04)); m_eip = READ32(ea + 0x08); REG32(EDI) = READ32(ea + 0x0c);