[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [Qemu-devel] [PATCH] get qemu to compile as 64-bit on Mac
From: |
C.W. Betts |
Subject: |
RE: [Qemu-devel] [PATCH] get qemu to compile as 64-bit on Mac |
Date: |
Fri, 6 Jun 2008 02:13:20 -0700 |
----------------------------------------
> From: address@hidden
> To: address@hidden
> Subject: Re: [Qemu-devel] [PATCH] get qemu to compile as 64-bit on Mac
> Date: Tue, 3 Jun 2008 09:51:07 +0200
>
> Hi,
>
> Am 02.06.2008 um 23:25 schrieb C.W. Betts:
>
>> This patch makes it so that you can compile qemu on Mac OS X Leopard
>> as a 64-bit app. This is heavily based on an earlier patch that had
>> the same goal.
>
> Could you clarify that? I assume you mean Alexander Graf's patch - I
> remember it being split in multiple parts and being much larger. Is
> the reduction due to TCG? Or what's the difference?
>
Yes, it was based on Alexander Graf's patch, and I deliberately didn't add
parts that would mess with dyngen. In fact, the only host that I can build
dyngen on is PowerPC 32-bit. It also seems to work on GCC 4. It might compile
on 64-bit PowerPC, but I think it would be looking for code in 32-bit PowerPC
and not 64-bit PowerPC. That and the only targets that still use dyngen are
PPC and MIPS.
>> Hint: in order to build qemu on another architecture, you have to
>> modify the config-host.mak and the config-host.h file. You have to
>> set the ARCH_CFLAGS and ARCH_LDFLAGS in the .mak file to match the
>> architecture that you want to build("-m32 -arch ppc" for PowerPC, "-
>> m64 -arch x86_64" for 64-bit Intel, etc…), as well as the ARCH
>> flag. In the header file, change the HOST_PPC or HOST_I386 to the
>> processor you want to build on.
And one thing I forgot was to make sure the HOST_LONG_BITS is the right amount;
Mac OS X uses LP64 and, as such, Longs would be 64 instead of 32 on 64-bit
Hosts.
_________________________________________________________________
Enjoy 5 GB of free, password-protected online storage.
http://www.windowslive.com/skydrive/overview.html?ocid=TXT_TAGLM_WL_Refresh_skydrive_062008