From 5f18ed902dfdea6c5024026ea889e8c1c1bc1196 Mon Sep 17 00:00:00 2001 From: Stanislav Shwartsman Date: Tue, 29 Jan 2008 22:29:48 +0000 Subject: [PATCH] fixed compilation issue --- bochs/cpu/init.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bochs/cpu/init.cc b/bochs/cpu/init.cc index 75f10938f..1d2112ddd 100644 --- a/bochs/cpu/init.cc +++ b/bochs/cpu/init.cc @@ -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");