From b15ad61c2efd61ff40bf98bc0078c8e8e35a0c76 Mon Sep 17 00:00:00 2001 From: edgar_igl Date: Wed, 7 Jan 2009 19:43:47 +0000 Subject: CRIS: Clone flags are reversed on CRIS. Signed-off-by: Edgar E. Iglesias git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6222 c046a42c-6fe2-441c-8c8c-71466251a162 --- linux-user/syscall.c | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.3