From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CAauG-00073R-9t for qemu-devel@nongnu.org; Thu, 23 Sep 2004 17:13:36 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CAauC-00073E-G4 for qemu-devel@nongnu.org; Thu, 23 Sep 2004 17:13:36 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CAauC-00073B-EC for qemu-devel@nongnu.org; Thu, 23 Sep 2004 17:13:32 -0400 Received: from [62.210.190.9] (helo=brazzaville.magic.fr) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CAanf-00049b-1A for qemu-devel@nongnu.org; Thu, 23 Sep 2004 17:06:47 -0400 Received: from [10.0.0.2] (ppp-181.net-555.magic.fr [62.210.255.181]) by brazzaville.magic.fr (8.11.6/8.11.6) with ESMTP id i8NL6gb30207 for ; Thu, 23 Sep 2004 23:06:42 +0200 Subject: Re: [Qemu-devel] AMD64 Gentoo needs help From: "J. Mayer" In-Reply-To: References: Content-Type: text/plain Message-Id: <1095973611.19743.50.camel@rapid> Mime-Version: 1.0 Date: Thu, 23 Sep 2004 23:06:51 +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-devel@nongnu.org On Thu, 2004-09-23 at 22:21, Martin Garton wrote: > On Thu, 23 Sep 2004, jmf wrote: > Hi, > > I treid that and before the segfault below happen, now a black window > > appears and dissappears very quickly > > I believe the problem is that qemu is not 64bit clean code because it does > things like casting from pointers to ints and back which is okay when they > are the same size (ie, on x86) but not when a pointer is twice as long as > an int (ie, on amd64) You will have seen warnings about this when > compiling. You may like to know that the ppc emulation runs well on amd64. A lots of 64 bits cleanup have already been made. The warning you get during compilation (should) concern only addresses in the emulated environment. As qemu only emulates 32 bits machines for now, it's not a real issue. The only way I ever succeeded running qemu-x86 on amd64 is to compile and execute it into a 32 bits chrooted environment: I got a full 32 bits gentoo into a separate partition to achieve this. > > I looked at the code with a view to making it amd64 friendly, but I'm out > of my depth. If someone wants to give me some hints I might find some > time to have another look though. I think the issues may be located in or very near the x86 emulation code. I never had the courage to compare step by step the execution in the 32 bits vs the 64 bits environment to find where is the bug, but I really think there is just a few bugs to locate and fix. Regards. -- J. Mayer Never organized