summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatarGravatar Oliver Stöneberg <firewave@users.noreply.github.com>2013-02-10 19:10:42 +0000
committerGravatarGravatar Oliver Stöneberg <firewave@users.noreply.github.com>2013-02-10 19:10:42 +0000
commit6b72c6d3de107cfd5ffb8317cef84e3c73d4a99b (patch) (github)
treea09d59fc8bf891b3712bd41e99baad1fea4bc656
parentb8380495a6ba1eec01b8fdbc34c5231bdb2be95d (diff)
downloadmame-6b72c6d3de107cfd5ffb8317cef84e3c73d4a99b.tar.bz2
mame-6b72c6d3de107cfd5ffb8317cef84e3c73d4a99b.zip
fixed uninitialized memory in src/emu/cpu/es5510/es5510.c (nw)
-rw-r--r--src/emu/cpu/es5510/es5510.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/emu/cpu/es5510/es5510.c b/src/emu/cpu/es5510/es5510.c
index 76e15587f28..72705b188cd 100644
--- a/src/emu/cpu/es5510/es5510.c
+++ b/src/emu/cpu/es5510/es5510.c
@@ -476,6 +476,9 @@ void es5510_device::device_reset() {
instr_latch = UINT64(0);
ram_sel = 0;
host_control = 0;
+ memset(&ram, 0, sizeof(ram_t));
+ memset(&ram_p, 0, sizeof(ram_t));
+ memset(&ram_pp, 0, sizeof(ram_t));
}
const address_space_config *es5510_device::memory_space_config(address_spacenum spacenum) const {