mem-garnet: Fix garnet stats
authorJavier Cano-Cano <javier.cano555@gmail.com>
Tue, 6 Jun 2017 14:10:26 +0000 (16:10 +0200)
committerJavier Cano-Cano <javier.cano555@gmail.com>
Thu, 15 Jun 2017 16:17:21 +0000 (16:17 +0000)
commitb377217202305784f91ffe719f9c04f54ad24145
treef090a92af15465737456cf5ebdb482cb04aea836
parent04a58ded65e3a5f692f730eed87ee0476643c9fe
mem-garnet: Fix garnet stats

This patch fix some statistics that in presence of a resetStats
instruction were not  reseted. This bug makes impossible to obtain
reliable network statistics when the simulation doesn't start from tick
zero.

Change-Id: Ibec45f08d95bf0a533d94b70ec960719206ae945
Maintainer: Tushar Krishna <tushar@ece.gatech.edu>
Reviewed-on: https://gem5-review.googlesource.com/3700
Reviewed-by: Jieming Yin <bjm419@gmail.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
src/mem/ruby/network/garnet2.0/CrossbarSwitch.cc
src/mem/ruby/network/garnet2.0/CrossbarSwitch.hh
src/mem/ruby/network/garnet2.0/NetworkLink.cc
src/mem/ruby/network/garnet2.0/NetworkLink.hh
src/mem/ruby/network/garnet2.0/Router.cc
src/mem/ruby/network/garnet2.0/SwitchAllocator.cc
src/mem/ruby/network/garnet2.0/SwitchAllocator.hh