From 0d50979888c1653e9ceb856c6bffa3f5062adeb9 Mon Sep 17 00:00:00 2001 From: Andreas Hansson Date: Mon, 15 Feb 2016 03:40:32 -0500 Subject: 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. --- src/arch/sparc/system.hh | 2 +- src/arch/sparc/tlb.hh | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/arch') 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"); } -- cgit v1.2.3