summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/cpu/mips/mips3.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/cpu/mips/mips3.c')
-rw-r--r--src/emu/cpu/mips/mips3.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/emu/cpu/mips/mips3.c b/src/emu/cpu/mips/mips3.c
index ed12d7f8d7a..5b1cc411a8e 100644
--- a/src/emu/cpu/mips/mips3.c
+++ b/src/emu/cpu/mips/mips3.c
@@ -166,7 +166,7 @@ INLINE void generate_exception(int exception, int backup)
if (exception != 0)
{
fprintf(stderr, "Exception: PC=%08X, PPC=%08X\n", mips3.core.pc, mips3.ppc);
- DEBUGGER_BREAK;
+ debugger_break(Machine);
}
*/
@@ -297,13 +297,11 @@ static int mips3_translate(int space, int intention, offs_t *address)
}
-#ifdef ENABLE_DEBUGGER
offs_t mips3_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram)
{
/* common disassemble */
return mips3com_dasm(&mips3.core, buffer, pc, oprom, opram);
}
-#endif /* ENABLE_DEBUGGER */
@@ -1679,7 +1677,7 @@ int mips3_execute(int cycles)
/* debugging */
mips3.ppc = mips3.core.pc;
- CALL_DEBUGGER(mips3.core.pc);
+ debugger_instruction_hook(Machine, mips3.core.pc);
/* instruction fetch */
op = ROPCODE(mips3.pcbase | (mips3.core.pc & 0xfff));
@@ -2136,9 +2134,7 @@ void mips3_get_info(UINT32 state, cpuinfo *info)
case CPUINFO_PTR_INIT: /* provided per-CPU */ break;
case CPUINFO_PTR_RESET: info->reset = mips3_reset; break;
case CPUINFO_PTR_EXECUTE: info->execute = mips3_execute; break;
-#ifdef ENABLE_DEBUGGER
case CPUINFO_PTR_DISASSEMBLE: info->disassemble = mips3_dasm; break;
-#endif
case CPUINFO_PTR_TRANSLATE: info->translate = mips3_translate; break;
/* --- the following bits of info are returned as NULL-terminated strings --- */