From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LdR9D-0003N9-6J for qemu-devel@nongnu.org; Sat, 28 Feb 2009 10:30:39 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LdR9B-0003Mj-Ir for qemu-devel@nongnu.org; Sat, 28 Feb 2009 10:30:38 -0500 Received: from [199.232.76.173] (port=44086 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LdR9B-0003Mg-FF for qemu-devel@nongnu.org; Sat, 28 Feb 2009 10:30:37 -0500 Received: from mail-bw0-f171.google.com ([209.85.218.171]:41901) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LdR9B-0007v5-0O for qemu-devel@nongnu.org; Sat, 28 Feb 2009 10:30:37 -0500 Received: by bwz19 with SMTP id 19so1302928bwz.34 for ; Sat, 28 Feb 2009 07:30:36 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <1235833386-30272-1-git-send-email-agraf@suse.de> References: <1235833386-30272-1-git-send-email-agraf@suse.de> Date: Sat, 28 Feb 2009 17:30:35 +0200 Message-ID: Subject: Re: [Qemu-devel] [PATCH] Make the ELF loader aware of backwards compatibility From: Blue Swirl Content-Type: text/plain; charset=UTF-8 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 Cc: Alexander Graf 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.