memory: Map from the cpu's owner, not the root device, otherwise siblings of cpus coming from config fragments aren't happy. [O. Galibert]

This commit is contained in:
Olivier Galibert 2012-10-12 13:01:21 +00:00
parent af4133fd7f
commit 23e22e19f0

View File

@ -1783,7 +1783,7 @@ void address_space::prepare_map()
m_map = global_alloc(address_map(m_device, m_spacenum));
// merge in the submaps
m_map->uplift_submaps(machine(), m_device, machine().root_device(), endianness());
m_map->uplift_submaps(machine(), m_device, *m_device.owner(), endianness());
// extract global parameters specified by the map
m_unmap = (m_map->m_unmapval == 0) ? 0 : ~0;