From 759795a6b9e6e75c1e671457ef91b6329a692b18 Mon Sep 17 00:00:00 2001 From: Tiago Muck Date: Tue, 28 Aug 2018 12:44:54 -0500 Subject: [PATCH] sim-se: Fixed initialization array size Doubled the size of the zeroed auxiliary vector since 2 * intSize on aarch64 > sizeof(uint64). Change-Id: I5196b000a696e9ea3f2b5daa5d5bb071794369aa Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/17088 Reviewed-by: Ciro Santilli Maintainer: Brandon Potter --- src/arch/arm/process.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/arch/arm/process.cc b/src/arch/arm/process.cc index bc4495941..ba9fbfaa3 100644 --- a/src/arch/arm/process.cc +++ b/src/arch/arm/process.cc @@ -442,10 +442,10 @@ ArmProcess::argsInit(int pageSize, IntRegIndex spIndex) (uint8_t*)&(auxv[x].getAuxVal()), intSize); } - //Write out the terminating zeroed auxilliary vector - const uint64_t zero = 0; + //Write out the terminating zeroed auxillary vector + const IntType zero[2] = {0, 0}; initVirtMem.writeBlob(auxv_array_base + 2 * intSize * auxv.size(), - (uint8_t*)&zero, 2 * intSize); + (uint8_t*)zero, 2 * intSize); copyStringArray(envp, envp_array_base, env_data_base, initVirtMem); copyStringArray(argv, argv_array_base, arg_data_base, initVirtMem); -- 2.30.2