From: Bobby R. Bruce Date: Sat, 14 Nov 2020 04:15:09 +0000 (-0800) Subject: arch-gcn3,misc: Added missing overrides to gpu_thread.hh X-Git-Tag: develop-gem5-snapshot~453 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=710ff0e99daea5aea28d4631c1b33913237ff057;p=gem5.git 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 --- 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;