addrmap: Fix subtle bug with nonsubtle effects, also ensure initialization (nw)

This commit is contained in:
Olivier Galibert 2018-03-14 19:56:12 +01:00
parent 8e56666a88
commit a13478f416

View File

@ -73,6 +73,7 @@ address_map_entry::address_map_entry(device_t &device, address_map &map, offs_t
m_share(nullptr),
m_region(nullptr),
m_rgnoffs(0),
m_submap_device(nullptr),
m_memory(nullptr)
{
}
@ -449,7 +450,7 @@ address_map::address_map(const address_space &space, offs_t start, offs_t end, u
m_unmapval(space.unmap()),
m_globalmask(space.addrmask())
{
(*this)(start, end).m(&device, submap_delegate).umask64(unitmask).cswidth(cswidth);
(*this)(start, end).m(DEVICE_SELF, submap_delegate).umask64(unitmask).cswidth(cswidth);
}