apricot: Add support to install io space device maps to expansion bus

This commit is contained in:
Dirk Best 2019-02-23 11:36:56 +01:00
parent 2d3c2599a6
commit b1d6d76bdf

View File

@ -118,6 +118,14 @@ public:
void install_ram(offs_t addrstart, offs_t addrend, void *baseptr);
template<typename T> void install_io_device(offs_t addrstart, offs_t addrend, T &device, void (T::*map)(class address_map &map), uint64_t unitmask = ~u64(0))
{
m_io->install_device(addrstart, addrend, device, map, unitmask);
if (m_io_iop)
m_io_iop->install_device(addrstart, addrend, device, map, unitmask);
}
protected:
// device-level overrides
virtual void device_start() override;