summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/avr8/avr8.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/avr8/avr8.cpp')
-rw-r--r--src/devices/cpu/avr8/avr8.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/cpu/avr8/avr8.cpp b/src/devices/cpu/avr8/avr8.cpp
index f76825e9cb1..c10f2756cf4 100644
--- a/src/devices/cpu/avr8/avr8.cpp
+++ b/src/devices/cpu/avr8/avr8.cpp
@@ -820,7 +820,7 @@ void avr8_device::device_start()
save_item(NAME(m_elapsed_cycles));
// set our instruction counter
- m_icountptr = &m_icount;
+ set_icountptr(m_icount);
}
//-------------------------------------------------
@@ -2954,7 +2954,7 @@ void avr8_device::execute_run()
m_pc &= m_addr_mask;
m_shifted_pc &= (m_addr_mask << 1) | 1;
- debugger_instruction_hook(this, m_shifted_pc);
+ debugger_instruction_hook(m_shifted_pc);
op = (uint32_t)m_program->read_word(m_shifted_pc);