From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MXHcS-0003Eq-Fg for qemu-devel@nongnu.org; Sat, 01 Aug 2009 12:39:40 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MXHcR-0003DK-W1 for qemu-devel@nongnu.org; Sat, 01 Aug 2009 12:39:40 -0400 Received: from [199.232.76.173] (port=36841 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MXHcR-0003DA-O7 for qemu-devel@nongnu.org; Sat, 01 Aug 2009 12:39:39 -0400 Received: from ey-out-1920.google.com ([74.125.78.144]:8542) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MXHcR-0003e9-5K for qemu-devel@nongnu.org; Sat, 01 Aug 2009 12:39:39 -0400 Received: by ey-out-1920.google.com with SMTP id 5so569620eyb.4 for ; Sat, 01 Aug 2009 09:39:38 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <5b31733c0908010441t70134f2ascb0d7be8e09c44b1@mail.gmail.com> Date: Sat, 1 Aug 2009 18:39:37 +0200 Message-ID: <5b31733c0908010939h3acae278y849526f2cf3996a1@mail.gmail.com> Subject: Re: [Qemu-devel] Win64 host port From: Filip Navara Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf Cc: qemu-devel On Sat, Aug 1, 2009 at 6:31 PM, Alexander Graf 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