fixed compilation issue

This commit is contained in:
Stanislav Shwartsman 2008-01-29 22:29:48 +00:00
parent 1a55fce072
commit 5f18ed902d

View File

@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////
// $Id: init.cc,v 1.148 2008-01-29 22:26:29 sshwarts Exp $
// $Id: init.cc,v 1.149 2008-01-29 22:29:48 sshwarts Exp $
/////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2001 MandrakeSoft S.A.
@ -240,8 +240,8 @@ void BX_CPU_C::register_wx_state(void)
DEFPARAM_SEG_REG(GS);
DEFPARAM_SEG_REG(LDTR);
DEFPARAM_SEG_REG(TR);
DEFPARAM_GLOBAL_SEG_REG(GDTR, gdtr);
DEFPARAM_GLOBAL_SEG_REG(IDTR, idtr);
DEFPARAM_GLOBAL_SEG_REG(GDTR, BX_CPU_THIS_PTR gdtr);
DEFPARAM_GLOBAL_SEG_REG(IDTR, BX_CPU_THIS_PTR idtr);
#undef DEFPARAM_NORMAL
#undef DEFPARAM_SEG_REG
#undef DEFPARAM_GLOBAL_SEG_REG
@ -276,7 +276,7 @@ void BX_CPU_C::register_wx_state(void)
param = new bx_shadow_num_c(
list,
"IOPL",
&eflags, 10,
&BX_CPU_THIS_PTR eflags, 10,
12, 13);
param->set_range(0, 3);
param->set_format("%d");