From 14919c5e5d984690de2e65ac2aa82d7c129b573e Mon Sep 17 00:00:00 2001 From: Tommaso Marinelli Date: Thu, 3 Oct 2019 10:54:37 +0200 Subject: [PATCH] mem: Remove unused variable The variable *sys in dram_ctrl.cc was only used in an assert() check, therefore it has been removed to allow building gem5.fast without errors. A typo in a comment in abstract_mem.hh has also been corrected. Change-Id: I2663545449ecfdb5a27c3574b79dd42beb4a49c8 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/21380 Tested-by: kokoro Reviewed-by: Anthony Gutierrez Maintainer: Anthony Gutierrez --- src/mem/abstract_mem.hh | 2 +- src/mem/dram_ctrl.cc | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/mem/abstract_mem.hh b/src/mem/abstract_mem.hh index 655fc0115..d92e7070c 100644 --- a/src/mem/abstract_mem.hh +++ b/src/mem/abstract_mem.hh @@ -161,7 +161,7 @@ class AbstractMemory : public ClockedObject } } - /** Pointor to the System object. + /** Pointer to the System object. * This is used for getting the number of masters in the system which is * needed when registering stats */ diff --git a/src/mem/dram_ctrl.cc b/src/mem/dram_ctrl.cc index 1352dbfbe..37db27ce0 100644 --- a/src/mem/dram_ctrl.cc +++ b/src/mem/dram_ctrl.cc @@ -2535,8 +2535,7 @@ DRAMCtrl::DRAMStats::regStats() { using namespace Stats; - System *sys = dram._system; - assert(sys); + assert(dram._system); const auto max_masters = dram._system->maxMasters(); perBankRdBursts.init(dram.banksPerRank * dram.ranksPerChannel); -- 2.30.2