summaryrefslogtreecommitdiff
path: root/src/cpu/testers/rubytest/Check.cc
diff options
context:
space:
mode:
authorNilay Vaish <nilay@cs.wisc.edu>2013-01-17 13:10:12 -0600
committerNilay Vaish <nilay@cs.wisc.edu>2013-01-17 13:10:12 -0600
commit5b6f972750f8e9288e81f30d69aecfe1f1960f06 (patch)
treeb959d8320a850c8f89210bdb5a882e6e7164c5df /src/cpu/testers/rubytest/Check.cc
parent4526f330622f1406fecccedf1ad9a911c6dea305 (diff)
downloadgem5-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/Check.cc')
-rw-r--r--src/cpu/testers/rubytest/Check.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/cpu/testers/rubytest/Check.cc b/src/cpu/testers/rubytest/Check.cc
index 7de3415b1..a861dbfd8 100644
--- a/src/cpu/testers/rubytest/Check.cc
+++ b/src/cpu/testers/rubytest/Check.cc
@@ -276,7 +276,7 @@ Check::initiateCheck()
}
void
-Check::performCallback(NodeID proc, SubBlock* data)
+Check::performCallback(NodeID proc, SubBlock* data, Time curTime)
{
Address address = data->getAddress();
@@ -312,8 +312,7 @@ Check::performCallback(NodeID proc, SubBlock* data)
"Time: %d\n",
proc, address, data, byte_number,
(int)m_value + byte_number,
- (int)data->getByte(byte_number), *this,
- g_system_ptr->getTime());
+ (int)data->getByte(byte_number), *this, curTime);
}
}
DPRINTF(RubyTest, "Action/check success\n");
@@ -327,8 +326,7 @@ Check::performCallback(NodeID proc, SubBlock* data)
} else {
panic("Unexpected TesterStatus: %s proc: %d data: %s m_status: %s "
- "time: %d\n",
- *this, proc, data, m_status, g_system_ptr->getTime());
+ "time: %d\n", *this, proc, data, m_status, curTime);
}
DPRINTF(RubyTest, "proc: %d, Address: 0x%x\n", proc,