Received: from [140.186.70.92] (port=45940 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pfe1w-0006gb-3x for qemu-devel@nongnu.org; Wed, 19 Jan 2011 14:49:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pfe1u-0007fT-H3 for qemu-devel@nongnu.org; Wed, 19 Jan 2011 14:49:19 -0500 Received: from fmmailgate02.web.de ([217.72.192.227]:58546) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pfe1u-0007fP-B6 for qemu-devel@nongnu.org; Wed, 19 Jan 2011 14:49:18 -0500 Message-Id: From: =?ISO-8859-1?Q?Andreas_F=E4rber?= In-Reply-To: <1295387036-16961-1-git-send-email-hpoussin@reactos.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v936) Date: Wed, 19 Jan 2011 20:49:14 +0100 References: <1295387036-16961-1-git-send-email-hpoussin@reactos.org> Sender: andreas.faerber@web.de Subject: [Qemu-devel] Re: [PATCH 1/2] prep: Remove bogus BIOS size check List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?ISO-8859-1?Q?Herv=E9_Poussineau?= Cc: qemu-devel@nongnu.org, Alexander Graf Am 18.01.2011 um 22:43 schrieb Herv=E9 Poussineau: > From: Andreas F=E4rber > > r3480 added this check to account for the entry vector 0xfff00100 to =20= > be > available for CPUs that need it. Today however, the NIP is not yet > initialized at this point (zero), so the check always triggers. > > Moreover, BIOS size check is already done previously, so this part can > be removed too. > > Cc: Alexander Graf > Signed-off-by: Andreas F=E4rber > Signed-off-by: Herv=E9 Poussineau > --- > hw/ppc_prep.c | 3 --- > 1 files changed, 0 insertions(+), 3 deletions(-) > > diff --git a/hw/ppc_prep.c b/hw/ppc_prep.c > index 1492266..6b22122 100644 > --- a/hw/ppc_prep.c > +++ b/hw/ppc_prep.c > @@ -600,9 +600,6 @@ static void ppc_prep_init (ram_addr_t ram_size, > if (filename) { > qemu_free(filename); > } > - if (env->nip < 0xFFF80000 && bios_size < 0x00100000) { > - hw_error("PowerPC 601 / 620 / 970 need a 1MB BIOS\n"); > - } I've been thinking if we could replace this with a check for env-=20 >excep_prefix + env->hreset_vector or similar but haven't found the =20 time to try it out yet. Andreas > > if (linux_boot) { > kernel_base =3D KERNEL_LOAD_ADDR; > --=20 > 1.7.2.3 >