arch-gcn3,misc: Added missing overrides to gpu_thread.hh
authorBobby R. Bruce <bbruce@ucdavis.edu>
Sat, 14 Nov 2020 04:15:09 +0000 (20:15 -0800)
committerBobby R. Bruce <bbruce@ucdavis.edu>
Wed, 18 Nov 2020 18:50:11 +0000 (18:50 +0000)
Compiling GCN3 with clang will result in errors within this change.

Change-Id: I05fea6f84f988cb22505281fa24e72d615959f7a
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/37538
Maintainer: Bobby R. Bruce <bbruce@ucdavis.edu>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Matthew Poremba <matthew.poremba@amd.com>
src/cpu/testers/gpu_ruby_test/gpu_thread.hh

index 00a69bec613db01c5b8f0aff57f3f055f82c2298..1c9fedc24a01a2efd3636ffa966d1b86591adf1a 100644 (file)
@@ -90,8 +90,8 @@ class GpuThread : public ClockedObject
             : Event(CPU_Tick_Pri), thread(_thread), desc(_description)
         {}
         void setDesc(std::string _description) { desc = _description; }
-        void process() { thread->wakeup(); }
-        const std::string name() { return desc; }
+        void process() override { thread->wakeup(); }
+        const std::string name() const override { return desc; }
     };
 
     GpuThreadEvent threadEvent;
@@ -105,8 +105,13 @@ class GpuThread : public ClockedObject
         DeadlockCheckEvent(GpuThread* _thread)
             : Event(CPU_Tick_Pri), thread(_thread)
         {}
-        void process() { thread->checkDeadlock(); }
-        const std::string name() const { return "Tester deadlock check"; }
+        void process() override { thread->checkDeadlock(); }
+
+        const std::string
+        name() const override
+        {
+            return "Tester deadlock check";
+        }
     };
 
     DeadlockCheckEvent deadlockCheckEvent;