From 3930b32c050683c23dcf7401d128d19373bd4768 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Tue, 8 Sep 2020 17:49:46 -0700 Subject: [PATCH] mem: Remove the unused nvm private member from NVMInterface::Rank. 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 Maintainer: Jason Lowe-Power Tested-by: kokoro --- src/mem/mem_interface.cc | 3 +-- src/mem/mem_interface.hh | 7 ------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/mem/mem_interface.cc b/src/mem/mem_interface.cc index 7817c4ac3..307cf922c 100644 --- a/src/mem/mem_interface.cc +++ b/src/mem/mem_interface.cc @@ -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; diff --git a/src/mem/mem_interface.hh b/src/mem/mem_interface.hh index 98440020a..b67cdb07d 100644 --- a/src/mem/mem_interface.hh +++ b/src/mem/mem_interface.hh @@ -1026,13 +1026,6 @@ class NVMInterface : public MemInterface */ class Rank : public EventManager { - private: - - /** - * A reference to the parent NVMInterface instance - */ - NVMInterface& nvm; - public: /** -- 2.30.2