aboutsummaryrefslogtreecommitdiff
path: root/qtmips_machine/cache.h
diff options
context:
space:
mode:
authorPavel Pisa <pisa@cmp.felk.cvut.cz>2019-02-06 20:03:57 +0100
committerPavel Pisa <pisa@cmp.felk.cvut.cz>2019-02-06 20:03:57 +0100
commit9634200c1041eca1c7ac0ce25d79bb8d961530f6 (patch)
tree4e533a614caeda557d68e07754a5f97de55aa50e /qtmips_machine/cache.h
parent16a9ee3b5ef4cbeb3a43bb0b4e243c655e6da761 (diff)
downloadqtmips-9634200c1041eca1c7ac0ce25d79bb8d961530f6.tar.gz
qtmips-9634200c1041eca1c7ac0ce25d79bb8d961530f6.tar.bz2
qtmips-9634200c1041eca1c7ac0ce25d79bb8d961530f6.zip
Resolve some memory leaks found by Valgrind.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Diffstat (limited to 'qtmips_machine/cache.h')
-rw-r--r--qtmips_machine/cache.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/qtmips_machine/cache.h b/qtmips_machine/cache.h
index bb089fe..d4df317 100644
--- a/qtmips_machine/cache.h
+++ b/qtmips_machine/cache.h
@@ -47,6 +47,7 @@ class Cache : public MemoryAccess {
Q_OBJECT
public:
Cache(MemoryAccess *m, const MachineConfigCache *c, unsigned memory_access_penalty_r = 1, unsigned memory_access_penalty_w = 1);
+ ~Cache();
bool wword(std::uint32_t address, std::uint32_t value);
std::uint32_t rword(std::uint32_t address) const;