power: Replace gtoh and htog with betoh and htobe.
authorGabe Black <gabeblack@google.com>
Tue, 29 Oct 2019 23:41:41 +0000 (16:41 -0700)
committerGabe Black <gabeblack@google.com>
Thu, 7 Nov 2019 11:02:46 +0000 (11:02 +0000)
We already know what endianness to use when within power.

Change-Id: Id4ced279d21c56855307a5a8da51654101a13786
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/22371
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/arch/power/process.cc

index 30685f0ba15618c23f4940f33caff762d45fc3f9..b24a51948d0325a9d9bcd0ce850c28806472370c 100644 (file)
@@ -226,7 +226,7 @@ PowerProcess::argsInit(int intSize, int pageSize)
 
     // figure out argc
     uint32_t argc = argv.size();
-    uint32_t guestArgc = PowerISA::htog(argc);
+    uint32_t guestArgc = htobe(argc);
 
     //Write out the sentry void *
     uint32_t sentry_NULL = 0;