changeset 3bfed693ff22 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=3bfed693ff22
description:
        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.

diffstat:

 src/arch/hsail/gpu_isa.hh    |  7 +------
 src/gpu-compute/wavefront.cc |  2 +-
 2 files changed, 2 insertions(+), 7 deletions(-)

diffs (43 lines):

diff -r 68dd3c3349aa -r 3bfed693ff22 src/arch/hsail/gpu_isa.hh
--- a/src/arch/hsail/gpu_isa.hh Mon Feb 27 13:18:38 2017 -0500
+++ b/src/arch/hsail/gpu_isa.hh Mon Feb 27 13:18:51 2017 -0500
@@ -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 @@
     class GPUISA
     {
       public:
-        GPUISA(Wavefront &wf) : wavefront(wf)
+        GPUISA()
         {
         }
 
@@ -74,9 +72,6 @@
         {
             return old_pc + sizeof(RawMachInst);
         }
-
-      private:
-        Wavefront &wavefront;
     };
 }
 
diff -r 68dd3c3349aa -r 3bfed693ff22 src/gpu-compute/wavefront.cc
--- a/src/gpu-compute/wavefront.cc      Mon Feb 27 13:18:38 2017 -0500
+++ b/src/gpu-compute/wavefront.cc      Mon Feb 27 13:18:51 2017 -0500
@@ -49,7 +49,7 @@
 }
 
 Wavefront::Wavefront(const Params *p)
-  : SimObject(p), callArgMem(nullptr), _gpuISA(*this)
+  : SimObject(p), callArgMem(nullptr), _gpuISA()
 {
     lastTrace = 0;
     simdId = p->simdId;
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to