Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KGsKJ-0002ox-LB for qemu-devel@nongnu.org; Thu, 10 Jul 2008 05:20:35 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KGsKF-0002ok-KU for qemu-devel@nongnu.org; Thu, 10 Jul 2008 05:20:34 -0400 Received: from [199.232.76.173] (port=40589 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KGsKF-0002od-DG for qemu-devel@nongnu.org; Thu, 10 Jul 2008 05:20:31 -0400 Received: from ms01.sssup.it ([193.205.80.99]:59190 helo=sssup.it) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KGsKE-0007f1-JO for qemu-devel@nongnu.org; Thu, 10 Jul 2008 05:20:31 -0400 Message-ID: <4875D472.5020807@gandalf.sssup.it> Date: Thu, 10 Jul 2008 11:20:50 +0200 From: michael MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------050600050208030505060906" Subject: [Qemu-devel] SH4 TARGET_NR_clone Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Michael Trimarchi This is a multi-part message in MIME format. --------------050600050208030505060906 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, This patch fix the call of Clone in SH4 system Regards Michael --------------050600050208030505060906 Content-Type: text/x-patch; name="syscall_sh4.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="syscall_sh4.patch" This patch implements the correct TARGET_NR_clone for SH4 cpu. Signed-off-by: Michael Trimarchi Index: linux-user/syscall.c =================================================================== --- linux-user/syscall.c (revision 4865) +++ linux-user/syscall.c (working copy) @@ -53,6 +53,7 @@ //#include #include #include +#include #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 */ --------------050600050208030505060906--