diff options
author | 2022-05-16 21:12:28 +0200 | |
---|---|---|
committer | 2022-05-17 05:12:28 +1000 | |
commit | 6d595718f55e040a07aec8ca2bc70eeace038636 (patch) | |
tree | d42285c6abdb2565576f92bd7694ffecc3068a05 /src/devices/bus/rc2014/cf.cpp | |
parent | e9ff2dd85a3513edb142b0ed6df64eb6eaebb148 (diff) |
bus/rc2014 code review fixes (#9768)
* Unmap I/O space on bus reset and install I/O on card reset.
* Cleaned up code.
Diffstat (limited to 'src/devices/bus/rc2014/cf.cpp')
-rw-r--r-- | src/devices/bus/rc2014/cf.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/devices/bus/rc2014/cf.cpp b/src/devices/bus/rc2014/cf.cpp index fa551970505..c30da3f429e 100644 --- a/src/devices/bus/rc2014/cf.cpp +++ b/src/devices/bus/rc2014/cf.cpp @@ -26,6 +26,7 @@ public: protected: // device-level overrides virtual void device_start() override; + virtual void device_reset() override; virtual void device_add_mconfig(machine_config &config) override; DECLARE_WRITE_LINE_MEMBER( tx_w ) { m_bus->tx_w(state); } @@ -45,6 +46,10 @@ compact_flash_device::compact_flash_device(const machine_config &mconfig, const void compact_flash_device::device_start() { +} + +void compact_flash_device::device_reset() +{ // A15-A8 and A7 not connected m_bus->installer(AS_IO)->install_readwrite_handler(0x10, 0x17, 0, 0xff80, 0, read8sm_delegate(*this, FUNC(compact_flash_device::ide_cs0_r)), write8sm_delegate(*this, FUNC(compact_flash_device::ide_cs0_w))); } |