qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] non linux host?


From: Jocelyn Mayer
Subject: Re: [Qemu-devel] non linux host?
Date: 11 Aug 2003 18:33:56 +0200

On Sat, 2003-08-09 at 16:07, Gerhard Pfeiffer wrote:
> Hi,
> 
> On Sat, Aug 09, 2003 at 01:27:32PM +0200, Jocelyn Mayer wrote:
> > > Can qemu compile on a non-linux host? will it run? is it possible to 
> > > make it do this? or does the basic design of qemu make this impossible. 
> > > I'm running MacOSX (mach kernel w/ most of freebsd on top). is this any 
> > > kind of possible? :-)
> > I tried to compile qemu on MacOS X some times ago.
> > There are some headers to adjust to make the core compile.
> > This can be done in a portable way, for all BSD flavors and should be
> > easy.
> 
> Which headers are these? When I try to compile it, there seem to be some
> elf-headers needed.

the headers like linux/*.h or asm/*.h
have to be replaced with the right headers from machine/*.h
on BSD OSes.
> 
> > But the syscall and ioctl handlers must be rewrote.
> > This can be quite long and not so funny.
> > But there's no real problem to adapt it,
> > except that it hasn't been done yet !
> 
> in http://mail.gnu.org/archive/html/qemu-devel/2003-07/msg00084.html Fabrice
> said, that ELF binutils/gcc would be needed to compile some parts of qemu.
> How to get ELF binutils/gcc in darwin? One would also need an
> elf-compatible-libc to compile things with it, if I'm taken right.
> 
I think the libc won't be a problem, as long as GNU ld is supposed to be
able to link files of different binary formats.
I think you can produce ELF binaries with the Darwin's binutils,
but I didn't check that point. But you can still install antoher
binutils version, able to produce ELF and mach-O binaries,
if you compile them from the Apple tarball.


> > Just have to find the courageous one who'll do the work :-)
> 
> How about you? ;-)

I'll think of it :-)
I already did something related to this.
I have a emulation for BSD under Linux.It's not complete and 
works only qith simple programs...
But for now, I want to have a functional PPC emulation in qemu
and see it integrated before I start something like this.
It would be a good train for me to know better BSD and improve my BSD
emulator :=) 

Regards.

-- 
Jocelyn Mayer <address@hidden>





reply via email to

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