further optimization for mode when debugger is off

This commit is contained in:
Stanislav Shwartsman 2023-12-29 21:05:42 +02:00 committed by Stanislav Shwartsman
parent 3666f924de
commit 9ef4aaaaf6
1 changed files with 3 additions and 0 deletions

View File

@ -701,6 +701,9 @@ void bx_dbg_print_value(Bit8u *data, unsigned len)
void bx_dbg_lin_memory_access(unsigned cpu, bx_address lin, bx_phy_address phy, unsigned len, unsigned memtype, unsigned rw, Bit8u *data)
{
if (! bx_dbg.debugger_active)
return;
bx_dbg_check_memory_watchpoints(cpu, phy, len, rw);
if (! BX_CPU(cpu)->trace_mem)