From 92139629fae2ceb90caa92ef194fa6ff5c5f8304 Mon Sep 17 00:00:00 2001 From: Ivan Vangelista Date: Sun, 15 Dec 2019 18:21:53 +0100 Subject: machine/vrender0.h: initialize stuff (nw) --- src/devices/machine/vrender0.h | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/src/devices/machine/vrender0.h b/src/devices/machine/vrender0.h index 3efb859938b..8947f6f1a95 100644 --- a/src/devices/machine/vrender0.h +++ b/src/devices/machine/vrender0.h @@ -67,9 +67,9 @@ private: DECLARE_READ32_MEMBER( receive_buffer_r ); TIMER_CALLBACK_MEMBER( break_timer_cb ); - uint32_t m_ucon; // control - uint32_t m_ubdr; // baud rate - uint32_t m_ustat; // status + uint32_t m_ucon = 0; // control + uint32_t m_ubdr = 0; // baud rate + uint32_t m_ustat = 0; // status util::fifo m_urxb_fifo; // receive FIFO void update_serial_config(); @@ -126,24 +126,24 @@ private: required_device m_rspeaker; required_device_array m_uart; required_shared_ptr m_crtcregs; - uint16_t *m_textureram; - uint16_t *m_frameram; + uint16_t *m_textureram = nullptr; + uint16_t *m_frameram = nullptr; - address_space *m_host_space; - uint32_t m_ext_vclk; + address_space *m_host_space = nullptr; + uint32_t m_ext_vclk = 0; devcb_write_line write_tx[2]; // INTC - uint32_t m_inten; + uint32_t m_inten = 0; DECLARE_READ32_MEMBER(inten_r); DECLARE_WRITE32_MEMBER(inten_w); DECLARE_READ32_MEMBER(intvec_r); DECLARE_WRITE32_MEMBER(intvec_w); - uint8_t m_IntHigh; - uint32_t m_intst; + uint8_t m_IntHigh = 0; + uint32_t m_intst = 0; DECLARE_READ32_MEMBER(intst_r); DECLARE_WRITE32_MEMBER(intst_w); @@ -154,9 +154,9 @@ private: template DECLARE_READ16_MEMBER(tmcnt_r); TIMER_CALLBACK_MEMBER(Timercb); - uint32_t m_timer_control[4]; - uint16_t m_timer_count[4]; - emu_timer *m_Timer[4]; + uint32_t m_timer_control[4] = { 0, 0, 0, 0 }; + uint16_t m_timer_count[4] = { 0, 0, 0, 0 }; + emu_timer *m_Timer[4] = { nullptr, nullptr, nullptr, nullptr }; void TimerStart(int which); // DMAC @@ -170,10 +170,10 @@ private: template DECLARE_WRITE32_MEMBER(dmada_w); inline int dma_setup_hold(uint8_t setting, uint8_t bitmask); struct { - uint32_t src; - uint32_t dst; - uint32_t size; - uint32_t ctrl; + uint32_t src = 0; + uint32_t dst = 0; + uint32_t size = 0; + uint32_t ctrl = 0; }m_dma[2]; // CRTC @@ -196,7 +196,7 @@ private: // Hacks #ifdef IDLE_LOOP_SPEEDUP - uint8_t m_FlipCntRead; + uint8_t m_FlipCntRead = 0; DECLARE_WRITE_LINE_MEMBER(idle_skip_resume_w); DECLARE_WRITE_LINE_MEMBER(idle_skip_speedup_w); #endif -- cgit v1.2.3