From: Gabe Black Date: Wed, 9 Sep 2020 00:49:46 +0000 (-0700) Subject: mem: Remove the unused nvm private member from NVMInterface::Rank. X-Git-Tag: v20.1.0.0~55 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3930b32c050683c23dcf7401d128d19373bd4768;p=gem5.git 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 --- 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: /**