diff options
Diffstat (limited to 'src/mame/machine/abc1600mac.h')
-rw-r--r-- | src/mame/machine/abc1600mac.h | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/src/mame/machine/abc1600mac.h b/src/mame/machine/abc1600mac.h index da259d1fe6e..42f4c3e2a1c 100644 --- a/src/mame/machine/abc1600mac.h +++ b/src/mame/machine/abc1600mac.h @@ -23,18 +23,6 @@ #define ABC1600_MAC_TAG "mac" - -///************************************************************************* -// INTERFACE CONFIGURATION MACROS -///************************************************************************* - -#define MCFG_ABC1600_MAC_ADD(_cpu_tag, _program_map) \ - MCFG_DEVICE_ADD(ABC1600_MAC_TAG, ABC1600_MAC, 0) \ - MCFG_DEVICE_ADDRESS_MAP(AS_PROGRAM, _program_map) \ - downcast<abc1600_mac_device *>(device)->set_cpu_tag(_cpu_tag); - - - ///************************************************************************* // TYPE DEFINITIONS ///************************************************************************* @@ -47,7 +35,7 @@ class abc1600_mac_device : public device_t, public: abc1600_mac_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - void set_cpu_tag(const char *cpu_tag) { m_cpu_tag = cpu_tag; } + template <typename T> void set_cpu_tag(T &&tag) { m_cpu.set_tag(std::forward<T>(tag)); } virtual void map(address_map &map); @@ -122,8 +110,7 @@ private: required_device<watchdog_timer_device> m_watchdog; - const char *m_cpu_tag; - m68000_base_device *m_cpu; + required_device<m68000_base_device> m_cpu; int m_ifc2; uint8_t m_task; |