We know data is little endian, so we can use those accessors
explicitly.
Change-Id: I6220a543686b1d45d26973391b028dc04ce85dd2
Reviewed-on: https://gem5-review.googlesource.com/c/13460
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Gabe Black <gabeblack@google.com>
switch (packet->getSize())
{
case 1:
- return packet->get<uint8_t>();
+ return packet->getLE<uint8_t>();
case 2:
- return packet->get<uint16_t>();
+ return packet->getLE<uint16_t>();
case 4:
- return packet->get<uint32_t>();
+ return packet->getLE<uint32_t>();
case 8:
- return packet->get<uint64_t>();
+ return packet->getLE<uint64_t>();
default:
std::cerr << "bad store data size = " << packet->getSize() << std::endl;