summaryrefslogtreecommitdiff
path: root/src/arch/arm/process.cc
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2019-10-29 15:59:35 -0700
committerGabe Black <gabeblack@google.com>2019-10-30 22:29:23 +0000
commitc98fc78926213b3c0d0daa5acc11b4126e2e4912 (patch)
tree02299166d5e35bf57a8390f3ae4ac90d3e22c0f7 /src/arch/arm/process.cc
parent4444e88e5b4af1f49b501f13bd13133c6422374e (diff)
downloadgem5-c98fc78926213b3c0d0daa5acc11b4126e2e4912.tar.xz
arch,sim: Make copyStringArray take an explicit endianness.
Change-Id: I5cf4291b19dd2d2bdbbf145ad8e00994fabf5547 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/22366 Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-by: Brandon Potter <Brandon.Potter@amd.com> Maintainer: Gabe Black <gabeblack@google.com> Tested-by: kokoro <noreply+kokoro@google.com>
Diffstat (limited to 'src/arch/arm/process.cc')
-rw-r--r--src/arch/arm/process.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/arch/arm/process.cc b/src/arch/arm/process.cc
index d9b714c44..cacbe3ad5 100644
--- a/src/arch/arm/process.cc
+++ b/src/arch/arm/process.cc
@@ -434,8 +434,10 @@ ArmProcess::argsInit(int pageSize, IntRegIndex spIndex)
initVirtMem.write(auxv_array_end, zero);
auxv_array_end += sizeof(zero);
- copyStringArray(envp, envp_array_base, env_data_base, initVirtMem);
- copyStringArray(argv, argv_array_base, arg_data_base, initVirtMem);
+ copyStringArray(envp, envp_array_base, env_data_base,
+ LittleEndianByteOrder, initVirtMem);
+ copyStringArray(argv, argv_array_base, arg_data_base,
+ LittleEndianByteOrder, initVirtMem);
initVirtMem.writeBlob(argc_base, &guestArgc, intSize);