Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LW97l-0004Ul-B0 for qemu-devel@nongnu.org; Sun, 08 Feb 2009 07:51:01 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LW97i-0004Tw-FB for qemu-devel@nongnu.org; Sun, 08 Feb 2009 07:51:00 -0500 Received: from [199.232.76.173] (port=33837 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LW97i-0004Ts-5W for qemu-devel@nongnu.org; Sun, 08 Feb 2009 07:50:58 -0500 Received: from savannah.gnu.org ([199.232.41.3]:36304 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LW97h-0002d4-Mf for qemu-devel@nongnu.org; Sun, 08 Feb 2009 07:50:57 -0500 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1LW97g-0006qA-Tg for qemu-devel@nongnu.org; Sun, 08 Feb 2009 12:50:56 +0000 Received: from blueswir1 by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1LW97g-0006q5-Jv for qemu-devel@nongnu.org; Sun, 08 Feb 2009 12:50:56 +0000 MIME-Version: 1.0 Errors-To: blueswir1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Blue Swirl Message-Id: Date: Sun, 08 Feb 2009 12:50:56 +0000 Subject: [Qemu-devel] [6554] Load 32 bit ELF BIOS images also on PPC64 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 Revision: 6554 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6554 Author: blueswir1 Date: 2009-02-08 12:50:56 +0000 (Sun, 08 Feb 2009) Log Message: ----------- Load 32 bit ELF BIOS images also on PPC64 Modified Paths: -------------- trunk/hw/ppc_newworld.c trunk/hw/ppc_oldworld.c trunk/target-ppc/cpu.h Modified: trunk/hw/ppc_newworld.c =================================================================== --- trunk/hw/ppc_newworld.c 2009-02-08 12:49:13 UTC (rev 6553) +++ trunk/hw/ppc_newworld.c 2009-02-08 12:50:56 UTC (rev 6554) @@ -125,13 +125,6 @@ qemu_register_reset(&cpu_ppc_reset, env); envs[i] = env; } - if (env->nip < 0xFFF80000) { - /* Special test for PowerPC 601: - * the boot vector is at 0xFFF00100, then we need a 1MB BIOS. - * But the NVRAM is located at 0xFFF04000... - */ - cpu_abort(env, "Mac99 hardware can not handle 1 MB BIOS\n"); - } /* allocate RAM */ ram_offset = qemu_ram_alloc(ram_size); Modified: trunk/hw/ppc_oldworld.c =================================================================== --- trunk/hw/ppc_oldworld.c 2009-02-08 12:49:13 UTC (rev 6553) +++ trunk/hw/ppc_oldworld.c 2009-02-08 12:50:56 UTC (rev 6554) @@ -152,13 +152,6 @@ qemu_register_reset(&cpu_ppc_reset, env); envs[i] = env; } - if (env->nip < 0xFFF80000) { - /* Special test for PowerPC 601: - * the boot vector is at 0xFFF00100, then we need a 1MB BIOS. - * But the NVRAM is located at 0xFFF04000... - */ - cpu_abort(env, "G3 Beige Mac hardware can not handle 1 MB BIOS\n"); - } /* allocate RAM */ if (ram_size > (2047 << 20)) { Modified: trunk/target-ppc/cpu.h =================================================================== --- trunk/target-ppc/cpu.h 2009-02-08 12:49:13 UTC (rev 6553) +++ trunk/target-ppc/cpu.h 2009-02-08 12:50:56 UTC (rev 6554) @@ -66,7 +66,8 @@ #define TARGET_HAS_ICE 1 -#if defined (TARGET_PPC64) +/* Load a 32 bit BIOS also on 64 bit machines */ +#if defined (TARGET_PPC64) && defined(CONFIG_USER_ONLY) #define ELF_MACHINE EM_PPC64 #else #define ELF_MACHINE EM_PPC