summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sandberg <andreas.sandberg@arm.com>2019-01-09 14:31:52 +0000
committerAndreas Sandberg <andreas.sandberg@arm.com>2019-01-10 17:50:28 +0000
commit384951540c4bfb4342a16e0827b7811d4f750bf6 (patch)
tree3aac2db30af8424f511b409e8aeb394b34e8778b
parent5e420343d37fea3134a32d6e04465b13f67988d2 (diff)
downloadgem5-384951540c4bfb4342a16e0827b7811d4f750bf6.tar.xz
sim-se: Use CONFIG_CLONE_BACKWARDS for Arm
Linxu on Arm users the CLONE_BACKWARDS argument order for the clone syscall. Change-Id: I48deb4f03140c9d4ef7a89e3e33813e76777f999 Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com> Cc: Giacomo Travaglini <giacomo.travaglini@arm.com> Cc: Javier Setoain <javier.setoain@arm.com> Cc: Brandon Potter <Brandon.Potter@amd.com> Reviewed-on: https://gem5-review.googlesource.com/c/15416 Reviewed-by: Brandon Potter <Brandon.Potter@amd.com> Reviewed-by: Jason Lowe-Power <jason@lowepower.com> Maintainer: Brandon Potter <Brandon.Potter@amd.com>
-rw-r--r--src/sim/syscall_emul.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sim/syscall_emul.hh b/src/sim/syscall_emul.hh
index ba607c9cb..1ff046033 100644
--- a/src/sim/syscall_emul.hh
+++ b/src/sim/syscall_emul.hh
@@ -1273,9 +1273,9 @@ cloneFunc(SyscallDesc *desc, int callnum, Process *p, ThreadContext *tc)
TheISA::IntReg newStack = p->getSyscallArg(tc, index);
Addr ptidPtr = p->getSyscallArg(tc, index);
-#if THE_ISA == RISCV_ISA
+#if THE_ISA == RISCV_ISA or THE_ISA == ARM_ISA
/**
- * Linux kernel 4.15 sets CLONE_BACKWARDS flag for RISC-V.
+ * Linux sets CLONE_BACKWARDS flag for RISC-V and Arm.
* The flag defines the list of clone() arguments in the following
* order: flags -> newStack -> ptidPtr -> tlsPtr -> ctidPtr
*/