summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/3dom2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/3dom2.cpp')
-rw-r--r--src/mame/machine/3dom2.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/machine/3dom2.cpp b/src/mame/machine/3dom2.cpp
index 7da659deefa..4e3927f72f5 100644
--- a/src/mame/machine/3dom2.cpp
+++ b/src/mame/machine/3dom2.cpp
@@ -241,7 +241,7 @@ void m2_bda_device::device_start()
// Allocate RAM
uint32_t ram_size = (m_rambank_size[0] + m_rambank_size[1]) * 1024 * 1024;
- m_ram = auto_alloc_array(machine(), uint32_t, ram_size / sizeof(uint32_t));
+ m_ram = std::make_unique<uint32_t[]>(ram_size / sizeof(uint32_t));
m_ram_mask = ram_size - 1;
// Install RAM and handlers into the CPU address spaces
@@ -463,7 +463,7 @@ void m2_bda_device::write_bus32(offs_t offset, uint32_t data)
void m2_bda_device::configure_ppc_address_map(address_space &space)
{
// Install shared RAM
- space.install_ram(RAM_BASE, RAM_BASE + m_ram_mask, m_ram);
+ space.install_ram(RAM_BASE, RAM_BASE + m_ram_mask, m_ram.get());
// Install TE texture RAM window
space.install_ram(TE_TRAM_BASE, TE_TRAM_BASE + TE_TRAM_MASK, m_te->tram_ptr());