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/common/Consumer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mem/ruby/common/Consumer.cc') diff --git a/src/mem/ruby/common/Consumer.cc b/src/mem/ruby/common/Consumer.cc index a81396217..1f7aeebd5 100644 --- a/src/mem/ruby/common/Consumer.cc +++ b/src/mem/ruby/common/Consumer.cc @@ -51,7 +51,7 @@ Consumer::scheduleEventAbsolute(Time timeAbs) void Consumer::scheduleEventAbsolute(EventManager *em, Time timeAbs) { - Tick evt_time = timeAbs * g_system_ptr->getClock(); + Tick evt_time = g_system_ptr->clockPeriod() * timeAbs; if (!alreadyScheduled(evt_time)) { // This wakeup is not redundant ConsumerEvent *evt = new ConsumerEvent(this); -- cgit v1.2.3