diff --git a/bochs/cpu/init.cc b/bochs/cpu/init.cc index 21bd3c386..a539e6d2d 100644 --- a/bochs/cpu/init.cc +++ b/bochs/cpu/init.cc @@ -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);