fixed compile with debugger enabled

This commit is contained in:
Stanislav Shwartsman 2012-10-03 20:32:02 +00:00
parent 2ca0c6c677
commit be1642e02e

View File

@ -316,11 +316,11 @@ unsigned BX_CPU_C::dbg_query_pending(void)
ret |= BX_DBG_PENDING_DMA; 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; 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) bx_bool BX_CPU_C::dbg_get_sreg(bx_dbg_sreg_t *sreg, unsigned sreg_no)