summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/avr8/avr8.cpp
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/avr8/avr8.cpp
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/avr8/avr8.cpp')
-rw-r--r--src/devices/cpu/avr8/avr8.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/devices/cpu/avr8/avr8.cpp b/src/devices/cpu/avr8/avr8.cpp
index 5500f9060ad..44009a8c6fd 100644
--- a/src/devices/cpu/avr8/avr8.cpp
+++ b/src/devices/cpu/avr8/avr8.cpp
@@ -752,6 +752,7 @@ void avr8_device::device_start()
// register our state for the debugger
state_add(STATE_GENPC, "GENPC", m_shifted_pc).noshow();
+ state_add(STATE_GENPCBASE, "CURPC", m_shifted_pc).noshow();
state_add(STATE_GENFLAGS, "GENFLAGS", m_r[AVR8_REGIDX_SREG]).callimport().callexport().formatstr("%8s").noshow();
state_add(AVR8_SREG, "STATUS", m_r[AVR8_REGIDX_SREG]).mask(0xff);
state_add(AVR8_PC, "PC", m_shifted_pc).mask(m_addr_mask);