This patch implements the correct TARGET_NR_clone for SH4
cpu.
Signed-off-by: Michael Trimarchi <address@hidden>
Index: linux-user/syscall.c
===================================================================
--- linux-user/syscall.c (revision 4865)
+++ linux-user/syscall.c (working copy)
@@ -53,6 +53,7 @@
//#include <sys/user.h>
#include <netinet/ip.h>
#include <netinet/tcp.h>
+#include <qemu-common.h>
#define termios host_termios
#define winsize host_winsize
@@ -4657,7 +4658,11 @@
ret = get_errno(fsync(arg1));
break;
case TARGET_NR_clone:
+#if !defined(TARGET_SH4)
ret = get_errno(do_fork(cpu_env, arg1, arg2, arg3, arg4, arg5));
+#else
+ ret = get_errno(do_fork(cpu_env, arg1, arg2, arg3, arg5, arg4));
+#endif
break;
#ifdef __NR_exit_group
/* new thread calls */