qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] Win64 host port


From: Filip Navara
Subject: Re: [Qemu-devel] Win64 host port
Date: Sat, 1 Aug 2009 18:39:37 +0200

On Sat, Aug 1, 2009 at 6:31 PM, Alexander Graf<address@hidden> wrote:
>
> On 01.08.2009, at 13:41, Filip Navara wrote:
>
>> Hi,
>>
>> for anyone interested I have pushed my Win64 host port of QEMU to
>> git://repo.or.cz/qemu/navara.git. I'm eventually planning to clean it
>> up and submit it as patches, but I have already way too long patch
>> queue now. Only i386 and ARM targets were tested and it is as stable
>> as the Win32 port.
>
> Wow, congratulations!
>
> How did you get around the sizeof(ulong) != sizeof(void*) problems?

I replaced all the uses of "long" with intptr_t where it was used to
store pointer values. Similarly "unsigned long" was replaced by
"uintptr_t". In some places the conversions to integer types are
unnecessary, but I didn't try to cleanup the code yet.

Another problem was with the printf format specifiers where I had to
use PRIuPTR / PRIxPTR macros instead of the hard-coded "l" specifier.

Both of these features are specified in C99 standard and should be
available on all systems QEMU runs on. Thanks to malc the code is now
tested to compile on PowerPC host.

Best regards,
Filip Navara




reply via email to

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