diff options
author | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2019-06-30 20:13:51 +0200 |
---|---|---|
committer | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2019-06-30 20:13:51 +0200 |
commit | 2408ca900657fdb81f85092a0612aeb6217fbe0f (patch) | |
tree | 6d2ea3953704adf34d92fdfc25fc647957bd7471 /qtmips_machine/cache.h | |
parent | 9dc519887f61ae33ff82bb125fb69398503f91f6 (diff) | |
download | qtmips-2408ca900657fdb81f85092a0612aeb6217fbe0f.tar.gz qtmips-2408ca900657fdb81f85092a0612aeb6217fbe0f.tar.bz2 qtmips-2408ca900657fdb81f85092a0612aeb6217fbe0f.zip |
Use override to make newer versions of C++ compiler happy.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Diffstat (limited to 'qtmips_machine/cache.h')
-rw-r--r-- | qtmips_machine/cache.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/qtmips_machine/cache.h b/qtmips_machine/cache.h index 1c455f7..b45913f 100644 --- a/qtmips_machine/cache.h +++ b/qtmips_machine/cache.h @@ -50,12 +50,12 @@ public: unsigned memory_access_penalty_w = 1, unsigned memory_access_penalty_b = 0); ~Cache(); - bool wword(std::uint32_t address, std::uint32_t value); - std::uint32_t rword(std::uint32_t address, bool debug_access = false) const; + bool wword(std::uint32_t address, std::uint32_t value) override; + std::uint32_t rword(std::uint32_t address, bool debug_access = false) const override; virtual std::uint32_t get_change_counter() const override; void flush(); // flush cache - void sync(); // Same as flush + void sync() override; // Same as flush unsigned hit() const; // Number of recorded hits unsigned miss() const; // Number of recorded misses @@ -68,7 +68,7 @@ public: void reset(); // Reset whole state of cache const MachineConfigCache &config() const; - enum LocationStatus location_status(std::uint32_t address) const; + enum LocationStatus location_status(std::uint32_t address) const override; signals: void hit_update(unsigned) const; |