diff options
-rw-r--r-- | qtmips_gui/cacheview.cpp | 2 | ||||
-rw-r--r-- | qtmips_machine/core.cpp | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/qtmips_gui/cacheview.cpp b/qtmips_gui/cacheview.cpp index 09f3df7..b246102 100644 --- a/qtmips_gui/cacheview.cpp +++ b/qtmips_gui/cacheview.cpp @@ -217,7 +217,7 @@ CacheViewBlock::~CacheViewBlock() { delete[] tag; for (unsigned y = 0; y < rows; y++) delete[] data[y]; - delete data; + delete[] data; } QRectF CacheViewBlock::boundingRect() const { 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; |