summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/sh/sh2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/sh/sh2.cpp')
-rw-r--r--src/devices/cpu/sh/sh2.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/devices/cpu/sh/sh2.cpp b/src/devices/cpu/sh/sh2.cpp
index 8feb977bbec..b9be01f3c7e 100644
--- a/src/devices/cpu/sh/sh2.cpp
+++ b/src/devices/cpu/sh/sh2.cpp
@@ -255,6 +255,9 @@ sh2_device::sh2_device(const machine_config &mconfig, device_type type, const ch
, m_program_config("program", ENDIANNESS_BIG, 32, addrlines, 0, internal_map)
, m_decrypted_program_config("decrypted_opcodes", ENDIANNESS_BIG, 32, addrlines, 0)
, m_is_slave(0)
+ , m_dma_kludge_cb(*this)
+ , m_dma_fifo_data_available_cb(*this)
+ , m_ftcsr_read_cb(*this)
, m_drcfe(nullptr)
, m_debugger_temp(0)
{
@@ -520,9 +523,9 @@ void sh2_device::device_start()
m_dma_current_active_timer[1]->adjust(attotime::never);
/* resolve callbacks */
- m_dma_kludge_cb.bind_relative_to(*owner());
- m_dma_fifo_data_available_cb.bind_relative_to(*owner());
- m_ftcsr_read_cb.bind_relative_to(*owner());
+ m_dma_kludge_cb.resolve();
+ m_dma_fifo_data_available_cb.resolve();
+ m_ftcsr_read_cb.resolve();
m_decrypted_program = has_space(AS_OPCODES) ? &space(AS_OPCODES) : &space(AS_PROGRAM);
auto cache = m_decrypted_program->cache<2, 0, ENDIANNESS_BIG>();