diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mem/abstract_mem.hh | 2 | ||||
-rw-r--r-- | 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); |