[FAST486]

In HLT, check the CPL and not CS.DPL.


svn path=/trunk/; revision=67650
This commit is contained in:
Aleksandar Andrejevic
2015-05-11 03:31:04 +00:00
parent e4960b02d3
commit c7f19ff4c0
+1 -1
View File
@@ -853,7 +853,7 @@ FAST486_OPCODE_HANDLER(Fast486OpcodeHalt)
}
/* Privileged instructions can only be executed under CPL = 0 */
if (State->SegmentRegs[FAST486_REG_CS].Dpl != 0)
if (Fast486GetCurrentPrivLevel(State) != 0)
{
Fast486Exception(State, FAST486_EXCEPTION_GP);
return;