summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/memory.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/memory.c')
-rw-r--r--src/emu/memory.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/emu/memory.c b/src/emu/memory.c
index 96f2fe2eb3a..da2c9c18b87 100644
--- a/src/emu/memory.c
+++ b/src/emu/memory.c
@@ -1840,7 +1840,7 @@ void address_space::prepare_map()
{
VPRINTF(("Creating share '%s' of length 0x%X\n", fulltag.c_str(), entry->m_byteend + 1 - entry->m_bytestart));
memory_share *share = global_alloc(memory_share(m_map->m_databits, entry->m_byteend + 1 - entry->m_bytestart, endianness()));
- manager().m_sharelist.append(fulltag, *share);
+ manager().m_sharelist.append(fulltag.c_str(), *share);
}
}
@@ -1863,7 +1863,7 @@ void address_space::prepare_map()
entry->m_devbase.subtag(fulltag, entry->m_region);
// find the region
- memory_region *region = machine().root_device().memregion(fulltag);
+ memory_region *region = machine().root_device().memregion(fulltag.c_str());
if (region == NULL)
fatalerror("Error: device '%s' %s space memory map entry %X-%X references non-existant region \"%s\"\n", m_device.tag(), m_name, entry->m_addrstart, entry->m_addrend, entry->m_region);
@@ -2293,7 +2293,7 @@ void address_space::install_readwrite_port(offs_t addrstart, offs_t addrend, off
{
// find the port
astring fulltag;
- ioport_port *port = machine().root_device().ioport(device().siblingtag(fulltag, rtag));
+ ioport_port *port = machine().root_device().ioport(device().siblingtag(fulltag, rtag).c_str());
if (port == NULL)
throw emu_fatalerror("Attempted to map non-existent port '%s' for read in space %s of device '%s'\n", rtag, m_name, m_device.tag());
@@ -2305,7 +2305,7 @@ void address_space::install_readwrite_port(offs_t addrstart, offs_t addrend, off
{
// find the port
astring fulltag;
- ioport_port *port = machine().root_device().ioport(device().siblingtag(fulltag, wtag));
+ ioport_port *port = machine().root_device().ioport(device().siblingtag(fulltag, wtag).c_str());
if (port == NULL)
fatalerror("Attempted to map non-existent port '%s' for write in space %s of device '%s'\n", wtag, m_name, m_device.tag());
@@ -2335,7 +2335,7 @@ void address_space::install_bank_generic(offs_t addrstart, offs_t addrend, offs_
{
astring fulltag;
device().siblingtag(fulltag, rtag);
- memory_bank &bank = bank_find_or_allocate(fulltag, addrstart, addrend, addrmask, addrmirror, ROW_READ);
+ memory_bank &bank = bank_find_or_allocate(fulltag.c_str(), addrstart, addrend, addrmask, addrmirror, ROW_READ);
read().map_range(addrstart, addrend, addrmask, addrmirror, bank.index());
}
@@ -2344,7 +2344,7 @@ void address_space::install_bank_generic(offs_t addrstart, offs_t addrend, offs_
{
astring fulltag;
device().siblingtag(fulltag, wtag);
- memory_bank &bank = bank_find_or_allocate(fulltag, addrstart, addrend, addrmask, addrmirror, ROW_WRITE);
+ memory_bank &bank = bank_find_or_allocate(fulltag.c_str(), addrstart, addrend, addrmask, addrmirror, ROW_WRITE);
write().map_range(addrstart, addrend, addrmask, addrmirror, bank.index());
}
@@ -2681,7 +2681,7 @@ memory_bank &address_space::bank_find_or_allocate(const char *tag, offs_t addrst
membank = global_alloc(memory_bank(*this, banknum, bytestart, byteend, tag));
astring temptag;
if (tag == NULL)
- tag = temptag.format("anon_%p", membank);
+ tag = temptag.format("anon_%p", membank).c_str();
manager().m_banklist.append(tag, *membank);
}
@@ -3874,7 +3874,7 @@ memory_block::memory_block(address_space &space, offs_t bytestart, offs_t byteen
int bytes_per_element = space.data_width() / 8;
astring name;
name.printf("%08x-%08x", bytestart, byteend);
- space.machine().save().save_memory(NULL, "memory", space.device().tag(), space.spacenum(), name, m_data, bytes_per_element, (UINT32)(byteend + 1 - bytestart) / bytes_per_element);
+ space.machine().save().save_memory(NULL, "memory", space.device().tag(), space.spacenum(), name.c_str(), m_data, bytes_per_element, (UINT32)(byteend + 1 - bytestart) / bytes_per_element);
}
}
@@ -3921,7 +3921,7 @@ memory_bank::memory_bank(address_space &space, int index, offs_t bytestart, offs
}
if (!m_anonymous && space.machine().save().registration_allowed())
- space.machine().save().save_item(NULL, "memory", m_tag, 0, NAME(m_curentry));
+ space.machine().save().save_item(NULL, "memory", m_tag.c_str(), 0, NAME(m_curentry));
}