diff options
author | Ivan Vangelista <mesgnet@yahoo.it> | 2019-11-26 18:35:33 +0100 |
---|---|---|
committer | Ivan Vangelista <mesgnet@yahoo.it> | 2019-11-26 18:35:33 +0100 |
commit | b6b520712eb129db5f55960557503ce6e760b944 (patch) | |
tree | ff594f279ae7dd47feed74b7de09437cd801ac89 /src/devices | |
parent | 862103d3e3a38b556e515e6df4e92dfe33e5eda4 (diff) |
i960.cpp: initialized some stuff (nw)
Diffstat (limited to 'src/devices')
-rw-r--r-- | src/devices/cpu/i960/i960.cpp | 8 | ||||
-rw-r--r-- | src/devices/cpu/i960/i960.h | 8 |
2 files changed, 11 insertions, 5 deletions
diff --git a/src/devices/cpu/i960/i960.cpp b/src/devices/cpu/i960/i960.cpp index fe6d4dc9534..c78dd96aa28 100644 --- a/src/devices/cpu/i960/i960.cpp +++ b/src/devices/cpu/i960/i960.cpp @@ -17,10 +17,16 @@ DEFINE_DEVICE_TYPE(I960, i960_cpu_device, "i960kb", "Intel i960KB") i960_cpu_device::i960_cpu_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : cpu_device(mconfig, I960, tag, owner, clock) - , m_program_config("program", ENDIANNESS_LITTLE, 32, 32, 0) + , m_stalled(0), m_program_config("program", ENDIANNESS_LITTLE, 32, 32, 0) , m_rcache_pos(0), m_SAT(0), m_PRCB(0), m_PC(0), m_AC(0), m_IP(0), m_PIP(0), m_ICR(0), m_bursting(0), m_immediate_irq(0) , m_immediate_vector(0), m_immediate_pri(0), m_program(nullptr), m_cache(nullptr), m_icount(0) { + std::fill(std::begin(m_r), std::end(m_r), 0); + std::fill(std::begin(m_rcache_frame_addr), std::end(m_rcache_frame_addr), 0); + std::fill(std::begin(m_fp), std::end(m_fp), 0); + + for (int i = 0; i <I960_RCACHE_SIZE; i++) + std::fill(std::begin(m_rcache[i]), std::end(m_rcache[i]), 0); } diff --git a/src/devices/cpu/i960/i960.h b/src/devices/cpu/i960/i960.h index 5880c0aa484..a5592e0f96e 100644 --- a/src/devices/cpu/i960/i960.h +++ b/src/devices/cpu/i960/i960.h @@ -106,10 +106,10 @@ private: void burst_stall_save(uint32_t t1, uint32_t t2, int index, int size, bool iswriteop); struct { - uint32_t t1,t2; - int index,size; - bool burst_mode; - bool iswriteop; + uint32_t t1,t2 = 0; + int index,size = 0; + bool burst_mode = 0; + bool iswriteop = 0; }m_stall_state; bool m_stalled; |