From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HVcQ1-0007oP-VW for qemu-devel@nongnu.org; Sun, 25 Mar 2007 19:46:38 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HVcQ1-0007nx-0T for qemu-devel@nongnu.org; Sun, 25 Mar 2007 19:46:37 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HVcQ0-0007no-PI for qemu-devel@nongnu.org; Sun, 25 Mar 2007 18:46:36 -0500 Received: from wx-out-0506.google.com ([66.249.82.231]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HVcNp-00032g-3T for qemu-devel@nongnu.org; Sun, 25 Mar 2007 19:44:21 -0400 Received: by wx-out-0506.google.com with SMTP id i30so2916379wxd for ; Sun, 25 Mar 2007 16:44:19 -0700 (PDT) Message-ID: <4607094F.7000704@codemonkey.ws> Date: Sun, 25 Mar 2007 18:44:15 -0500 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] [RFC/experimental patch] qemu (x86_64 on x86_64 -no-kqemu) compiles with gcc4 and works References: <200703241850.03116.axel.zeuner@gmx.de> <460586D0.7030209@codemonkey.ws> <200703251412.07039.Axel.Zeuner@gmx.de> In-Reply-To: <200703251412.07039.Axel.Zeuner@gmx.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed 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: Axel Zeuner Cc: qemu-devel@nongnu.org Axel Zeuner wrote: > On Saturday 24 March 2007 21:15, Anthony Liguori wrote: > >> The tricky thing I still can't figure out is how to get ASM_SOFTMMU >> working. The problem is GLUE(st, SUFFIX) function. First GCC cannot >> deal with the register pressure. The problem I can't seem to fix though >> is that GCC sticks %1 in %esi because we're only using an "r" >> constraint, not a "q" constraint. This results in the generation of >> %sib which is an invalid register. However, refactoring the code to not >> require a "q" constraint doesn't seem to help either. >> > Hi Anthony, > could you please try the attached patch for softmmu_header.h? Allows compiling > with gcc4 and ASM_SOFTMMU. > That did the trick. Could you explain what your changes did? Regards, Anthony Liguori > Kind regards > Axel >