qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] SH4 TARGET_NR_clone


From: Thiemo Seufer
Subject: Re: [Qemu-devel] SH4 TARGET_NR_clone
Date: Thu, 10 Jul 2008 10:48:53 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

michael wrote:
> Hi,
>
> This patch fix the call of Clone in SH4 system

What exactly does it fix? The kernel side of sys_clone seems to be no
different to other architectures.


Thiemo


> 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]