1
From 171880fc200fc1867da424b9741957c70404e492 Mon Sep 17 00:00:00 2001
2
From: Claudio Fontana <claudio.fontana@linaro.org>
3
Date: Sat, 4 Jan 2014 22:15:47 +0000
4
Subject: [PATCH 072/158] linux-user: AArch64: define TARGET_CLONE_BACKWARDS
6
The AArch64 linux-user support was written before but merged after
7
commit 4ce6243dc621 which cleaned up the handling of the clone()
8
syscall argument order, so we failed to notice that AArch64 also needs
9
TARGET_CLONE_BACKWARDS to be defined. Add this define so that clone
10
and fork syscalls work correctly.
12
Signed-off-by: Claudio Fontana <claudio.fontana@linaro.org>
13
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
14
Reviewed-by: Richard Henderson <rth@twiddle.net>
16
linux-user/aarch64/syscall.h | 1 +
17
1 file changed, 1 insertion(+)
19
diff --git a/linux-user/aarch64/syscall.h b/linux-user/aarch64/syscall.h
20
index aef419e..18f44a8 100644
21
--- a/linux-user/aarch64/syscall.h
22
+++ b/linux-user/aarch64/syscall.h
23
@@ -7,3 +7,4 @@ struct target_pt_regs {
25
#define UNAME_MACHINE "aarch64"
26
#define UNAME_MINIMUM_RELEASE "3.8.0"
27
+#define TARGET_CLONE_BACKWARDS