summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2025-04-11 15:34:34 +0200
committer hap <happppp@users.noreply.github.com>2025-04-11 15:34:34 +0200
commitf34dcc20ec34bbb1367d3b68800f0577328c86cb (patch)
tree77114f17b8d825050f672d439d8f95f4bf2ef1e0
parent74877969c18275966e6f72ee5690f1768b03c958 (diff)
dsp56ops: fix regression from prev commit
-rw-r--r--src/devices/cpu/dsp56156/dsp56ops.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/devices/cpu/dsp56156/dsp56ops.hxx b/src/devices/cpu/dsp56156/dsp56ops.hxx
index b58fbeb105c..1072a163c7a 100644
--- a/src/devices/cpu/dsp56156/dsp56ops.hxx
+++ b/src/devices/cpu/dsp56156/dsp56ops.hxx
@@ -1004,7 +1004,8 @@ static void execute_one(dsp56156_core* cpustate)
/* For MAME */
cpustate->ppc = PC;
- cpustate->device->debug()->instruction_hook(PC);
+ if (cpustate->device->machine().debug_flags & DEBUG_FLAG_CALL_HOOK) // FIXME: if this was a member, the helper would work
+ cpustate->device->debug()->instruction_hook(PC);
cpustate->op = ROPCODE(PC);
/* The words we're going to be working with */