summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2018-11-26 15:03:44 -0500
committer AJR <ajrhacker@users.noreply.github.com>2018-11-26 15:06:21 -0500
commit65a434df7587780faa9da9b8e388591600813f9f (patch)
tree6253d38def2081b90f0b9d9c57d6686eeee7757f
parent31292606d5254736a8cbb5921e1357cd99ea5599 (diff)
Revert "diemory: Still should be validating all configured address spaces, whether or not they have external maps (nw)"
At least on my build, MAME thinks maps are being configured for nonexistent AS_DATA spaces when they clearly aren't. This may be due to some subtle bug with device delegates. This reverts commit aa0d17757d9e5857bb99887841133045cc530655.
-rw-r--r--src/emu/dimemory.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/emu/dimemory.cpp b/src/emu/dimemory.cpp
index 77e7150f148..d95b650b8ea 100644
--- a/src/emu/dimemory.cpp
+++ b/src/emu/dimemory.cpp
@@ -94,8 +94,7 @@ void device_memory_interface::interface_config_complete()
void device_memory_interface::interface_validity_check(validity_checker &valid) const
{
// loop over all address spaces
- const int max_spaces = std::max(m_address_map.size(), m_address_config.size());
- for (int spacenum = 0; spacenum < max_spaces; ++spacenum)
+ for (int spacenum = 0; spacenum < int(m_address_map.size()); ++spacenum)
{
if (space_config(spacenum))
{