diff options
author | 2023-06-17 01:10:05 +1000 | |
---|---|---|
committer | 2023-06-17 01:10:05 +1000 | |
commit | e9c1f4a42a6758a6fb75403e28c7dc6cf869081c (patch) | |
tree | 8e0b6d960bed4baec2408c9ab950218592ef33ec /src/devices/cpu/alpha/alpha.cpp | |
parent | c1ceb6e016763537c5109cc76fe5d1b4ae72fdb3 (diff) |
emu/devcb.h: Eliminated the need to call resolve() on callbacks. (#11333)
Read callbacks now need a default return value supplied at construction.
Replaced isnull() with isunset() which tells you if the callback wasn't
configured rather than whether it isn't safe to call.
Enabled validation of device callbacks (it seems it was disabled at some
point, probably accidentally).
Device callbacks and object finders now implement the same interface for
resolution.
Diffstat (limited to 'src/devices/cpu/alpha/alpha.cpp')
-rw-r--r-- | src/devices/cpu/alpha/alpha.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/devices/cpu/alpha/alpha.cpp b/src/devices/cpu/alpha/alpha.cpp index bbc32f087f8..62752d5f590 100644 --- a/src/devices/cpu/alpha/alpha.cpp +++ b/src/devices/cpu/alpha/alpha.cpp @@ -58,7 +58,7 @@ alpha_device::alpha_device(const machine_config &mconfig, device_type type, cons address_space_config("3", ENDIANNESS_LITTLE, 64, 32, 0) } , m_srom_oe_cb(*this) - , m_srom_data_cb(*this) + , m_srom_data_cb(*this, 0) , m_icount(0) { } @@ -85,9 +85,6 @@ void alpha_device::device_start() // floating point registers for (unsigned i = 0; i < 32; i++) state_add(i + 32, util::string_format("F%d", i).c_str(), m_f[i]); - - m_srom_oe_cb.resolve_safe(); - m_srom_data_cb.resolve_safe(0); } void alpha_device::device_reset() |