Added in endianness conversion on memory accesses as the data goes out. This will break the checker!
--HG-- extra : convert_revision : b8191cab09ab8f3ced05693293f058382319ed8e
This commit is contained in:
parent
20340b5e26
commit
6456cb535c
1 changed files with 5 additions and 1 deletions
|
@ -596,7 +596,11 @@ LSQUnit<Impl>::writebackStores()
|
|||
|
||||
assert(!inst->memData);
|
||||
inst->memData = new uint8_t[64];
|
||||
memcpy(inst->memData, (uint8_t *)&storeQueue[storeWBIdx].data,
|
||||
|
||||
TheISA::IntReg convertedData =
|
||||
TheISA::htog(storeQueue[storeWBIdx].data);
|
||||
|
||||
memcpy(inst->memData, (uint8_t *)&convertedData,
|
||||
req->getSize());
|
||||
|
||||
PacketPtr data_pkt = new Packet(req, Packet::WriteReq, Packet::Broadcast);
|
||||
|
|
Loading…
Reference in a new issue