diff options
author | Nilay Vaish <nilay@cs.wisc.edu> | 2012-09-10 12:21:01 -0500 |
---|---|---|
committer | Nilay Vaish <nilay@cs.wisc.edu> | 2012-09-10 12:21:01 -0500 |
commit | c5bf1390aa129fefa7102e2de2998c0e6b09b5b0 (patch) | |
tree | abd84f95c72cc3c7652d7471fed0d8cca74a9987 /src/mem/ruby/profiler | |
parent | 4e6f048ef0f201718ac1a24ff917fb4d42a2b181 (diff) | |
download | gem5-c5bf1390aa129fefa7102e2de2998c0e6b09b5b0.tar.xz |
Ruby System: Convert to Clocked Object
This patch moves Ruby System from being a SimObject to recently introduced
ClockedObject.
Diffstat (limited to 'src/mem/ruby/profiler')
-rw-r--r-- | src/mem/ruby/profiler/Profiler.cc | 6 |
1 files changed, 3 insertions, 3 deletions
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 |