diff --git a/bochs/cpu/init.cc b/bochs/cpu/init.cc index 1d2112ddd..560e2aa78 100644 --- a/bochs/cpu/init.cc +++ b/bochs/cpu/init.cc @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////// -// $Id: init.cc,v 1.149 2008-01-29 22:29:48 sshwarts Exp $ +// $Id: init.cc,v 1.150 2008-01-31 21:44:28 vruppert Exp $ ///////////////////////////////////////////////////////////////////////// // // Copyright (C) 2001 MandrakeSoft S.A. @@ -226,11 +226,9 @@ void BX_CPU_C::register_wx_state(void) param->set_format(fmt16); #define DEFPARAM_GLOBAL_SEG_REG(name,field) \ param = new bx_shadow_num_c(list, \ - #name"_base", \ - & BX_CPU_THIS_PTR field.base); \ + #name"_base", &(field.base)); \ param = new bx_shadow_num_c(list, \ - #name"_limit", \ - & BX_CPU_THIS_PTR field.limit); + #name"_limit", &(field.limit)); DEFPARAM_SEG_REG(CS); DEFPARAM_SEG_REG(DS);