diff options
author | Vas Crabb <vas@vastheman.com> | 2018-04-03 03:42:59 +1000 |
---|---|---|
committer | Vas Crabb <vas@vastheman.com> | 2018-04-03 03:44:14 +1000 |
commit | 17043f615a86e9b8d5ae648b1cc0ebb340723487 (patch) | |
tree | 6d9aabb1919ba08e4c7014a15df15498b6a4f620 | |
parent | 5424d500b5ca15d86a47e8b0b9babac1f9ba99d9 (diff) |
restore RAM default fill (nw)
-rw-r--r-- | src/devices/cpu/powerpc/ppccom.h | 6 | ||||
-rw-r--r-- | src/devices/machine/ram.cpp | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/devices/cpu/powerpc/ppccom.h b/src/devices/cpu/powerpc/ppccom.h index 97c0661afac..3492ce19b9d 100644 --- a/src/devices/cpu/powerpc/ppccom.h +++ b/src/devices/cpu/powerpc/ppccom.h @@ -7,8 +7,8 @@ Common PowerPC definitions and functions ***************************************************************************/ -#ifndef MAME_CPU_POWERPPC_PPCCOM_H -#define MAME_CPU_POWERPPC_PPCCOM_H +#ifndef MAME_CPU_POWERPC_PPCCOM_H +#define MAME_CPU_POWERPC_PPCCOM_H #pragma once @@ -475,4 +475,4 @@ enum extern offs_t ppc_dasm_one(std::ostream &stream, uint32_t pc, uint32_t op); -#endif // MAME_CPU_POWERPPC_PPCCOM_H +#endif // MAME_CPU_POWERPC_PPCCOM_H diff --git a/src/devices/machine/ram.cpp b/src/devices/machine/ram.cpp index 6aca1ceeff8..7ae8b6d8682 100644 --- a/src/devices/machine/ram.cpp +++ b/src/devices/machine/ram.cpp @@ -163,7 +163,7 @@ void ram_device::device_start() // allocate space for the ram m_pointer = std::make_unique<u8 []>(m_size); - std::fill_n(m_pointer.get(), m_size, 0); + std::fill_n(m_pointer.get(), m_size, m_default_value); // register for state saving save_item(NAME(m_size)); |