Fixed compilation err with debugger ON

This commit is contained in:
Stanislav Shwartsman 2006-04-06 16:43:36 +00:00
parent c7773adac4
commit 41204ede1a

View File

@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////
// $Id: misc_mem.cc,v 1.88 2006-04-05 16:58:22 vruppert Exp $
// $Id: misc_mem.cc,v 1.89 2006-04-06 16:43:36 sshwarts Exp $
/////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2002 MandrakeSoft S.A.
@ -94,7 +94,7 @@ void BX_MEM_C::init_memory(int memsize)
{
int idx;
BX_DEBUG(("Init $Id: misc_mem.cc,v 1.88 2006-04-05 16:58:22 vruppert Exp $"));
BX_DEBUG(("Init $Id: misc_mem.cc,v 1.89 2006-04-06 16:43:36 sshwarts Exp $"));
// you can pass 0 if memory has been allocated already through
// the constructor, or the desired size of memory if it hasn't
@ -506,7 +506,7 @@ bx_bool BX_MEM_C::dbg_set_mem(bx_phy_address addr, unsigned len, Bit8u *buf)
}
for (; len>0; len--) {
// Write to standard PCI/ISA Video Mem / SMMRAM
if ((a20Addr & 0xfffe0000) == 0x000a0000) {
if ((addr & 0xfffe0000) == 0x000a0000) {
if (BX_MEM_THIS smram_enable)
vector[addr] = *buf;
else