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/buffers | |
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/buffers')
-rw-r--r-- | src/mem/ruby/buffers/MessageBuffer.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mem/ruby/buffers/MessageBuffer.cc b/src/mem/ruby/buffers/MessageBuffer.cc index ee1c709f1..f0d372a52 100644 --- a/src/mem/ruby/buffers/MessageBuffer.cc +++ b/src/mem/ruby/buffers/MessageBuffer.cc @@ -192,10 +192,10 @@ MessageBuffer::enqueue(MsgPtr message, Time delta) panic("FIFO ordering violated: %s name: %s current time: %d " "delta: %d arrival_time: %d last arrival_time: %d\n", *this, m_name, - current_time * g_system_ptr->getClock(), - delta * g_system_ptr->getClock(), - arrival_time * g_system_ptr->getClock(), - m_last_arrival_time * g_system_ptr->getClock()); + current_time * g_system_ptr->clockPeriod(), + delta * g_system_ptr->clockPeriod(), + arrival_time * g_system_ptr->clockPeriod(), + m_last_arrival_time * g_system_ptr->clockPeriod()); } } @@ -223,7 +223,7 @@ MessageBuffer::enqueue(MsgPtr message, Time delta) greater<MessageBufferNode>()); DPRINTF(RubyQueue, "Enqueue with arrival_time %lld.\n", - arrival_time * g_system_ptr->getClock()); + arrival_time * g_system_ptr->clockPeriod()); DPRINTF(RubyQueue, "Enqueue Message: %s.\n", (*(message.get()))); // Schedule the wakeup |