summaryrefslogtreecommitdiff
path: root/src/arch/x86/linux
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2019-10-29 16:40:51 -0700
committerGabe Black <gabeblack@google.com>2019-11-07 11:02:46 +0000
commit5e235694ea78a38e588c1676a262dd1c070c2742 (patch)
treeec36c151f159921f08b0202bb6fe515a0bce801d /src/arch/x86/linux
parentf9517042ae24c10f8953918a26824e3abf991b15 (diff)
downloadgem5-5e235694ea78a38e588c1676a262dd1c070c2742.tar.xz
x86: Replace htog and gtoh with htole and letoh.
We already know what endianness to use from within x86. Change-Id: Ie92568efe8b23fbb7d9edad55fef09c6302cbe62 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/22370 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/x86/linux')
-rw-r--r--src/arch/x86/linux/system.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/arch/x86/linux/system.cc b/src/arch/x86/linux/system.cc
index 04ab023b8..b4cd70e30 100644
--- a/src/arch/x86/linux/system.cc
+++ b/src/arch/x86/linux/system.cc
@@ -85,8 +85,7 @@ LinuxX86System::initState()
// Generate a pointer of the right size and endianness to put into
// commandLinePointer.
- uint32_t guestCommandLineBuff =
- X86ISA::htog((uint32_t)commandLineBuff);
+ uint32_t guestCommandLineBuff = htole((uint32_t)commandLineBuff);
physProxy.writeBlob(commandLinePointer, &guestCommandLineBuff,
sizeof(guestCommandLineBuff));