mem: Remove the unused nvm private member from NVMInterface::Rank.
authorGabe Black <gabeblack@google.com>
Wed, 9 Sep 2020 00:49:46 +0000 (17:49 -0700)
committerGabe Black <gabeblack@google.com>
Wed, 9 Sep 2020 07:08:53 +0000 (07:08 +0000)
This unused (and otherwise unusable) member caused a compiler warning
and broke the build for me. It can be reintroduced if used in the
future.

Change-Id: I48181f6bca60c059e74727290950adfb9a194680
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/34217
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/mem/mem_interface.cc
src/mem/mem_interface.hh

index 7817c4ac3ca5e99886815e6418c269d2051cd1c4..307cf922cd78fa4b3e6624de28d78f90b874a74e 100644 (file)
@@ -2043,8 +2043,7 @@ NVMInterfaceParams::create()
 
 NVMInterface::Rank::Rank(const NVMInterfaceParams* _p,
                          int _rank, NVMInterface& _nvm)
-    : EventManager(&_nvm), nvm(_nvm), rank(_rank),
-      banks(_p->banks_per_rank)
+    : EventManager(&_nvm), rank(_rank), banks(_p->banks_per_rank)
 {
     for (int b = 0; b < _p->banks_per_rank; b++) {
         banks[b].bank = b;
index 98440020aa211c9dbec8db54b4d8eecfbf8e11bc..b67cdb07d2301bbdaef6bfcc8d0d43fd2203e2f5 100644 (file)
@@ -1026,13 +1026,6 @@ class NVMInterface : public MemInterface
      */
     class Rank : public EventManager
     {
-      private:
-
-        /**
-         * A reference to the parent NVMInterface instance
-         */
-        NVMInterface& nvm;
-
       public:
 
         /**