diff options
author | 2014-10-02 13:52:56 +0000 | |
---|---|---|
committer | 2014-10-02 13:52:56 +0000 | |
commit | dfb8160daf005f9696fcebd6bc1e3374bb215126 (patch) | |
tree | f81a1beb49c86c451ac36d465ef15d595a7189b2 /src/emu/bus/amiga | |
parent | a461b4e1dc56515b5ad751fefef5999ce0a2a6ad (diff) |
Amiga: Fix expansion slot device initialization
Diffstat (limited to 'src/emu/bus/amiga')
-rw-r--r-- | src/emu/bus/amiga/zorro/zorro.c | 11 | ||||
-rw-r--r-- | src/emu/bus/amiga/zorro/zorro.h | 5 |
2 files changed, 13 insertions, 3 deletions
diff --git a/src/emu/bus/amiga/zorro/zorro.c b/src/emu/bus/amiga/zorro/zorro.c index c21c0ae61b8..052893bed8c 100644 --- a/src/emu/bus/amiga/zorro/zorro.c +++ b/src/emu/bus/amiga/zorro/zorro.c @@ -150,6 +150,17 @@ void exp_slot_device::device_start() } //------------------------------------------------- +// device_reset - device-specific reset +//------------------------------------------------- + +void exp_slot_device::device_reset() +{ + // if we have a device, start the autoconfig chain + if (m_dev) + m_dev->cfgin_w(0); +} + +//------------------------------------------------- // add_card - add new card to our bus //------------------------------------------------- diff --git a/src/emu/bus/amiga/zorro/zorro.h b/src/emu/bus/amiga/zorro/zorro.h index ab2ce07ce32..3119221e7cb 100644 --- a/src/emu/bus/amiga/zorro/zorro.h +++ b/src/emu/bus/amiga/zorro/zorro.h @@ -318,6 +318,7 @@ public: protected: // device-level overrides virtual void device_start(); + virtual void device_reset(); private: devcb_write8 m_ipl_handler; @@ -348,9 +349,6 @@ public: template<class _Object> static devcb_base &set_eint7_handler(device_t &device, _Object object) { return downcast<zorro2_device &>(device).m_eint7_handler.set_callback(object); } - // device-level overrides - virtual void device_reset(); - // the zorro2 bus supports multiple cards virtual void add_card(device_zorro_card_interface *card); @@ -368,6 +366,7 @@ public: protected: // device-level overrides virtual void device_start(); + virtual void device_reset(); private: devcb_write_line m_eint1_handler; |