qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] Re: User mode emulation's clone does not seem to work with


From: michael
Subject: [Qemu-devel] Re: User mode emulation's clone does not seem to work with glibc >= 2.4's fork
Date: Mon, 30 Jun 2008 21:55:57 +0200
User-agent: Thunderbird 2.0.0.14 (X11/20080502)

Hi,

Paul Brook wrote:
On Tuesday 29 April 2008, Lubomir Kundrak wrote:
I tried to run SH4 binaries linked with glibc-2.8 with qemu-sh4. fork()
system call was always returning with "Invalid argument".

qemu doesn't currently support NPTL. I'm working on it.

Paul



I'm working on sh4 to provide an NPTL support. I just force the
NPTL support of sh4 in the configuration and add the cpu_set_tls
using the env->gbr. I have sh:
../nptl/sysdeps/unix/sysv/linux/sh/../fork.c:138: __libc_fork: Assertion
`(self->tid) != ppid this assertion in tforhe libc code. The
child_tidptr is nil, so I can't set the tid for the child. I change
the code of the fork like this:

#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

An know seem to work the sh4 target. I think that is not the only change. Is it right?

Regards Michael









reply via email to

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