mem: avoid calling regStat twice on a QoSPolicy
authorMatteo Andreozzi <Matteo.Andreozzi@arm.com>
Wed, 7 Sep 2016 13:04:45 +0000 (14:04 +0100)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Fri, 16 Nov 2018 11:45:42 +0000 (11:45 +0000)
Change-Id: I216c57073fabe29c3f898a5d89cee41efd4277d5
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/13696
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>

src/mem/qos/mem_ctrl.cc

index ce15fd779d446dc7ec8d3be2cceab05c557a997e..27ff0eb6115d55f70d1256d05a93c2a330bc8bf3 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2017 ARM Limited
+ * Copyright (c) 2017-2018 ARM Limited
  * All rights reserved
  *
  * The license below extends only to copyright in the software and shall
@@ -329,9 +329,6 @@ MemCtrl::regStats()
         priorityMinLatency.subname(j, std::to_string(j));
         priorityMaxLatency.subname(j, std::to_string(j));
     }
-
-    if (policy)
-        policy->regStats();
 }
 
 void