- register parameters for the wx debugger only if present (fixes memory leak)
- removed useless static variable 'counter'
This commit is contained in:
parent
1deddb9f0e
commit
d550d71e03
@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// $Id: init.cc,v 1.115 2006-06-05 17:33:25 sshwarts Exp $
|
||||
// $Id: init.cc,v 1.116 2006-06-06 18:36:50 vruppert Exp $
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2001 MandrakeSoft S.A.
|
||||
@ -253,8 +253,7 @@ void BX_CPU_C::initialize(BX_MEM_C *addrspace)
|
||||
sprintf(name, "CPU %d", BX_CPU_ID);
|
||||
|
||||
#if BX_WITH_WX
|
||||
static bx_bool counter = 0;
|
||||
if (counter < BX_MAX_SMP_THREADS_SUPPORTED) {
|
||||
if (SIM->get_param(BXPN_WX_CPU_STATE) != NULL) {
|
||||
// Register some of the CPUs variables as shadow parameters so that
|
||||
// they can be visible in the config interface.
|
||||
// (Experimental, obviously not a complete list)
|
||||
@ -372,8 +371,6 @@ void BX_CPU_C::initialize(BX_MEM_C *addrspace)
|
||||
// restore defaults
|
||||
bx_param_num_c::set_default_base(oldbase);
|
||||
bx_param_num_c::set_default_format(oldfmt);
|
||||
|
||||
counter++;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user