From 657b3ce63f28fe85aedf3a71e7c459a114c0de16 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Fri, 12 Oct 2018 05:02:45 -0700 Subject: [PATCH] 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 --- src/arch/mips/isa/formats/mem.isa | 8 ++++---- 1 file 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(); + 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; -- 2.30.2