From: Gabe Black Date: Fri, 12 Oct 2018 12:02:45 +0000 (-0700) Subject: mips: Use little endian packet accessors. X-Git-Tag: v19.0.0.0~1586 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=657b3ce63f28fe85aedf3a71e7c459a114c0de16;p=gem5.git 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 Maintainer: Gabe Black --- 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(); + return packet->getLE(); case 2: - return packet->get(); + return packet->getLE(); case 4: - return packet->get(); + return packet->getLE(); case 8: - return packet->get(); + return packet->getLE(); default: std::cerr << "bad store data size = " << packet->getSize() << std::endl;