From e352d0b8719cbbdc4c3b69d04634f3e82796b5f6 Mon Sep 17 00:00:00 2001 From: Bryce Denney Date: Sun, 25 Aug 2002 05:21:16 +0000 Subject: [PATCH] - oops, I used BX_CPU_THIS_PTR outside of the cpu object. Changed the reference to BX_CPU(0) which is legal even when BX_USE_CPU_SMF is off. --- bochs/gui/siminterface.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bochs/gui/siminterface.cc b/bochs/gui/siminterface.cc index bafb2d711..6bcbd717b 100644 --- a/bochs/gui/siminterface.cc +++ b/bochs/gui/siminterface.cc @@ -1,10 +1,10 @@ ///////////////////////////////////////////////////////////////////////// -// $Id: siminterface.cc,v 1.43 2002-08-01 07:34:59 vruppert Exp $ +// $Id: siminterface.cc,v 1.44 2002-08-25 05:21:16 bdenney Exp $ ///////////////////////////////////////////////////////////////////////// // /* * gui/siminterface.cc - * $Id: siminterface.cc,v 1.43 2002-08-01 07:34:59 vruppert Exp $ + * $Id: siminterface.cc,v 1.44 2002-08-25 05:21:16 bdenney Exp $ * * Defines the actual link between bx_simulator_interface_c methods * and the simulator. This file includes bochs.h because it needs @@ -245,8 +245,8 @@ bx_real_sim_c::quit_sim (int code) { // in wxWindows, the whole simulator is running in a separate thread. // our only job is to end the thread as soon as possible, NOT to shut // down the whole application with an exit. - BX_CPU_THIS_PTR async_event = 1; - BX_CPU_THIS_PTR kill_bochs_request = 1; + BX_CPU(0)->async_event = 1; + BX_CPU(0)->kill_bochs_request = 1; // the cpu loop will exit very soon after this condition is set. #else // just a single thread. Use exit() to stop the application.