summaryrefslogtreecommitdiff
path: root/linux-user
diff options
context:
space:
mode:
authoredgar_igl <edgar_igl@c046a42c-6fe2-441c-8c8c-71466251a162>2009-01-07 19:43:47 +0000
committeredgar_igl <edgar_igl@c046a42c-6fe2-441c-8c8c-71466251a162>2009-01-07 19:43:47 +0000
commitb15ad61c2efd61ff40bf98bc0078c8e8e35a0c76 (patch)
treeecaae164b65e2edefd850e3142f80639590df1b6 /linux-user
parente46cb38f13dda9b2b7754de521836c0c97bb09cd (diff)
downloadqemu-b15ad61c2efd61ff40bf98bc0078c8e8e35a0c76.tar.gz
CRIS: Clone flags are reversed on CRIS.
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6222 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'linux-user')
-rw-r--r--linux-user/syscall.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 18d008c1c4..5d787bb753 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -4863,6 +4863,8 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
case TARGET_NR_clone:
#if defined(TARGET_SH4)
ret = get_errno(do_fork(cpu_env, arg1, arg2, arg3, arg5, arg4));
+#elif defined(TARGET_CRIS)
+ ret = get_errno(do_fork(cpu_env, arg2, arg1, arg3, arg4, arg5));
#else
ret = get_errno(do_fork(cpu_env, arg1, arg2, arg3, arg4, arg5));
#endif