From c5bf1390aa129fefa7102e2de2998c0e6b09b5b0 Mon Sep 17 00:00:00 2001 From: Nilay Vaish Date: Mon, 10 Sep 2012 12:21:01 -0500 Subject: Ruby System: Convert to Clocked Object This patch moves Ruby System from being a SimObject to recently introduced ClockedObject. --- src/mem/ruby/profiler/Profiler.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mem/ruby/profiler') diff --git a/src/mem/ruby/profiler/Profiler.cc b/src/mem/ruby/profiler/Profiler.cc index 2ab68d249..b6982aca9 100644 --- a/src/mem/ruby/profiler/Profiler.cc +++ b/src/mem/ruby/profiler/Profiler.cc @@ -137,7 +137,7 @@ Profiler::wakeup() } //g_system_ptr->getNetwork()->printStats(out); - schedule(m_event, curTick() + m_stats_period * g_system_ptr->getClock()); + schedule(m_event, g_system_ptr->clockEdge(Cycles(m_stats_period ))); } void @@ -151,7 +151,7 @@ Profiler::setPeriodicStatsFile(const string& filename) } m_periodic_output_file_ptr = new ofstream(filename.c_str()); - schedule(m_event, curTick() + g_system_ptr->getClock()); + schedule(m_event, g_system_ptr->clockEdge(Cycles(1))); } void @@ -161,7 +161,7 @@ Profiler::setPeriodicStatsInterval(integer_t period) << " Ruby cycles" << endl; m_stats_period = period; - schedule(m_event, curTick() + g_system_ptr->getClock()); + schedule(m_event, g_system_ptr->clockEdge(Cycles(1))); } void -- cgit v1.2.3