summaryrefslogtreecommitdiff
path: root/src/arch/alpha/linux/system.cc
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2019-10-29 16:01:17 -0700
committerGabe Black <gabeblack@google.com>2019-10-31 01:28:59 +0000
commit5260c7efeff525b74f16258057abf83edb57c79e (patch)
treeaecff005e4054dd817d4b1af92d16f171894be50 /src/arch/alpha/linux/system.cc
parentc98fc78926213b3c0d0daa5acc11b4126e2e4912 (diff)
downloadgem5-5260c7efeff525b74f16258057abf83edb57c79e.tar.xz
alpha: Convert htog and gtoh to htole and letoh.
When within the Alpha arch, we know the guest endianness already. Change-Id: Iee22a33451a06c6e6a5c7d1e8c71f0b00e98ae3f Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/22367 Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-by: Brandon Potter <Brandon.Potter@amd.com> Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/arch/alpha/linux/system.cc')
-rw-r--r--src/arch/alpha/linux/system.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/alpha/linux/system.cc b/src/arch/alpha/linux/system.cc
index 89d18f6f6..b699d6d1c 100644
--- a/src/arch/alpha/linux/system.cc
+++ b/src/arch/alpha/linux/system.cc
@@ -110,7 +110,7 @@ LinuxAlphaSystem::initState()
* 255 ASNs.
*/
if (kernelSymtab->findAddress("dp264_mv", addr))
- virtProxy.write(addr + 0x18, LittleEndianGuest::htog((uint32_t)127));
+ virtProxy.write(addr + 0x18, htole((uint32_t)127));
else
panic("could not find dp264_mv\n");