summaryrefslogtreecommitdiff
path: root/src/mem/ruby/network/garnet2.0/CrossbarSwitch.hh
diff options
context:
space:
mode:
authorJavier Cano-Cano <javier.cano555@gmail.com>2017-06-06 16:10:26 +0200
committerJavier Cano-Cano <javier.cano555@gmail.com>2017-06-15 16:17:21 +0000
commitb377217202305784f91ffe719f9c04f54ad24145 (patch)
treef090a92af15465737456cf5ebdb482cb04aea836 /src/mem/ruby/network/garnet2.0/CrossbarSwitch.hh
parent04a58ded65e3a5f692f730eed87ee0476643c9fe (diff)
downloadgem5-b377217202305784f91ffe719f9c04f54ad24145.tar.xz
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>
Diffstat (limited to 'src/mem/ruby/network/garnet2.0/CrossbarSwitch.hh')
-rw-r--r--src/mem/ruby/network/garnet2.0/CrossbarSwitch.hh1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mem/ruby/network/garnet2.0/CrossbarSwitch.hh b/src/mem/ruby/network/garnet2.0/CrossbarSwitch.hh
index 7aaeabf0c..bca3a92e4 100644
--- a/src/mem/ruby/network/garnet2.0/CrossbarSwitch.hh
+++ b/src/mem/ruby/network/garnet2.0/CrossbarSwitch.hh
@@ -59,6 +59,7 @@ class CrossbarSwitch : public Consumer
inline double get_crossbar_activity() { return m_crossbar_activity; }
uint32_t functionalWrite(Packet *pkt);
+ void resetStats();
private:
int m_num_vcs;