From 710ff0e99daea5aea28d4631c1b33913237ff057 Mon Sep 17 00:00:00 2001 From: "Bobby R. Bruce" Date: Fri, 13 Nov 2020 20:15:09 -0800 Subject: [PATCH] arch-gcn3,misc: Added missing overrides to gpu_thread.hh 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 Tested-by: kokoro Reviewed-by: Matthew Poremba --- src/cpu/testers/gpu_ruby_test/gpu_thread.hh | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/cpu/testers/gpu_ruby_test/gpu_thread.hh b/src/cpu/testers/gpu_ruby_test/gpu_thread.hh index 00a69bec6..1c9fedc24 100644 --- a/src/cpu/testers/gpu_ruby_test/gpu_thread.hh +++ b/src/cpu/testers/gpu_ruby_test/gpu_thread.hh @@ -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; -- 2.30.2