summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/hd63450.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/hd63450.h')
-rw-r--r--src/devices/machine/hd63450.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/devices/machine/hd63450.h b/src/devices/machine/hd63450.h
index cf3220b2ba1..17fe924bc9d 100644
--- a/src/devices/machine/hd63450.h
+++ b/src/devices/machine/hd63450.h
@@ -40,6 +40,9 @@
#define MCFG_HD63450_DMA_WRITE_3_CB(_devcb) \
devcb = &downcast<hd63450_device &>(*device).set_dma_write_3_callback(DEVCB_##_devcb);
+#define MCFG_HD63450_CPU(_tag) \
+ downcast<hd63450_device &>(*device).set_cpu_tag(_tag);
+
#define MCFG_HD63450_CLOCKS(_clk1, _clk2, _clk3, _clk4) \
downcast<hd63450_device &>(*device).set_our_clocks(_clk1, _clk2, _clk3, _clk4);
@@ -49,13 +52,6 @@
class hd63450_device : public device_t
{
public:
- template <typename T>
- hd63450_device(const machine_config &mconfig, const char *tag, device_t *owner, T &&cpu_tag)
- : hd63450_device(mconfig, tag, owner, (uint32_t)0)
- {
- m_cpu.set_tag(std::forward<T>(cpu_tag));
- }
-
hd63450_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
template <class Object> devcb_base &set_dma_end_callback(Object &&cb) { return m_dma_end.set_callback(std::forward<Object>(cb)); }
@@ -69,6 +65,7 @@ public:
template <class Object> devcb_base &set_dma_write_2_callback(Object &&cb) { return m_dma_write_2.set_callback(std::forward<Object>(cb)); }
template <class Object> devcb_base &set_dma_write_3_callback(Object &&cb) { return m_dma_write_3.set_callback(std::forward<Object>(cb)); }
+ template <typename T> void set_cpu_tag(T &&cpu_tag) { m_cpu.set_tag(std::forward<T>(cpu_tag)); }
void set_our_clocks(const attotime &clk1, const attotime &clk2, const attotime &clk3, const attotime &clk4)
{
m_our_clock[0] = clk1;