diff options
Diffstat (limited to 'src/emu/addrmap.cpp')
-rw-r--r-- | src/emu/addrmap.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/emu/addrmap.cpp b/src/emu/addrmap.cpp index 31fabbea1a5..5b12f139026 100644 --- a/src/emu/addrmap.cpp +++ b/src/emu/addrmap.cpp @@ -665,6 +665,10 @@ void address_map::map_validity_check(validity_checker &valid, address_spacenum s // if this entry references a memory region, validate it if (entry.m_region != nullptr && entry.m_share == nullptr) { + // address map entries that reference regions but are NOPs are pointless + if (entry.m_read.m_type == AMH_NONE && entry.m_write.m_type == AMH_NONE) + osd_printf_error("%s space references memory region %s, but is AM_NOP\n", spaceconfig.m_name, entry.m_region); + // make sure we can resolve the full path to the region bool found = false; std::string entry_region = entry.m_devbase.subtag(entry.m_region); |