diff options
author | Andrea Mondelli <Andrea.Mondelli@ucf.edu> | 2019-03-19 13:12:58 -0400 |
---|---|---|
committer | Andrea Mondelli <Andrea.Mondelli@ucf.edu> | 2019-03-23 00:05:33 +0000 |
commit | 4effe34f94b599add133357473e1b120b54719ab (patch) | |
tree | 6efc0c7ab1636384d31ff9d8a79b55179fe39050 /src/mem | |
parent | 759795a6b9e6e75c1e671457ef91b6329a692b18 (diff) | |
download | gem5-4effe34f94b599add133357473e1b120b54719ab.tar.xz |
misc: missing override specifier
Missing specifier of overridden virtual function
declared in sim_object.hh
Removed redundant "virtual" keyword
Change-Id: I42aa3349b537c9e62607bce20cf1b3aabdb99bf2
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/17468
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/mem')
-rw-r--r-- | src/mem/addr_mapper.hh | 2 | ||||
-rw-r--r-- | src/mem/bridge.hh | 2 | ||||
-rw-r--r-- | src/mem/external_master.hh | 2 | ||||
-rw-r--r-- | src/mem/external_slave.hh | 2 | ||||
-rw-r--r-- | src/mem/mem_checker_monitor.hh | 2 | ||||
-rw-r--r-- | src/mem/ruby/network/MessageBuffer.hh | 2 | ||||
-rw-r--r-- | src/mem/ruby/network/Network.hh | 2 | ||||
-rw-r--r-- | src/mem/xbar.hh | 4 |
8 files changed, 9 insertions, 9 deletions
diff --git a/src/mem/addr_mapper.hh b/src/mem/addr_mapper.hh index 6b47cfcb8..aaefdedc3 100644 --- a/src/mem/addr_mapper.hh +++ b/src/mem/addr_mapper.hh @@ -65,7 +65,7 @@ class AddrMapper : public MemObject Port &getPort(const std::string &if_name, PortID idx=InvalidPortID) override; - virtual void init(); + void init() override; protected: diff --git a/src/mem/bridge.hh b/src/mem/bridge.hh index 906640355..b3fb90d93 100644 --- a/src/mem/bridge.hh +++ b/src/mem/bridge.hh @@ -319,7 +319,7 @@ class Bridge : public MemObject Port &getPort(const std::string &if_name, PortID idx=InvalidPortID) override; - virtual void init(); + void init() override; typedef BridgeParams Params; diff --git a/src/mem/external_master.hh b/src/mem/external_master.hh index 42ac67c03..f105054b4 100644 --- a/src/mem/external_master.hh +++ b/src/mem/external_master.hh @@ -129,7 +129,7 @@ class ExternalMaster : public MemObject static void registerHandler(const std::string &handler_name, Handler *handler); - void init(); + void init() override; const MasterID masterId; }; diff --git a/src/mem/external_slave.hh b/src/mem/external_slave.hh index 7290d6339..cfe89b98a 100644 --- a/src/mem/external_slave.hh +++ b/src/mem/external_slave.hh @@ -135,7 +135,7 @@ class ExternalSlave : public MemObject static void registerHandler(const std::string &handler_name, Handler *handler); - void init(); + void init() override; }; diff --git a/src/mem/mem_checker_monitor.hh b/src/mem/mem_checker_monitor.hh index 0564a8178..ba150493f 100644 --- a/src/mem/mem_checker_monitor.hh +++ b/src/mem/mem_checker_monitor.hh @@ -73,7 +73,7 @@ class MemCheckerMonitor : public MemObject Port &getPort(const std::string &if_name, PortID idx=InvalidPortID) override; - virtual void init(); + void init() override; private: diff --git a/src/mem/ruby/network/MessageBuffer.hh b/src/mem/ruby/network/MessageBuffer.hh index 4e85ac413..05821d5ac 100644 --- a/src/mem/ruby/network/MessageBuffer.hh +++ b/src/mem/ruby/network/MessageBuffer.hh @@ -128,7 +128,7 @@ class MessageBuffer : public SimObject return RubyDummyPort::instance(); } - void regStats(); + void regStats() override; // Function for figuring out if any of the messages in the buffer need // to be updated with the data from the packet. diff --git a/src/mem/ruby/network/Network.hh b/src/mem/ruby/network/Network.hh index 4e9791824..0830187c8 100644 --- a/src/mem/ruby/network/Network.hh +++ b/src/mem/ruby/network/Network.hh @@ -82,7 +82,7 @@ class Network : public ClockedObject { return dynamic_cast<const Params *>(_params); } virtual ~Network(); - virtual void init(); + void init() override; static uint32_t getNumberOfVirtualNetworks() { return m_virtual_networks; } int getNumNodes() const { return m_nodes; } diff --git a/src/mem/xbar.hh b/src/mem/xbar.hh index 0745ea5ac..674515001 100644 --- a/src/mem/xbar.hh +++ b/src/mem/xbar.hh @@ -410,13 +410,13 @@ class BaseXBar : public MemObject virtual ~BaseXBar(); - virtual void init(); + void init() override; /** A function used to return the port associated with this object. */ Port &getPort(const std::string &if_name, PortID idx=InvalidPortID) override; - virtual void regStats(); + void regStats() override; }; |