diff options
author | Nilay Vaish <nilay@cs.wisc.edu> | 2012-09-11 09:23:56 -0500 |
---|---|---|
committer | Nilay Vaish <nilay@cs.wisc.edu> | 2012-09-11 09:23:56 -0500 |
commit | f00347a20fca8bbb0a955723bf068e23fe66f170 (patch) | |
tree | 5af847871374784d1f038a4ddb25755ba5d56edf /src/cpu/testers/rubytest/Check.cc | |
parent | 5cdf221d8ce3f5b983672f26346aefc21b37a752 (diff) | |
download | gem5-f00347a20fca8bbb0a955723bf068e23fe66f170.tar.xz |
Ruby: Use uint8_t instead of uint8 everywhere
Diffstat (limited to 'src/cpu/testers/rubytest/Check.cc')
-rw-r--r-- | src/cpu/testers/rubytest/Check.cc | 6 |
1 files changed, 3 insertions, 3 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", |