Removed unused variables in bx_dbg struct
This commit is contained in:
parent
2b4fa16c4a
commit
3f1e436926
@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// $Id: bochs.h,v 1.230 2008-05-10 20:39:53 sshwarts Exp $
|
||||
// $Id: bochs.h,v 1.231 2008-05-23 14:04:42 sshwarts Exp $
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2002 MandrakeSoft S.A.
|
||||
@ -455,17 +455,9 @@ typedef struct {
|
||||
bx_bool a20;
|
||||
bx_bool interrupts;
|
||||
bx_bool exceptions;
|
||||
bx_bool unsupported;
|
||||
bx_bool temp;
|
||||
bx_bool reset;
|
||||
bx_bool debugger;
|
||||
bx_bool mouse;
|
||||
bx_bool io;
|
||||
bx_bool xms;
|
||||
bx_bool v8086;
|
||||
bx_bool paging;
|
||||
bx_bool creg;
|
||||
bx_bool dreg;
|
||||
bx_bool dma;
|
||||
bx_bool unsupported_io;
|
||||
bx_bool serial;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// $Id: dbg_main.cc,v 1.144 2008-05-19 19:11:24 sshwarts Exp $
|
||||
// $Id: dbg_main.cc,v 1.145 2008-05-23 14:04:43 sshwarts Exp $
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2001 MandrakeSoft S.A.
|
||||
@ -1255,17 +1255,9 @@ void bx_dbg_show_command(const char* arg)
|
||||
bx_dbg.a20 = 1;
|
||||
bx_dbg.interrupts = 1;
|
||||
bx_dbg.exceptions = 1;
|
||||
bx_dbg.unsupported = 1;
|
||||
bx_dbg.temp = 1;
|
||||
bx_dbg.reset = 1;
|
||||
bx_dbg.mouse = 1;
|
||||
bx_dbg.io = 1;
|
||||
bx_dbg.debugger = 1;
|
||||
bx_dbg.xms = 1;
|
||||
bx_dbg.v8086 = 1;
|
||||
bx_dbg.paging = 1;
|
||||
bx_dbg.creg = 1;
|
||||
bx_dbg.dreg = 1;
|
||||
bx_dbg.dma = 1;
|
||||
bx_dbg.unsupported_io = 1;
|
||||
/* bx_dbg.record_io = 1; this is a pointer .. somewhere */
|
||||
@ -1283,17 +1275,9 @@ void bx_dbg_show_command(const char* arg)
|
||||
bx_dbg.a20 = 0;
|
||||
bx_dbg.interrupts = 0;
|
||||
bx_dbg.exceptions = 0;
|
||||
bx_dbg.unsupported = 0;
|
||||
bx_dbg.temp = 0;
|
||||
bx_dbg.reset = 0;
|
||||
bx_dbg.mouse = 0;
|
||||
bx_dbg.io = 0;
|
||||
bx_dbg.debugger = 0;
|
||||
bx_dbg.xms = 0;
|
||||
bx_dbg.v8086 = 0;
|
||||
bx_dbg.paging = 0;
|
||||
bx_dbg.creg = 0;
|
||||
bx_dbg.dreg = 0;
|
||||
bx_dbg.dma = 0;
|
||||
bx_dbg.unsupported_io = 0;
|
||||
/* bx_dbg.record_io = 0; this is a pointer .. somewhere */
|
||||
|
@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// $Id: paging.cc,v 1.134 2008-05-21 21:38:59 sshwarts Exp $
|
||||
// $Id: paging.cc,v 1.135 2008-05-23 14:04:45 sshwarts Exp $
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2001 MandrakeSoft S.A.
|
||||
@ -421,9 +421,6 @@ BX_CPU_C::pagingCR0Changed(Bit32u oldCR0, Bit32u newCR0)
|
||||
// WP, so if that changes we must also flush the TLB.
|
||||
if ((oldCR0 & 0x80010001) != (newCR0 & 0x80010001))
|
||||
TLB_flush(1); // 1 = Flush Global entries also.
|
||||
|
||||
if (bx_dbg.paging)
|
||||
BX_INFO(("pagingCR0Changed: (0x%x -> 0x%x)", oldCR0, newCR0));
|
||||
}
|
||||
|
||||
void BX_CPP_AttrRegparmN(2)
|
||||
@ -433,9 +430,6 @@ BX_CPU_C::pagingCR4Changed(Bit32u oldCR4, Bit32u newCR4)
|
||||
if ((oldCR4 & 0x000000b0) != (newCR4 & 0x000000b0))
|
||||
TLB_flush(1); // 1 = Flush Global entries also.
|
||||
|
||||
if (bx_dbg.paging)
|
||||
BX_INFO(("pagingCR4Changed: (0x%x -> 0x%x)", oldCR4, newCR4));
|
||||
|
||||
#if BX_SUPPORT_PAE
|
||||
if ((oldCR4 & 0x00000020) != (newCR4 & 0x00000020)) {
|
||||
if (BX_CPU_THIS_PTR cr4.get_PAE() && !long_mode())
|
||||
@ -449,11 +443,6 @@ BX_CPU_C::pagingCR4Changed(Bit32u oldCR4, Bit32u newCR4)
|
||||
void BX_CPP_AttrRegparmN(1)
|
||||
BX_CPU_C::SetCR3(bx_address val)
|
||||
{
|
||||
if (bx_dbg.paging) {
|
||||
BX_DEBUG(("SetCR3(): flush TLB cache"));
|
||||
BX_DEBUG(("Page Directory Base: 0x" FMT_PHY_ADDRX, val));
|
||||
}
|
||||
|
||||
// flush TLB even if value does not change
|
||||
TLB_flush(0); // 0 = Don't flush Global entries.
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// $Id: main.cc,v 1.380 2008-05-01 23:08:36 sshwarts Exp $
|
||||
// $Id: main.cc,v 1.381 2008-05-23 14:04:42 sshwarts Exp $
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2002 MandrakeSoft S.A.
|
||||
@ -1130,17 +1130,9 @@ void bx_init_bx_dbg(void)
|
||||
bx_dbg.a20 = 0;
|
||||
bx_dbg.interrupts = 0;
|
||||
bx_dbg.exceptions = 0;
|
||||
bx_dbg.unsupported = 0;
|
||||
bx_dbg.temp = 0;
|
||||
bx_dbg.reset = 0;
|
||||
bx_dbg.mouse = 0;
|
||||
bx_dbg.io = 0;
|
||||
bx_dbg.debugger = 0;
|
||||
bx_dbg.xms = 0;
|
||||
bx_dbg.v8086 = 0;
|
||||
bx_dbg.paging = 0;
|
||||
bx_dbg.creg = 0;
|
||||
bx_dbg.dreg = 0;
|
||||
bx_dbg.dma = 0;
|
||||
bx_dbg.unsupported_io = 0;
|
||||
bx_dbg.record_io = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user