From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LhXub-0001XH-AT for qemu-devel@nongnu.org; Wed, 11 Mar 2009 19:32:33 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LhXuZ-0001Vx-Sz for qemu-devel@nongnu.org; Wed, 11 Mar 2009 19:32:32 -0400 Received: from [199.232.76.173] (port=42051 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LhXuZ-0001Vs-LL for qemu-devel@nongnu.org; Wed, 11 Mar 2009 19:32:31 -0400 Received: from kassel160.server4you.de ([62.75.246.160]:36170 helo=csgraf.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LhXuZ-0004mz-7y for qemu-devel@nongnu.org; Wed, 11 Mar 2009 19:32:31 -0400 Message-Id: <278E7B05-94BB-41D0-9F2B-EEE35B9D8DD2@csgraf.de> From: Alexander Graf In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Subject: Re: [Qemu-devel] [PATCH] Make the ELF loader aware of backwards compatibility Date: Thu, 12 Mar 2009 00:32:24 +0100 References: <1235833386-30272-1-git-send-email-agraf@suse.de> 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 Cc: Blue Swirl On 28.02.2009, at 16:30, Blue Swirl wrote: > On 2/28/09, Alexander Graf wrote: >> Most 64 bit architectures I'm aware of support running 32 bit code >> of the same architecture as well. > > For Sparc64 this is only true for userland, kernel level code is not > compatible at all. Sparc64 kernel can run Sparc64 and Sparc32 > binaries, but a Sparc32 kernel will crash on Sparc64. > >> /* Load a 32 bit BIOS also on 64 bit machines */ >> -#if defined (TARGET_PPC64) && defined(CONFIG_USER_ONLY) >> +#if defined (TARGET_PPC64) >> #define ELF_MACHINE EM_PPC64 >> #else >> #define ELF_MACHINE EM_PPC > > The comment should be removed with the hack. I agree. Any functional issues with this patch? -kernel for ppc64 still doesn't work with current SVN :-). Alex