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:
Gabe Black 2006-12-06 05:54:16 -05:00
parent 20340b5e26
commit 6456cb535c

View file

@ -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);