Giacomo Travaglini has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/17088
Change subject: arch-arm: Fixed initialization array size
......................................................................
arch-arm: Fixed initialization array size
Doubled the size of the zeroed auxiliary vector since 2 * intSize on
aarch64 > sizeof(uint64).
Change-Id: I5196b000a696e9ea3f2b5daa5d5bb071794369aa
---
M src/arch/arm/process.cc
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/arch/arm/process.cc b/src/arch/arm/process.cc
index 553bac5..0ddb5ff 100644
--- a/src/arch/arm/process.cc
+++ b/src/arch/arm/process.cc
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2012, 2018 ARM Limited
+ * Copyright (c) 2010, 2012, 2018, 2019 ARM Limited
* All rights reserved
*
* The license below extends only to copyright in the software and shall
@@ -440,10 +440,10 @@
(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);
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/17088
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: I5196b000a696e9ea3f2b5daa5d5bb071794369aa
Gerrit-Change-Number: 17088
Gerrit-PatchSet: 1
Gerrit-Owner: Giacomo Travaglini <giacomo.travagl...@arm.com>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list
gem5-dev@gem5.org
http://m5sim.org/mailman/listinfo/gem5-dev