summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/arcompact
diff options
context:
space:
mode:
author smf- <smf-@users.noreply.github.com>2016-09-27 14:24:33 +0100
committer Vas Crabb <vas@vastheman.com>2016-09-28 17:45:37 +1000
commitfd279ffffaba099464a584b52c7b5436305493e5 (patch)
tree31fdd998bc915b83a27f6ea1fbae29f662b32917 /src/devices/cpu/arcompact
parent1de6465b1837b2dc391dcbe90df23a9c8427c750 (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/arcompact')
-rw-r--r--src/devices/cpu/arcompact/arcompact.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/devices/cpu/arcompact/arcompact.cpp b/src/devices/cpu/arcompact/arcompact.cpp
index 7c56a774601..7c290e1adad 100644
--- a/src/devices/cpu/arcompact/arcompact.cpp
+++ b/src/devices/cpu/arcompact/arcompact.cpp
@@ -95,6 +95,7 @@ void arcompact_device::device_start()
state_add( 0x12, "LP_END", m_debugger_temp).callimport().callexport().formatstr("%08X");
state_add(STATE_GENPC, "GENPC", m_debugger_temp).callexport().noshow();
+ state_add(STATE_GENPCBASE, "CURPC", m_debugger_temp).callexport().noshow();
for (int i = 0x100; i < 0x140; i++)
{
@@ -111,6 +112,8 @@ void arcompact_device::state_export(const device_state_entry &entry)
switch (index)
{
+ case STATE_GENPC:
+ case STATE_GENPCBASE:
case 0:
m_debugger_temp = m_pc;
break;
@@ -125,10 +128,6 @@ void arcompact_device::state_export(const device_state_entry &entry)
m_debugger_temp = m_LP_END;
break;
- case STATE_GENPC:
- m_debugger_temp = m_pc;
- break;
-
default:
if ((index >= 0x100) && (index < 0x140))
{