From c98fc78926213b3c0d0daa5acc11b4126e2e4912 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Tue, 29 Oct 2019 15:59:35 -0700 Subject: 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 Reviewed-by: Brandon Potter Maintainer: Gabe Black Tested-by: kokoro --- src/arch/power/process.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/arch/power') diff --git a/src/arch/power/process.cc b/src/arch/power/process.cc index 7b53d7038..30685f0ba 100644 --- a/src/arch/power/process.cc +++ b/src/arch/power/process.cc @@ -254,8 +254,10 @@ PowerProcess::argsInit(int intSize, int pageSize) 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, + BigEndianByteOrder, initVirtMem); + copyStringArray(argv, argv_array_base, arg_data_base, + BigEndianByteOrder, initVirtMem); initVirtMem.writeBlob(argc_base, &guestArgc, intSize); -- cgit v1.2.3