summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/m37710
diff options
context:
space:
mode:
author smf- <smf-@users.noreply.github.com>2016-09-27 14:24:33 +0100
committer smf- <smf-@users.noreply.github.com>2016-09-27 14:26:27 +0100
commit1a186c8a3a16a7ce99d7df2dd217a7552b696c92 (patch)
treedb6f7a7442ccc924049e3354c8cded6d62071ecd /src/devices/cpu/m37710
parent3957d89e4466d87f86a42597a49db12a7c040520 (diff)
Make sure all cpu's export STATE_GENPCBASE and use safe_pcbase() for everything in the debugger, which allows interruptible cpu's to work properly. [smf]
Diffstat (limited to 'src/devices/cpu/m37710')
-rw-r--r--src/devices/cpu/m37710/m37710.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/devices/cpu/m37710/m37710.cpp b/src/devices/cpu/m37710/m37710.cpp
index 449af4c45e8..ffaa7f46f05 100644
--- a/src/devices/cpu/m37710/m37710.cpp
+++ b/src/devices/cpu/m37710/m37710.cpp
@@ -1066,6 +1066,7 @@ void m37710_cpu_device::device_start()
state_add( M37710_IRQ_STATE, "IRQ", m_line_irq).formatstr("%01X");
state_add( STATE_GENPC, "GENPC", m_debugger_pc ).callimport().callexport().noshow();
+ state_add( STATE_GENPCBASE, "CURPC", m_debugger_pc ).callimport().callexport().noshow();
state_add( STATE_GENFLAGS, "GENFLAGS", m_debugger_p ).formatstr("%8s").noshow();
m_icountptr = &m_ICount;
@@ -1098,6 +1099,7 @@ void m37710_cpu_device::state_import(const device_state_entry &entry)
break;
case STATE_GENPC:
+ case STATE_GENPCBASE:
REG_PB = m_debugger_pc & 0xff0000;
m37710_set_pc(m_debugger_pc & 0xffff);
break;
@@ -1130,6 +1132,7 @@ void m37710_cpu_device::state_export(const device_state_entry &entry)
break;
case STATE_GENPC:
+ case STATE_GENPCBASE:
m_debugger_pc = (REG_PB | REG_PC);
break;
}