From f6e3ab7bd4d6c27fd400c718bfe225b09a3b486b Mon Sep 17 00:00:00 2001 From: Nilay Vaish Date: Sun, 10 Feb 2013 21:43:09 -0600 Subject: ruby: replace Time with Cycles in garnet fixed and flexible --- src/mem/ruby/network/garnet/BaseGarnetNetwork.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/mem/ruby/network/garnet/BaseGarnetNetwork.cc') diff --git a/src/mem/ruby/network/garnet/BaseGarnetNetwork.cc b/src/mem/ruby/network/garnet/BaseGarnetNetwork.cc index b66a96989..c6e770cc9 100644 --- a/src/mem/ruby/network/garnet/BaseGarnetNetwork.cc +++ b/src/mem/ruby/network/garnet/BaseGarnetNetwork.cc @@ -36,7 +36,7 @@ using namespace std; BaseGarnetNetwork::BaseGarnetNetwork(const Params *p) - : Network(p) + : Network(p), m_ruby_start(0) { m_ni_flit_size = p->ni_flit_size; m_vcs_per_vnet = p->vcs_per_vnet; @@ -44,8 +44,6 @@ BaseGarnetNetwork::BaseGarnetNetwork(const Params *p) if (m_enable_fault_model) fault_model = p->fault_model; - m_ruby_start = 0; - // Currently Garnet only supports uniform bandwidth for all // links and network interfaces. for (std::vector::const_iterator i = @@ -130,7 +128,7 @@ BaseGarnetNetwork::clearStats() m_ruby_start = curCycle(); } -Time +Cycles BaseGarnetNetwork::getRubyStartTime() { return m_ruby_start; -- cgit v1.2.3