summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2018-03-14 19:56:12 +0100
committer Olivier Galibert <galibert@pobox.com>2018-03-14 19:56:26 +0100
commita13478f416991d651a3a1d387bb191311a0c045d (patch)
treeda9b5789fb2028e7b03f78b7bb6002f877715f5d
parent8e56666a88d5bdc0403c6ff0342327d096a87625 (diff)
addrmap: Fix subtle bug with nonsubtle effects, also ensure initialization (nw)
-rw-r--r--src/emu/addrmap.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/emu/addrmap.cpp b/src/emu/addrmap.cpp
index 844633feb4c..794d6e895ec 100644
--- a/src/emu/addrmap.cpp
+++ b/src/emu/addrmap.cpp
@@ -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);
}