summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2019-10-29 16:23:45 -0700
committerGabe Black <gabeblack@google.com>2019-11-07 11:02:46 +0000
commitf9517042ae24c10f8953918a26824e3abf991b15 (patch)
treeb3cec266dabdc4ae48c40782e35bc5d92032ff4c /src/arch
parent5a857378596c03ba9cb9024a3e701b27da18b7ef (diff)
downloadgem5-f9517042ae24c10f8953918a26824e3abf991b15.tar.xz
mips: Replace gtoh and htog with letoh and htole.
We already know what endianness to use from within MIPS. Change-Id: Ic4cd295a7a66c4c8ef55ebcf976fe6637567391f Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/22369 Reviewed-by: Jason Lowe-Power <jason@lowepower.com> Maintainer: Jason Lowe-Power <jason@lowepower.com> Tested-by: kokoro <noreply+kokoro@google.com>
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/mips/linux/process.cc2
-rw-r--r--src/arch/mips/process.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/arch/mips/linux/process.cc b/src/arch/mips/linux/process.cc
index 1d2709aa1..adfbfd3f6 100644
--- a/src/arch/mips/linux/process.cc
+++ b/src/arch/mips/linux/process.cc
@@ -146,7 +146,7 @@ sys_setsysinfoFunc(SyscallDesc *desc, int callnum, ThreadContext *tc)
// I don't think this exactly matches the HW FPCR
fpcr.copyIn(tc->getVirtProxy());
DPRINTFR(SyscallVerbose, "sys_setsysinfo(SSI_IEEE_FP_CONTROL): "
- " setting FPCR to 0x%x\n", gtoh(*(uint64_t*)fpcr));
+ " setting FPCR to 0x%x\n", letoh(*(uint64_t*)fpcr));
return 0;
}
default:
diff --git a/src/arch/mips/process.cc b/src/arch/mips/process.cc
index f5aae732c..ca4f79afd 100644
--- a/src/arch/mips/process.cc
+++ b/src/arch/mips/process.cc
@@ -161,7 +161,7 @@ MipsProcess::argsInit(int pageSize)
// write contents to stack
IntType argc = argv.size();
- argc = htog((IntType)argc);
+ argc = htole((IntType)argc);
initVirtMem.writeBlob(memState->getStackMin(), &argc, intSize);