summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/h8/h8_dtc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/h8/h8_dtc.h')
-rw-r--r--src/devices/cpu/h8/h8_dtc.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/devices/cpu/h8/h8_dtc.h b/src/devices/cpu/h8/h8_dtc.h
index f78478e18ab..f3e33795190 100644
--- a/src/devices/cpu/h8/h8_dtc.h
+++ b/src/devices/cpu/h8/h8_dtc.h
@@ -17,10 +17,6 @@
#include <list>
-#define MCFG_H8_DTC_ADD( _tag, intc, irq ) \
- MCFG_DEVICE_ADD( _tag, H8_DTC, 0 ) \
- downcast<h8_dtc_device *>(device)->set_info(intc, irq);
-
struct h8_dtc_state {
uint32_t base, sra, dar, cr;
int32_t incs, incd;
@@ -34,6 +30,11 @@ public:
enum { DTC_CHAINED = 1000 };
h8_dtc_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+ h8_dtc_device(const machine_config &mconfig, const char *tag, device_t *owner, const char *intc, int irq)
+ : h8_dtc_device(mconfig, tag, owner, 0)
+ {
+ set_info(intc, irq);
+ }
void set_info(const char *intc, int irq);
DECLARE_READ8_MEMBER(dtcer_r);