Fixed debian i386 image freeze
This commit is contained in:
parent
1231f64d79
commit
5174f9fe82
@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// $Id: paging.cc,v 1.160 2008-12-05 22:34:42 sshwarts Exp $
|
||||
// $Id: paging.cc,v 1.161 2008-12-08 20:01:26 sshwarts Exp $
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2001 MandrakeSoft S.A.
|
||||
@ -960,7 +960,7 @@ bx_phy_address BX_CPU_C::translate_linear(bx_address laddr, unsigned curr_pl, un
|
||||
// note - we assume physical memory < 4gig so for brevity & speed, we'll use
|
||||
// 32 bit entries although cr3 is expanded to 64 bits.
|
||||
bx_phy_address paddress, ppf, poffset = PAGE_OFFSET(laddr);
|
||||
bx_bool isWrite = (rw >= BX_WRITE); // write or r-m-w
|
||||
bx_bool isWrite = rw & 1; // write or r-m-w
|
||||
unsigned pl = (curr_pl == 3);
|
||||
|
||||
BX_ASSERT(BX_CPU_THIS_PTR cr0.get_PG());
|
||||
|
@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// $Id: proc_ctrl.cc,v 1.265 2008-12-06 10:21:55 sshwarts Exp $
|
||||
// $Id: proc_ctrl.cc,v 1.266 2008-12-08 20:01:26 sshwarts Exp $
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2001 MandrakeSoft S.A.
|
||||
@ -2062,9 +2062,9 @@ void BX_CPU_C::hwbreakpoint_match(bx_address laddr, unsigned len, unsigned rw)
|
||||
{
|
||||
if (BX_CPU_THIS_PTR dr7 & 0x000000ff) {
|
||||
// Only compare debug registers if any breakpoints are enabled
|
||||
unsigned opa, opb;
|
||||
unsigned opa, opb, write = rw & 1;
|
||||
opa = BX_HWDebugMemRW; // Read or Write always compares vs 11b
|
||||
if (rw==BX_READ) // only compares vs 11b
|
||||
if (! write) // only compares vs 11b
|
||||
opb = opa;
|
||||
else // BX_WRITE or BX_RW; also compare vs 01b
|
||||
opb = BX_HWDebugMemW;
|
||||
|
Loading…
Reference in New Issue
Block a user