From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C0fkc-0005qn-F1 for qemu-devel@nongnu.org; Fri, 27 Aug 2004 08:22:38 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C0fkZ-0005pv-UQ for qemu-devel@nongnu.org; Fri, 27 Aug 2004 08:22:37 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C0fkZ-0005pY-P0 for qemu-devel@nongnu.org; Fri, 27 Aug 2004 08:22:35 -0400 Received: from [62.210.158.46] (helo=teheran.magic.fr) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C0ffa-0006b1-As for qemu-devel@nongnu.org; Fri, 27 Aug 2004 08:17:26 -0400 Subject: Re: [Qemu-devel] qemu-darwin-user From: Jocelyn Mayer In-Reply-To: <1093608499.12219.83.camel@jma1.dev.netgem.com> References: <174BFB3D-F81A-11D8-8547-000A2796D230@opendarwin.org> <1093608499.12219.83.camel@jma1.dev.netgem.com> Content-Type: text/plain Message-Id: <1093609046.12220.86.camel@jma1.dev.netgem.com> Mime-Version: 1.0 Date: Fri, 27 Aug 2004 14:17:26 +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 14:08, Jocelyn Mayer wrote: > 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. Just forgot to say that this emulation used to work for PPC binaries as well as for x86 ones... -- Jocelyn Mayer Never organized