- add changes requested by ams, sgdt and sidt in v8086 mode

This commit is contained in:
Christophe Bothamy 2003-01-17 18:08:13 +00:00
parent febe279bba
commit ed57d3d45d

@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////
// $Id: protect_ctrl.cc,v 1.22 2002-10-25 18:26:29 sshwarts Exp $
// $Id: protect_ctrl.cc,v 1.23 2003-01-17 18:08:13 cbothamy Exp $
/////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2001 MandrakeSoft S.A.
@ -737,7 +737,8 @@ BX_CPU_C::SGDT_Ms(bxInstruction_c *i)
Bit16u limit_16;
Bit32u base_32;
if (v8086_mode()) BX_PANIC(("protect_ctrl: v8086 mode unsupported"));
// ams says it works ok in v8086 mode
// if (v8086_mode()) BX_PANIC(("protect_ctrl: v8086 mode unsupported"));
/* op1 is a register or memory reference */
@ -786,7 +787,8 @@ BX_CPU_C::SIDT_Ms(bxInstruction_c *i)
Bit16u limit_16;
Bit32u base_32;
if (v8086_mode()) BX_PANIC(("protect_ctrl: v8086 mode unsupported"));
// ams says it works ok in v8086 mode
// if (v8086_mode()) BX_PANIC(("protect_ctrl: v8086 mode unsupported"));
/* op1 is a register or memory reference */
if (i->modC0()) {