From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C0fbr-0001Ab-8w for qemu-devel@nongnu.org; Fri, 27 Aug 2004 08:13:35 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C0fbp-00019q-73 for qemu-devel@nongnu.org; Fri, 27 Aug 2004 08:13:34 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C0fbo-00019f-R2 for qemu-devel@nongnu.org; Fri, 27 Aug 2004 08:13:32 -0400 Received: from [62.210.190.9] (helo=brazzaville.magic.fr) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C0fWl-0004zq-Pr for qemu-devel@nongnu.org; Fri, 27 Aug 2004 08:08:20 -0400 Subject: Re: [Qemu-devel] qemu-darwin-user From: Jocelyn Mayer In-Reply-To: <174BFB3D-F81A-11D8-8547-000A2796D230@opendarwin.org> References: <174BFB3D-F81A-11D8-8547-000A2796D230@opendarwin.org> Content-Type: text/plain Message-Id: <1093608499.12219.83.camel@jma1.dev.netgem.com> Mime-Version: 1.0 Date: Fri, 27 Aug 2004 14:08:19 +0200 Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu mailing list Cc: Pierre d'Herbemont , Darwine List On Fri, 2004-08-27 at 13:13, Pierre d'Herbemont wrote: > Hi all, Hi, > I have done some work on the darwin-user side. Since it doesn't work > yet, I don't submit patch for it but I have updated the qemu branch on > opendarwin [1][2], and you can now ./configure > --target-list=i386-darwin-user. Basically it can load a Fat or a > regular binary, and have the dynamic linker called. Unfortunately it > crashes somewhere in _dyld_reloc right now. You may be interressed to know that I have working code for BSD/Darwin program emulation, including working FAT/mach-O loader. In fact, I was working on Darwin emulation before I integrate my PPC emulation code into Qemu. As I already emulated all basic syscalls & sysctl for the 4 BSD flavours (Net, Open, Free & Darwin), but Mach ones, you may like to get my code. This code used to be in the Linux kernel but I can easily adapt it for Qemu. The big missing parts to allow the execution of complex programs are mach syscalls and signals management, but I guess this part can be taken from Linux-user emulation with a few changes. -- Jocelyn Mayer Never organized