summaryrefslogtreecommitdiff
path: root/src/arch/mips
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2018-10-12 05:02:45 -0700
committerGabe Black <gabeblack@google.com>2018-10-12 23:58:43 +0000
commit657b3ce63f28fe85aedf3a71e7c459a114c0de16 (patch)
treef19f912b3f3b4fa9a3e4808e4031ee49d7ed94ed /src/arch/mips
parent018651d47747575e5bf4feba4d09f78350375f9a (diff)
downloadgem5-657b3ce63f28fe85aedf3a71e7c459a114c0de16.tar.xz
mips: Use little endian packet accessors.
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>
Diffstat (limited to 'src/arch/mips')
-rw-r--r--src/arch/mips/isa/formats/mem.isa8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/arch/mips/isa/formats/mem.isa b/src/arch/mips/isa/formats/mem.isa
index 7349516b6..a2710fb90 100644
--- a/src/arch/mips/isa/formats/mem.isa
+++ b/src/arch/mips/isa/formats/mem.isa
@@ -109,16 +109,16 @@ output exec {{
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;