Commit b15ad61c2efd61ff40bf98bc0078c8e8e35a0c76
1 parent
e46cb38f
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
Showing
1 changed file
with
2 additions
and
0 deletions
linux-user/syscall.c
... | ... | @@ -4863,6 +4863,8 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1, |
4863 | 4863 | case TARGET_NR_clone: |
4864 | 4864 | #if defined(TARGET_SH4) |
4865 | 4865 | ret = get_errno(do_fork(cpu_env, arg1, arg2, arg3, arg5, arg4)); |
4866 | +#elif defined(TARGET_CRIS) | |
4867 | + ret = get_errno(do_fork(cpu_env, arg2, arg1, arg3, arg4, arg5)); | |
4866 | 4868 | #else |
4867 | 4869 | ret = get_errno(do_fork(cpu_env, arg1, arg2, arg3, arg4, arg5)); |
4868 | 4870 | #endif | ... | ... |