From be1642e02e3d1b8e29184c287958766c9640bf49 Mon Sep 17 00:00:00 2001 From: Stanislav Shwartsman Date: Wed, 3 Oct 2012 20:32:02 +0000 Subject: [PATCH] fixed compile with debugger enabled --- bochs/cpu/debugstuff.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bochs/cpu/debugstuff.cc b/bochs/cpu/debugstuff.cc index 27536537b..0821d4895 100644 --- a/bochs/cpu/debugstuff.cc +++ b/bochs/cpu/debugstuff.cc @@ -316,11 +316,11 @@ unsigned BX_CPU_C::dbg_query_pending(void) ret |= BX_DBG_PENDING_DMA; } - if (BX_CPU_THIS_PTR INTR && BX_CPU_THIS_PTR get_IF()) { + if (is_unmasked_event_pending(BX_EVENT_PENDING_INTR)) { ret |= BX_DBG_PENDING_IRQ; } - return(ret); + return ret; } bx_bool BX_CPU_C::dbg_get_sreg(bx_dbg_sreg_t *sreg, unsigned sreg_no)