Fixed CPU CPL restore when in v8086 mode
This commit is contained in:
parent
f74d7b56e7
commit
9393cff0b9
@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// $Id: init.cc,v 1.172 2008-05-26 21:46:38 sshwarts Exp $
|
||||
// $Id: init.cc,v 1.173 2008-05-30 21:10:37 sshwarts Exp $
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2001 MandrakeSoft S.A.
|
||||
@ -645,6 +645,8 @@ Bit64s BX_CPU_C::param_restore(bx_param_c *param, Bit64s val)
|
||||
|
||||
void BX_CPU_C::after_restore_state(void)
|
||||
{
|
||||
if (BX_CPU_THIS_PTR cpu_mode == BX_MODE_IA32_V8086) CPL = 3;
|
||||
|
||||
SetCR0(cr0.val32);
|
||||
SetCR3(cr3);
|
||||
TLB_flush(1);
|
||||
|
Loading…
Reference in New Issue
Block a user