summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Ivan Vangelista <mesgnet@yahoo.it>2020-07-04 13:44:14 +0200
committer Ivan Vangelista <mesgnet@yahoo.it>2020-07-04 13:44:14 +0200
commit5469e30f3c19e41cfef1e2021236e0203521aefa (patch)
tree120e74631a83c01719da3cb8d08cc89d89f6e823
parent207fd27e8cf8030176b08f5f5e56e747284c3f2f (diff)
devices/cpu/h8/h8dma, devices/machine/generalplus_gpl16250soc, devices/machine/spg110_video: initialize some variables which were causing malfunctions in debug devnoclear builds (nw)
-rw-r--r--src/devices/cpu/h8/h8_dma.cpp1
-rw-r--r--src/devices/machine/generalplus_gpl16250soc.h1
-rw-r--r--src/devices/machine/spg110_video.cpp3
3 files changed, 5 insertions, 0 deletions
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;