summaryrefslogtreecommitdiffstats
path: root/src/emu/debugger.cpp
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2018-03-28 05:25:15 +1100
committer Vas Crabb <vas@vastheman.com>2018-03-28 05:25:15 +1100
commit010155a3c51aa80dcf736b52ec89ffd890f795ef (patch)
treea732be4076a467e5dc25f088f9296544f364f858 /src/emu/debugger.cpp
parent703564beccc92a6b6b33ab9562732a4e7ceaae8d (diff)
Reshuffle some stuff:
* Move around the debugger hooks to get a small but measurable performance increase * Remove emucore from external tools * Improve performance of DSP16 interpreter a little by generating six variants of execution loop
Diffstat (limited to 'src/emu/debugger.cpp')
-rw-r--r--src/emu/debugger.cpp62
1 files changed, 0 insertions, 62 deletions
diff --git a/src/emu/debugger.cpp b/src/emu/debugger.cpp
index de73c976dc4..b7ddea04137 100644
--- a/src/emu/debugger.cpp
+++ b/src/emu/debugger.cpp
@@ -23,68 +23,6 @@
static running_machine *g_machine = nullptr;
static bool g_atexit_registered = false;
-/*-------------------------------------------------
- debugger_instruction_hook - CPU cores call
- this once per instruction from CPU cores
--------------------------------------------------*/
-
-void debugger_instruction_hook(device_t *device, offs_t curpc)
-{
-#ifndef MAME_DEBUG_FAST
- if ((device->machine().debug_flags & DEBUG_FLAG_CALL_HOOK) != 0)
- device->debug()->instruction_hook(curpc);
-#endif
-}
-
-
-/*-------------------------------------------------
- debugger_exception_hook - CPU cores call this
- anytime an exception is generated
--------------------------------------------------*/
-
-void debugger_exception_hook(device_t *device, int exception)
-{
- if ((device->machine().debug_flags & DEBUG_FLAG_ENABLED) != 0)
- device->debug()->exception_hook(exception);
-}
-
-/*-------------------------------------------------
- debugger_start_cpu_hook - the CPU execution
- system calls this hook before beginning
- execution for the given CPU
--------------------------------------------------*/
-
-void debugger_start_cpu_hook(device_t *device, const attotime &endtime)
-{
- if ((device->machine().debug_flags & DEBUG_FLAG_ENABLED) != 0)
- device->debug()->start_hook(endtime);
-}
-
-
-/*-------------------------------------------------
- debugger_stop_cpu_hook - the CPU execution
- system calls this hook when ending execution
- for the given CPU
--------------------------------------------------*/
-
-void debugger_stop_cpu_hook(device_t *device)
-{
- if ((device->machine().debug_flags & DEBUG_FLAG_ENABLED) != 0)
- device->debug()->stop_hook();
-}
-
-
-/*-------------------------------------------------
- debugger_interrupt_hook - the CPU execution
- system calls this hook when an interrupt is
- acknowledged
--------------------------------------------------*/
-
-void debugger_interrupt_hook(device_t *device, int irqline)
-{
- if ((device->machine().debug_flags & DEBUG_FLAG_ENABLED) != 0)
- device->debug()->interrupt_hook(irqline);
-}
/*-------------------------------------------------
debug_break - stop in the debugger at the next