Fixed compilation error with bx debugger

This commit is contained in:
Stanislav Shwartsman 2008-04-05 21:41:31 +00:00
parent b1446727bf
commit 2a121e2664

View File

@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////
// $Id: dbg_main.cc,v 1.121 2008-04-04 14:04:11 sshwarts Exp $
// $Id: dbg_main.cc,v 1.122 2008-04-05 21:41:31 sshwarts Exp $
/////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2001 MandrakeSoft S.A.
@ -3352,8 +3352,8 @@ Bit32u bx_dbg_get_laddr(Bit16u sel, Bit32u ofs)
desc_base = BX_CPU(dbg_cpu)->gdtr.base;
}
BX_CPU(dbg_cpu)->access_linear(desc_base + selector.index * 8, 4, 0, BX_READ, &dword1);
BX_CPU(dbg_cpu)->access_linear(desc_base + selector.index * 8 + 4, 4, 0, BX_READ, &dword2);
BX_CPU(dbg_cpu)->access_read_linear(desc_base + selector.index * 8, 4, 0, BX_READ, &dword1);
BX_CPU(dbg_cpu)->access_read_linear(desc_base + selector.index * 8 + 4, 4, 0, BX_READ, &dword2);
memset (&descriptor, 0, sizeof (descriptor));
BX_CPU(dbg_cpu)->parse_descriptor(dword1, dword2, &descriptor);