cpu,mem: missing override specifier
authorAndrea Mondelli <Andrea.Mondelli@ucf.edu>
Tue, 23 Apr 2019 17:36:19 +0000 (13:36 -0400)
committerAndrea Mondelli <Andrea.Mondelli@ucf.edu>
Wed, 24 Apr 2019 13:43:23 +0000 (13:43 +0000)
Change-Id: I731d3ef021596450ac307461f215760a148bb28a
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/18348
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/cpu/simple_thread.hh
src/mem/cache/mshr.hh
src/mem/cache/write_queue_entry.hh

index 46f142f6fd96f1874f4f770167da41ebcabebd6c..0d415dc161af8e4948a51fef1b5f988f8a54c997 100644 (file)
@@ -213,26 +213,30 @@ class SimpleThread : public ThreadState, public ThreadContext
     System *getSystemPtr() override { return system; }
 
     TheISA::Kernel::Statistics *
-    getKernelStats()
+    getKernelStats() override
     {
         return ThreadState::getKernelStats();
     }
 
-    PortProxy &getPhysProxy() { return ThreadState::getPhysProxy(); }
+    PortProxy &getPhysProxy() override { return ThreadState::getPhysProxy(); }
     FSTranslatingPortProxy &
-    getVirtProxy()
+    getVirtProxy() override
     {
         return ThreadState::getVirtProxy();
     }
 
-    void initMemProxies(ThreadContext *tc) { ThreadState::initMemProxies(tc); }
+    void initMemProxies(ThreadContext *tc) override
+    {
+        ThreadState::initMemProxies(tc);
+    }
+
     SETranslatingPortProxy &
-    getMemProxy()
+    getMemProxy() override
     {
         return ThreadState::getMemProxy();
     }
 
-    Process *getProcessPtr() { return ThreadState::getProcessPtr(); }
+    Process *getProcessPtr() override { return ThreadState::getProcessPtr(); }
     void setProcessPtr(Process *p) override { ThreadState::setProcessPtr(p); }
 
     Status status() const override { return _status; }
index 4b054894d6417e5a168dae2b164efca9d8ee427b..3e7b79ea0cd3c9331d35bf1461ae5e0e5b18bc24 100644 (file)
@@ -352,7 +352,7 @@ class MSHR : public QueueEntry, public Printable
         assert(inService); return postDowngrade;
     }
 
-    bool sendPacket(BaseCache &cache);
+    bool sendPacket(BaseCache &cache) override;
 
     bool allocOnFill() const {
         return targets.allocOnFill;
@@ -523,7 +523,7 @@ class MSHR : public QueueEntry, public Printable
      */
     void print(std::ostream &os,
                int verbosity = 0,
-               const std::string &prefix = "") const;
+               const std::string &prefix = "") const override;
     /**
      * A no-args wrapper of print(std::ostream...)  meant to be
      * invoked from DPRINTFs avoiding string overheads in fast mode
index 9aaac493c387ebc7e0ec993ce33fbea07ef0089b..907ef477512ba6651714ab4883f84ba494c9acb9 100644 (file)
@@ -92,7 +92,7 @@ class WriteQueueEntry : public QueueEntry, public Printable
     /** WriteQueueEntry list iterator. */
     typedef List::iterator Iterator;
 
-    bool sendPacket(BaseCache &cache);
+    bool sendPacket(BaseCache &cache) override;
 
   private:
 
@@ -171,7 +171,7 @@ class WriteQueueEntry : public QueueEntry, public Printable
      */
     void print(std::ostream &os,
                int verbosity = 0,
-               const std::string &prefix = "") const;
+               const std::string &prefix = "") const override;
     /**
      * A no-args wrapper of print(std::ostream...)  meant to be
      * invoked from DPRINTFs avoiding string overheads in fast mode