i386: forgot to save (nw)

This commit is contained in:
cracyc 2013-04-05 22:52:24 +00:00
parent b622dd4d6f
commit a9422040c7

View File

@ -3299,7 +3299,7 @@ static void I386OP(lar_r32_rm32)(i386_state *cpustate) // Opcode 0x0f 0x02
return;
}
UINT8 DPL = (seg.flags >> 5) & 3;
if((DPL < cpustate->CPL) && (DPL < (seg.selector & 3)) && ((seg.flags & 0x1c) != 0x1c))
if(((DPL < cpustate->CPL) || (DPL < (seg.selector & 3))) && ((seg.flags & 0x1c) != 0x1c))
{
SetZF(0);
return;
@ -3364,7 +3364,7 @@ static void I386OP(lsl_r32_rm32)(i386_state *cpustate) // Opcode 0x0f 0x03
return;
}
UINT8 DPL = (seg.flags >> 5) & 3;
if((DPL < cpustate->CPL) && (DPL < (seg.selector & 3)) && ((seg.flags & 0x1c) != 0x1c))
if(((DPL < cpustate->CPL) || (DPL < (seg.selector & 3))) && ((seg.flags & 0x1c) != 0x1c))
{
SetZF(0);
return;