summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Ivan Vangelista <mesgnet@yahoo.it>2019-12-15 18:21:53 +0100
committer GitHub <noreply@github.com>2019-12-15 18:21:53 +0100
commit92139629fae2ceb90caa92ef194fa6ff5c5f8304 (patch)
treefaf716737689cf600acdbe903e3e7af9b9abd7e3
parentb0612e2892d74189e57d0a5ca4542f116d0f11e5 (diff)
machine/vrender0.h: initialize stuff (nw)
-rw-r--r--src/devices/machine/vrender0.h36
1 files 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<uint8_t, 16> m_urxb_fifo; // receive FIFO
void update_serial_config();
@@ -126,24 +126,24 @@ private:
required_device <speaker_device> m_rspeaker;
required_device_array <vr0uart_device, 2> m_uart;
required_shared_ptr <uint32_t> 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<int Which> 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<int Which> 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