From 5b6f972750f8e9288e81f30d69aecfe1f1960f06 Mon Sep 17 00:00:00 2001 From: Nilay Vaish Date: Thu, 17 Jan 2013 13:10:12 -0600 Subject: ruby: remove calls to g_system_ptr->getTime() This patch further removes calls to g_system_ptr->getTime() where ever other clocked objects are available for providing current time. --- src/mem/ruby/structures/Prefetcher.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mem/ruby/structures') diff --git a/src/mem/ruby/structures/Prefetcher.cc b/src/mem/ruby/structures/Prefetcher.cc index 5135c2bb2..47caf1cc8 100644 --- a/src/mem/ruby/structures/Prefetcher.cc +++ b/src/mem/ruby/structures/Prefetcher.cc @@ -248,7 +248,7 @@ Prefetcher::issueNextPrefetch(const Address &address, PrefetchEntry *stream) // launch next prefetch stream->m_address = line_addr; - stream->m_use_time = g_system_ptr->getTime(); + stream->m_use_time = m_controller->curCycle(); DPRINTF(RubyPrefetcher, "Requesting prefetch for %s\n", line_addr); m_controller->enqueuePrefetch(line_addr, stream->m_type); } @@ -290,7 +290,7 @@ Prefetcher::initializeStream(const Address& address, int stride, PrefetchEntry *mystream = &(m_array[index]); mystream->m_address = line_address(address); mystream->m_stride = stride; - mystream->m_use_time = g_system_ptr->getTime(); + mystream->m_use_time = m_controller->curCycle(); mystream->m_is_valid = true; mystream->m_type = type; -- cgit v1.2.3