diff options
Diffstat (limited to 'src/devices/machine/sega_scu.h')
-rw-r--r-- | src/devices/machine/sega_scu.h | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/devices/machine/sega_scu.h b/src/devices/machine/sega_scu.h index 91de1f0c659..58751a2405f 100644 --- a/src/devices/machine/sega_scu.h +++ b/src/devices/machine/sega_scu.h @@ -32,14 +32,6 @@ //************************************************************************** -// INTERFACE CONFIGURATION MACROS -//************************************************************************** - -#define MCFG_SEGA_SCU_ADD(tag) \ - MCFG_DEVICE_ADD((tag), SEGA_SCU, (0)) - - -//************************************************************************** // TYPE DEFINITIONS //************************************************************************** @@ -62,7 +54,7 @@ public: DECLARE_WRITE_LINE_MEMBER(sound_req_w); DECLARE_WRITE_LINE_MEMBER(smpc_irq_w); - void set_hostcpu(const char *cputag) { m_hostcpu_tag = cputag; } + template <typename T> void set_hostcpu(T &&tag) { m_hostcpu.set_tag(std::forward<T>(tag)); } protected: // device-level overrides @@ -91,8 +83,7 @@ private: bool m_t1md; bool m_tenb; - const char *m_hostcpu_tag; - sh2_device *m_hostcpu; + required_device<sh2_device> m_hostcpu; address_space *m_hostspace; void test_pending_irqs(); |