diff options
author | 2019-12-14 08:09:07 +0100 | |
---|---|---|
committer | 2019-12-14 08:09:07 +0100 | |
commit | bd0649c8473c3e794987544b6288dbf4e635b6de (patch) | |
tree | 7f249fa1cc8b31b74e34573853089cdc5d3ef25f /src/devices/cpu/sh/sh2.cpp | |
parent | e4470c09df19dd20583f3554c6c4b54a853febeb (diff) |
cpu\sh2: initialize stuff (nw)
Diffstat (limited to 'src/devices/cpu/sh/sh2.cpp')
-rw-r--r-- | src/devices/cpu/sh/sh2.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/devices/cpu/sh/sh2.cpp b/src/devices/cpu/sh/sh2.cpp index eddf593b2db..bdc6e8ef164 100644 --- a/src/devices/cpu/sh/sh2.cpp +++ b/src/devices/cpu/sh/sh2.cpp @@ -269,11 +269,13 @@ sh2_device::sh2_device(const machine_config &mconfig, device_type type, const ch sh2a_device::sh2a_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : sh2_device(mconfig, SH2A, tag, owner, clock, CPU_TYPE_SH2, address_map_constructor(FUNC(sh2a_device::sh7021_map), this), 28) { + std::fill(std::begin(m_sh7021_regs), std::end(m_sh7021_regs), 0); } sh1_device::sh1_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : sh2_device(mconfig, SH1, tag, owner, clock, CPU_TYPE_SH1, address_map_constructor(FUNC(sh1_device::sh7032_map), this), 28) { + std::fill(std::begin(m_sh7032_regs), std::end(m_sh7032_regs), 0); } device_memory_interface::space_config_vector sh2_device::memory_space_config() const |