diff options
Diffstat (limited to 'src/mem/ruby/system/TimerTable.cc')
-rw-r--r-- | src/mem/ruby/system/TimerTable.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mem/ruby/system/TimerTable.cc b/src/mem/ruby/system/TimerTable.cc index d5df8fe18..6702411a5 100644 --- a/src/mem/ruby/system/TimerTable.cc +++ b/src/mem/ruby/system/TimerTable.cc @@ -27,7 +27,7 @@ */ #include "mem/ruby/common/Global.hh" -#include "mem/ruby/eventqueue/RubyEventQueue.hh" +#include "mem/ruby/system/System.hh" #include "mem/ruby/system/TimerTable.hh" TimerTable::TimerTable() @@ -48,7 +48,7 @@ TimerTable::isReady() const updateNext(); } assert(m_next_valid); - return (g_eventQueue_ptr->getTime() >= m_next_time); + return (g_system_ptr->getTime() >= m_next_time); } const Address& @@ -69,10 +69,10 @@ TimerTable::set(const Address& address, Time relative_latency) assert(address == line_address(address)); assert(relative_latency > 0); assert(!m_map.count(address)); - Time ready_time = g_eventQueue_ptr->getTime() + relative_latency; + Time ready_time = g_system_ptr->getTime() + relative_latency; m_map[address] = ready_time; assert(m_consumer_ptr != NULL); - g_eventQueue_ptr->scheduleEventAbsolute(m_consumer_ptr, ready_time); + m_consumer_ptr->scheduleEventAbsolute(ready_time); m_next_valid = false; // Don't always recalculate the next ready address |