From 5469e30f3c19e41cfef1e2021236e0203521aefa Mon Sep 17 00:00:00 2001 From: Ivan Vangelista Date: Sat, 4 Jul 2020 13:44:14 +0200 Subject: devices/cpu/h8/h8dma, devices/machine/generalplus_gpl16250soc, devices/machine/spg110_video: initialize some variables which were causing malfunctions in debug devnoclear builds (nw) --- src/devices/cpu/h8/h8_dma.cpp | 1 + src/devices/machine/generalplus_gpl16250soc.h | 1 + src/devices/machine/spg110_video.cpp | 3 +++ 3 files changed, 5 insertions(+) diff --git a/src/devices/cpu/h8/h8_dma.cpp b/src/devices/cpu/h8/h8_dma.cpp index c295b77f330..7687de7a68d 100644 --- a/src/devices/cpu/h8/h8_dma.cpp +++ b/src/devices/cpu/h8/h8_dma.cpp @@ -154,6 +154,7 @@ void h8_dma_channel_device::device_reset() mar[0] = mar[1] = 0; ioar[0] = ioar[1] = 0; etcr[0] = etcr[1] = 0; + dtcr[0] = dtcr[1] = 0; fae = sae = false; dta = dte = dtie = 0; } diff --git a/src/devices/machine/generalplus_gpl16250soc.h b/src/devices/machine/generalplus_gpl16250soc.h index 93c097e2d82..8df8e780f78 100644 --- a/src/devices/machine/generalplus_gpl16250soc.h +++ b/src/devices/machine/generalplus_gpl16250soc.h @@ -45,6 +45,7 @@ public: m_portd_out(*this), m_nand_read_cb(*this), m_csbase(0x20000), + m_cs_space(nullptr), m_romtype(0), m_space_read_cb(*this), m_space_write_cb(*this), diff --git a/src/devices/machine/spg110_video.cpp b/src/devices/machine/spg110_video.cpp index 93ad10ae0c0..a76fef3bb60 100644 --- a/src/devices/machine/spg110_video.cpp +++ b/src/devices/machine/spg110_video.cpp @@ -564,6 +564,9 @@ void spg110_video_device::device_reset() m_bg_scrolly = 0; m_2036_scroll = 0; + std::fill(std::begin(tmap0_regs), std::end(tmap0_regs), 0); + std::fill(std::begin(tmap1_regs), std::end(tmap1_regs), 0); + // is there actually an enable register here? m_video_irq_enable = 0xffff; m_video_irq_status = 0x0000; -- cgit v1.2.3