summaryrefslogtreecommitdiff
path: root/src/dev
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/dev
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/dev')
-rw-r--r--src/dev/net/etherswitch.hh2
-rw-r--r--src/dev/x86/pc.hh2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/dev/net/etherswitch.hh b/src/dev/net/etherswitch.hh
index 69a3f40fd..760371777 100644
--- a/src/dev/net/etherswitch.hh
+++ b/src/dev/net/etherswitch.hh
@@ -60,7 +60,7 @@ class EtherSwitch : public EtherObject
return dynamic_cast<const Params*>(_params);
}
- EtherInt *getEthPort(const std::string &if_name, int idx);
+ EtherInt *getEthPort(const std::string &if_name, int idx) override;
protected:
/**
diff --git a/src/dev/x86/pc.hh b/src/dev/x86/pc.hh
index 6cc57cb5d..fc209a67d 100644
--- a/src/dev/x86/pc.hh
+++ b/src/dev/x86/pc.hh
@@ -57,7 +57,7 @@ class Pc : public Platform
/**
* Do platform initialization stuff
*/
- void init();
+ void init() override;
Pc(const Params *p);