aboutsummaryrefslogtreecommitdiff
path: root/qtmips_machine
diff options
context:
space:
mode:
authorPavel Pisa <pisa@cmp.felk.cvut.cz>2019-03-12 14:51:51 +0100
committerPavel Pisa <pisa@cmp.felk.cvut.cz>2019-03-12 14:51:51 +0100
commit1b054d46d25b3db7ccb9244aa169de34b619cd99 (patch)
tree67def146d9c2e3797ed843f4ab7545839855709d /qtmips_machine
parent93eb395b25d29a0c5f766f249ad592182ce64639 (diff)
downloadqtmips-1b054d46d25b3db7ccb9244aa169de34b619cd99.tar.gz
qtmips-1b054d46d25b3db7ccb9244aa169de34b619cd99.tar.bz2
qtmips-1b054d46d25b3db7ccb9244aa169de34b619cd99.zip
Correct use of uninitialized dt_d.num_rd and delete reported by valgrind.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Diffstat (limited to 'qtmips_machine')
-rw-r--r--qtmips_machine/core.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/qtmips_machine/core.cpp b/qtmips_machine/core.cpp
index 2d52203..45b08ec 100644
--- a/qtmips_machine/core.cpp
+++ b/qtmips_machine/core.cpp
@@ -621,6 +621,7 @@ void Core::dtDecodeInit(struct dtDecode &dt) {
dt.memctl = AC_NONE;
dt.num_rs = 0;
dt.num_rt = 0;
+ dt.num_rd = 0;
dt.val_rs = 0;
dt.val_rt = 0;
dt.rwrite = 0;