summaryrefslogtreecommitdiff
path: root/src/mem/ruby/network/garnet
diff options
context:
space:
mode:
authorNilay Vaish <nilay@cs.wisc.edu>2013-01-17 13:10:12 -0600
committerNilay Vaish <nilay@cs.wisc.edu>2013-01-17 13:10:12 -0600
commit5b6f972750f8e9288e81f30d69aecfe1f1960f06 (patch)
treeb959d8320a850c8f89210bdb5a882e6e7164c5df /src/mem/ruby/network/garnet
parent4526f330622f1406fecccedf1ad9a911c6dea305 (diff)
downloadgem5-5b6f972750f8e9288e81f30d69aecfe1f1960f06.tar.xz
ruby: remove calls to g_system_ptr->getTime()
This patch further removes calls to g_system_ptr->getTime() where ever other clocked objects are available for providing current time.
Diffstat (limited to 'src/mem/ruby/network/garnet')
-rw-r--r--src/mem/ruby/network/garnet/fixed-pipeline/OutVcState_d.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mem/ruby/network/garnet/fixed-pipeline/OutVcState_d.cc b/src/mem/ruby/network/garnet/fixed-pipeline/OutVcState_d.cc
index 5aa60d754..d006591c0 100644
--- a/src/mem/ruby/network/garnet/fixed-pipeline/OutVcState_d.cc
+++ b/src/mem/ruby/network/garnet/fixed-pipeline/OutVcState_d.cc
@@ -37,7 +37,7 @@ OutVcState_d::OutVcState_d(int id, GarnetNetwork_d *network_ptr)
m_network_ptr = network_ptr;
m_id = id;
m_vc_state = IDLE_;
- m_time = g_system_ptr->getTime();
+ m_time = m_network_ptr->curCycle();
if (m_network_ptr->get_vnet_type(id) == DATA_VNET_)
m_credit_count = m_network_ptr->getBuffersPerDataVC();