diff options
author | Nilay Vaish <nilay@cs.wisc.edu> | 2013-01-17 13:10:12 -0600 |
---|---|---|
committer | Nilay Vaish <nilay@cs.wisc.edu> | 2013-01-17 13:10:12 -0600 |
commit | 5b6f972750f8e9288e81f30d69aecfe1f1960f06 (patch) | |
tree | b959d8320a850c8f89210bdb5a882e6e7164c5df /src/cpu/testers/rubytest/RubyTester.cc | |
parent | 4526f330622f1406fecccedf1ad9a911c6dea305 (diff) | |
download | gem5-5b6f972750f8e9288e81f30d69aecfe1f1960f06.tar.xz |
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.
Diffstat (limited to 'src/cpu/testers/rubytest/RubyTester.cc')
-rw-r--r-- | src/cpu/testers/rubytest/RubyTester.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cpu/testers/rubytest/RubyTester.cc b/src/cpu/testers/rubytest/RubyTester.cc index 6ddab93e8..085647533 100644 --- a/src/cpu/testers/rubytest/RubyTester.cc +++ b/src/cpu/testers/rubytest/RubyTester.cc @@ -191,7 +191,7 @@ void RubyTester::hitCallback(NodeID proc, SubBlock* data) { // Mark that we made progress - m_last_progress_vector[proc] = g_system_ptr->getTime(); + m_last_progress_vector[proc] = curCycle(); DPRINTF(RubyTest, "completed request for proc: %d\n", proc); DPRINTF(RubyTest, "addr: 0x%x, size: %d, data: ", @@ -205,7 +205,7 @@ RubyTester::hitCallback(NodeID proc, SubBlock* data) // back the data to make the check Check* check_ptr = m_checkTable_ptr->getCheck(data->getAddress()); assert(check_ptr != NULL); - check_ptr->performCallback(proc, data); + check_ptr->performCallback(proc, data, curCycle()); } void @@ -229,7 +229,7 @@ void RubyTester::checkForDeadlock() { int size = m_last_progress_vector.size(); - Time current_time = g_system_ptr->getTime(); + Time current_time = curCycle(); for (int processor = 0; processor < size; processor++) { if ((current_time - m_last_progress_vector[processor]) > m_deadlock_threshold) { |