qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] SH4 TARGET_NR_clone


From: michael
Subject: [Qemu-devel] SH4 TARGET_NR_clone
Date: Thu, 10 Jul 2008 11:20:50 +0200
User-agent: Thunderbird 2.0.0.14 (X11/20080502)

Hi,

This patch fix the call of Clone in SH4 system

Regards Michael

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 */

reply via email to

[Prev in Thread] Current Thread [Next in Thread]