From 7695a214049586f9a818cd8c5101ce56f84ba6b4 Mon Sep 17 00:00:00 2001 From: Polydoros Petrakis Date: Wed, 20 May 2020 02:07:00 +0300 Subject: [PATCH] mem-garnet: Remove extraneous loop in Router resetStats. This outer loop makes no sense. Change-Id: Ibe4b8b50c5843fba2119906f59ea1cb6c1d8c762 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/29254 Reviewed-by: Srikant Bharadwaj Reviewed-by: Jason Lowe-Power Maintainer: Jason Lowe-Power Tested-by: kokoro --- src/mem/ruby/network/garnet2.0/Router.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/mem/ruby/network/garnet2.0/Router.cc b/src/mem/ruby/network/garnet2.0/Router.cc index 14c0e8408..73b7dce2e 100644 --- a/src/mem/ruby/network/garnet2.0/Router.cc +++ b/src/mem/ruby/network/garnet2.0/Router.cc @@ -215,10 +215,8 @@ Router::collateStats() void Router::resetStats() { - for (int j = 0; j < m_virtual_networks; j++) { - for (int i = 0; i < m_input_unit.size(); i++) { + for (int i = 0; i < m_input_unit.size(); i++) { m_input_unit[i]->resetStats(); - } } crossbarSwitch.resetStats(); -- 2.30.2