summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorAndreas Hansson <andreas.hansson@arm.com>2016-02-15 03:40:32 -0500
committerAndreas Hansson <andreas.hansson@arm.com>2016-02-15 03:40:32 -0500
commit0d50979888c1653e9ceb856c6bffa3f5062adeb9 (patch)
treedeb050fe28786751a76cdfaef40f4f79aaa72ba2 /src/arch
parent407233f5d80d04e27234eb70750a7f6ee13acd4f (diff)
downloadgem5-0d50979888c1653e9ceb856c6bffa3f5062adeb9.tar.xz
misc: Add missing overrides to appease clang
Since the last round of fixes a few new issues have snuck in. We should consider switching the regression runs to clang.
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/sparc/system.hh2
-rw-r--r--src/arch/sparc/tlb.hh6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/arch/sparc/system.hh b/src/arch/sparc/system.hh
index 68a192cb9..d4b61bd95 100644
--- a/src/arch/sparc/system.hh
+++ b/src/arch/sparc/system.hh
@@ -48,7 +48,7 @@ class SparcSystem : public System
SparcSystem(Params *p);
~SparcSystem();
- virtual void initState();
+ void initState() override;
/**
* Serialization stuff
diff --git a/src/arch/sparc/tlb.hh b/src/arch/sparc/tlb.hh
index cd4634ab8..65b6aff72 100644
--- a/src/arch/sparc/tlb.hh
+++ b/src/arch/sparc/tlb.hh
@@ -115,7 +115,7 @@ class TLB : public BaseTLB
bool update_used = true);
/** Remove all entries from the TLB */
- void flushAll();
+ void flushAll() override;
protected:
/** Insert a PTE into the TLB. */
@@ -153,10 +153,10 @@ class TLB : public BaseTLB
typedef SparcTLBParams Params;
TLB(const Params *p);
- void takeOverFrom(BaseTLB *otlb) {}
+ void takeOverFrom(BaseTLB *otlb) override {}
void
- demapPage(Addr vaddr, uint64_t asn)
+ demapPage(Addr vaddr, uint64_t asn) override
{
panic("demapPage(Addr) is not implemented.\n");
}