Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BL8ZU-0004rt-0W for qemu-devel@nongnu.org; Tue, 04 May 2004 18:39:28 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BL7xR-0003OU-63 for qemu-devel@nongnu.org; Tue, 04 May 2004 18:00:40 -0400 Received: from [193.237.130.41] (helo=baythorne.infradead.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.30) id 1BL7VQ-0004u1-Vu for qemu-devel@nongnu.org; Tue, 04 May 2004 17:31:13 -0400 Received: from localhost ([127.0.0.1]) by baythorne.infradead.org with esmtp (Exim 4.32 #1 (Red Hat Linux)) id 1BL7VN-0000YJ-Gi for qemu-devel@nongnu.org; Tue, 04 May 2004 22:31:09 +0100 From: David Woodhouse Content-Type: text/plain Message-Id: <1083706269.26125.1150.camel@imladris.demon.co.uk> Mime-Version: 1.0 Date: Tue, 04 May 2004 22:31:09 +0100 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Stuff. 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 Has anyone considered the possibility of emulating libc, rather than emulating system calls? That's what em86 used to do for emulating i386 code on Alpha -- rather than letting it run a 'real' non-native libc and then emulating only syscalls. I appreciate that syscalls are a far more stable ABI to be emulating, and there are far fewer structures to convert -- but wouldn't it be faster to emulate the library itself? Especially if we can extend that to emulate libX11 too :) It's cute that I have i386 acroread running in a Mozilla window through mozplugger. It'd be cuter if I could get Mozilla plugins running in the _same_ process, rather than in a separate process. ---- Also, why do we do what we do in linux-user/path.c? What does it give us that couldn't be achieved by stat("$prefix/$filename") in a trivial path() function? Other than taking for ever to start up when /usr/gnemul/i386-linux is actually an nfs-mounted root file system from elsewhere. (When I say forever I mean that literally. We keep following symlinks recursively). ---- And is it possible to use the gdbstub when emulating userspace, rather than a whole system? I see my ARM ld.so segfaulting, and I'd like to be able to work out why. -- dwmw2