From 8602aea4e5edd0cb455fca03237e430babe0b6f2 Mon Sep 17 00:00:00 2001 From: Tony Gutierrez Date: Mon, 27 Feb 2017 13:18:51 -0500 Subject: [PATCH] gpu-compute: remove unnecessary member from class The clang compiler complains that the wavefront member in the GpuISA class is unused. This changeset removes the member, because it does not appear serve a purpose. --- src/arch/hsail/gpu_isa.hh | 7 +------ src/gpu-compute/wavefront.cc | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/arch/hsail/gpu_isa.hh b/src/arch/hsail/gpu_isa.hh index caee776f1..831ad6ed5 100644 --- a/src/arch/hsail/gpu_isa.hh +++ b/src/arch/hsail/gpu_isa.hh @@ -42,8 +42,6 @@ #include "base/misc.hh" #include "gpu-compute/misc.hh" -class Wavefront; - namespace HsailISA { typedef uint64_t MiscReg; @@ -51,7 +49,7 @@ namespace HsailISA class GPUISA { public: - GPUISA(Wavefront &wf) : wavefront(wf) + GPUISA() { } @@ -74,9 +72,6 @@ namespace HsailISA { return old_pc + sizeof(RawMachInst); } - - private: - Wavefront &wavefront; }; } diff --git a/src/gpu-compute/wavefront.cc b/src/gpu-compute/wavefront.cc index cce76044f..de36dd54f 100644 --- a/src/gpu-compute/wavefront.cc +++ b/src/gpu-compute/wavefront.cc @@ -49,7 +49,7 @@ WavefrontParams::create() } Wavefront::Wavefront(const Params *p) - : SimObject(p), callArgMem(nullptr), _gpuISA(*this) + : SimObject(p), callArgMem(nullptr), _gpuISA() { lastTrace = 0; simdId = p->simdId; -- 2.30.2