summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/m68000
diff options
context:
space:
mode:
author smf- <smf-@users.noreply.github.com>2016-09-27 20:55:42 +0100
committer smf- <smf-@users.noreply.github.com>2016-09-27 20:56:14 +0100
commit2a6cbb70c4a8b2cdd6dbf6488cee92bd60fcc55e (patch)
tree07539148943fd8571ad97cc0d6dc0031551b1225 /src/devices/cpu/m68000
parent87c993dc7407c167aa9536683b6d9e5531fe7d57 (diff)
change cpu cores pcbase handling to be consistent with the majority of cpu cores, now that the debugger relies on it. (nw)
Diffstat (limited to 'src/devices/cpu/m68000')
-rw-r--r--src/devices/cpu/m68000/m68kcpu.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/devices/cpu/m68000/m68kcpu.cpp b/src/devices/cpu/m68000/m68kcpu.cpp
index 053ab3d6976..573673f800b 100644
--- a/src/devices/cpu/m68000/m68kcpu.cpp
+++ b/src/devices/cpu/m68000/m68kcpu.cpp
@@ -797,6 +797,9 @@ inline void m68000_base_device::cpu_execute(void)
/* Set tracing accodring to T1. (T0 is done inside instruction) */
m68ki_trace_t1(this); /* auto-disable (see m68kcpu.h) */
+ /* Record previous program counter */
+ REG_PPC(this) = REG_PC(this);
+
/* Call external hook to peek at CPU */
debugger_instruction_hook(this, REG_PC(this));
@@ -804,9 +807,6 @@ inline void m68000_base_device::cpu_execute(void)
if (!instruction_hook.isnull())
instruction_hook(*program, REG_PC(this), 0xffffffff);
- /* Record previous program counter */
- REG_PPC(this) = REG_PC(this);
-
try
{
if (!pmmu_enabled)