From 384951540c4bfb4342a16e0827b7811d4f750bf6 Mon Sep 17 00:00:00 2001 From: Andreas Sandberg Date: Wed, 9 Jan 2019 14:31:52 +0000 Subject: 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 Cc: Giacomo Travaglini Cc: Javier Setoain Cc: Brandon Potter Reviewed-on: https://gem5-review.googlesource.com/c/15416 Reviewed-by: Brandon Potter Reviewed-by: Jason Lowe-Power Maintainer: Brandon Potter --- src/sim/syscall_emul.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 */ -- cgit v1.2.3