summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/video/msm6255.cpp
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2017-07-01 12:11:28 +0200
committer Olivier Galibert <galibert@pobox.com>2017-07-03 08:03:57 +0200
commitcbbbd07484c736eae2069b294ec666f231e64bff (patch)
treeb94a690f0ab10635eb6d11837425744208c7e8a4 /src/devices/video/msm6255.cpp
parentcb1930f6e6a6b460577f01207888eab402469e9f (diff)
dimemory: Lift the cap on the number of address spaces per device [O. Galibert]
Diffstat (limited to 'src/devices/video/msm6255.cpp')
-rw-r--r--src/devices/video/msm6255.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/devices/video/msm6255.cpp b/src/devices/video/msm6255.cpp
index d7ee5ce7903..25618a69b10 100644
--- a/src/devices/video/msm6255.cpp
+++ b/src/devices/video/msm6255.cpp
@@ -60,7 +60,7 @@ DEVICE_ADDRESS_MAP_START( map, 8, msm6255_device )
ADDRESS_MAP_END
// default address map
-static ADDRESS_MAP_START( msm6255, AS_0, 8, msm6255_device )
+static ADDRESS_MAP_START( msm6255, 0, 8, msm6255_device )
AM_RANGE(0x00000, 0xfffff) AM_RAM
ADDRESS_MAP_END
@@ -121,9 +121,11 @@ void msm6255_device::device_reset()
// any address spaces owned by this device
//-------------------------------------------------
-const address_space_config *msm6255_device::memory_space_config(address_spacenum spacenum) const
+std::vector<std::pair<int, const address_space_config *>> msm6255_device::memory_space_config() const
{
- return (spacenum == AS_0) ? &m_space_config : nullptr;
+ return std::vector<std::pair<int, const address_space_config *>> {
+ std::make_pair(0, &m_space_config)
+ };
}