From aeaf51d33afcf9bc937ec0ac1fea7a42df57cfe2 Mon Sep 17 00:00:00 2001 From: Stanislav Shwartsman Date: Fri, 6 Feb 2009 15:25:57 +0000 Subject: [PATCH] FIxed #DB exception in 64-bit mode --- bochs/cpu/proc_ctrl.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bochs/cpu/proc_ctrl.cc b/bochs/cpu/proc_ctrl.cc index 005b90a90..ba3314c37 100644 --- a/bochs/cpu/proc_ctrl.cc +++ b/bochs/cpu/proc_ctrl.cc @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////// -// $Id: proc_ctrl.cc,v 1.283 2009-02-04 16:05:47 sshwarts Exp $ +// $Id: proc_ctrl.cc,v 1.284 2009-02-06 15:25:57 sshwarts Exp $ ///////////////////////////////////////////////////////////////////////// // // Copyright (C) 2001 MandrakeSoft S.A. @@ -521,6 +521,11 @@ void BX_CPP_AttrRegparmN(1) BX_CPU_C::MOV_DqRq(bxInstruction_c *i) // Pentium+: bits15,14,12 are hardwired to 0, rest are settable. // Even bits 11,10 are changeable though reserved. BX_CPU_THIS_PTR dr7 = (val_64 & 0xffff2fff) | 0x00000400; + + // if we have breakpoints enabled then we must check + // breakpoints condition in cpu loop + if(BX_CPU_THIS_PTR dr7 & 0xff) + BX_CPU_THIS_PTR async_event = 1; break; default: