summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/machine/nvram.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/machine/nvram.c')
-rw-r--r--src/emu/machine/nvram.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/machine/nvram.c b/src/emu/machine/nvram.c
index c7a3fc7152d..7671f316fb7 100644
--- a/src/emu/machine/nvram.c
+++ b/src/emu/machine/nvram.c
@@ -179,7 +179,7 @@ void nvram_device::nvram_default()
{
UINT8 *nvram = reinterpret_cast<UINT8 *>(m_base);
for (int index = 0; index < m_length; index++)
- nvram[index] = m_machine.rand();
+ nvram[index] = machine().rand();
break;
}
@@ -231,7 +231,7 @@ void nvram_device::determine_final_base()
// find our shared pointer with the target RAM
if (m_base == NULL)
{
- m_base = memory_get_shared(m_machine, tag(), m_length);
+ m_base = memory_get_shared(machine(), tag(), m_length);
if (m_base == NULL)
throw emu_fatalerror("NVRAM device '%s' has no corresponding AM_SHARE region", tag());
}