summaryrefslogtreecommitdiff
path: root/src/cpu/testers
diff options
context:
space:
mode:
authorNilay Vaish <nilay@cs.wisc.edu>2012-09-11 09:23:56 -0500
committerNilay Vaish <nilay@cs.wisc.edu>2012-09-11 09:23:56 -0500
commitf00347a20fca8bbb0a955723bf068e23fe66f170 (patch)
tree5af847871374784d1f038a4ddb25755ba5d56edf /src/cpu/testers
parent5cdf221d8ce3f5b983672f26346aefc21b37a752 (diff)
downloadgem5-f00347a20fca8bbb0a955723bf068e23fe66f170.tar.xz
Ruby: Use uint8_t instead of uint8 everywhere
Diffstat (limited to 'src/cpu/testers')
-rw-r--r--src/cpu/testers/rubytest/Check.cc6
-rw-r--r--src/cpu/testers/rubytest/Check.hh2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/cpu/testers/rubytest/Check.cc b/src/cpu/testers/rubytest/Check.cc
index 213b8e8d2..7de3415b1 100644
--- a/src/cpu/testers/rubytest/Check.cc
+++ b/src/cpu/testers/rubytest/Check.cc
@@ -189,7 +189,7 @@ Check::initiateAction()
// }
PacketPtr pkt = new Packet(req, cmd);
- uint8_t* writeData = new uint8_t;
+ uint8_t *writeData = new uint8_t;
*writeData = m_value + m_store_count;
pkt->dataDynamic(writeData);
@@ -245,7 +245,7 @@ Check::initiateCheck()
req->setThreadContext(index, 0);
PacketPtr pkt = new Packet(req, MemCmd::ReadReq);
- uint8_t* dataArray = new uint8_t[CHECK_SIZE];
+ uint8_t *dataArray = new uint8_t[CHECK_SIZE];
pkt->dataDynamicArray(dataArray);
// push the subblock onto the sender state. The sequencer will
@@ -306,7 +306,7 @@ Check::performCallback(NodeID proc, SubBlock* data)
DPRINTF(RubyTest, "Check callback\n");
// Perform load/check
for (int byte_number=0; byte_number<CHECK_SIZE; byte_number++) {
- if (uint8(m_value + byte_number) != data->getByte(byte_number)) {
+ if (uint8_t(m_value + byte_number) != data->getByte(byte_number)) {
panic("Action/check failure: proc: %d address: %s data: %s "
"byte_number: %d m_value+byte_number: %d byte: %d %s"
"Time: %d\n",
diff --git a/src/cpu/testers/rubytest/Check.hh b/src/cpu/testers/rubytest/Check.hh
index 1d84b446b..6396189cc 100644
--- a/src/cpu/testers/rubytest/Check.hh
+++ b/src/cpu/testers/rubytest/Check.hh
@@ -68,7 +68,7 @@ class Check
void debugPrint();
TesterStatus m_status;
- uint8 m_value;
+ uint8_t m_value;
int m_store_count;
NodeID m_initiatingNode;
Address m_address;