i386: stuff (nw)

This commit is contained in:
cracyc 2016-02-20 08:34:21 -06:00
parent 234b611632
commit 4a5cc0d71f

View File

@ -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);