Received: from eggs.gnu.org ([140.186.70.92]:34932) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R22hs-00008y-Pk for qemu-devel@nongnu.org; Fri, 09 Sep 2011 11:09:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R22ho-0008IE-1D for qemu-devel@nongnu.org; Fri, 09 Sep 2011 11:09:28 -0400 Received: from fe01x03-cgp.akado.ru ([77.232.31.164]:64546 helo=akado.ru) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R22hn-0008I8-Of for qemu-devel@nongnu.org; Fri, 09 Sep 2011 11:09:23 -0400 Date: Fri, 9 Sep 2011 19:09:04 +0400 (MSD) From: malc In-Reply-To: <1315547917-12226-1-git-send-email-david@gibson.dropbear.id.au> Message-ID: References: <1315547917-12226-1-git-send-email-david@gibson.dropbear.id.au> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [Qemu-devel] [PATCH] tcg/ppc64: Fix zero extension code generation bug for ppc64 host List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: David Gibson Cc: agraf@suse.de, qemu-devel@nongnu.org On Fri, 9 Sep 2011, David Gibson wrote: > From: Thomas Huth > > The ppc64 code generation backend uses an rldicr (Rotate Left Double > Immediate and Clear Right) instruction to implement zero extension of > a 32 bit quantity to a 64 bit quantity (INDEX_op_ext32u_i64). However > this is wrong - this instruction clears specified low bits of the > value, instead of high bits as we require for a zero extension. It > should instead use an rldicl (Rotate Left Double Immediate and Clear > Left) instruction. > > Presumably amongst other things, this causes the SLOF firmware image > used with -M pseries to not boot on a ppc64 host. > > It appears this bug was exposed by commit > 0bf1dbdcc935dfc220a93cd990e947e90706aec6 (tcg/ppc64: fix 16/32 mixup) > which enabled the use of the op_ext32u_i64 operation on the ppc64 > backend. > Bloody ibm blefuscudians... Thanks, applied. [..snip..] -- mailto:av1474@comtv.ru