From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:50827) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ua6hM-0007Po-Pj for qemu-devel@nongnu.org; Wed, 08 May 2013 11:54:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ua6hJ-0005Ka-Bj for qemu-devel@nongnu.org; Wed, 08 May 2013 11:54:32 -0400 References: <1368019560-25218-1-git-send-email-agraf@suse.de> <20130508142515.GS5000@ohm.aurel32.net> <86sj1xv87d.fsf@shell.gmplib.org> <20130508150412.GB31148@hall.aurel32.net> From: Torbjorn Granlund Sender: tg@gmplib.org Date: Wed, 08 May 2013 17:54:27 +0200 In-Reply-To: <20130508150412.GB31148@hall.aurel32.net> (Aurelien Jarno's message of "Wed\, 8 May 2013 17\:04\:12 +0200") Message-ID: <86d2t1v558.fsf@shell.gmplib.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] PPC: Depend behavior of cmp instructions only on instruction encoding List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-ppc@nongnu.org, qemu-devel@nongnu.org Aurelien Jarno writes: As it seems you have good contact with IBM, could you please ask them to fix their manuals? =20=20 What flaw have your found? At least Freescale CPUs match what IBM documentation says. Which ones? Freescale 7447 and Freescale e500 disagree. (Or at least some versions of these chips, perhaps newer e500 steppings ignore the L bit.) IBM CPUs don't. =20=20 Which ones? No it's not correct, it doesn't match neither Freescale nor IBM behaviour. It also means the same code executed on a 32-bit emulated CPU run with qemu-system-ppc will behave differently than when run with qemu-system-ppc64. This is fine for now as we are in freeze period, but should be fixed afterwards. =20=20 I think one should check if it is a 64-bit CPU vs 32-bit CPU, as your patch did. (If I read it correctly; while I am an expert in the area, I am very little familiar with qemu's innards.) Except that it should probably not cast an exception (but I think either way there is no calamity). --=20 Torbj=C3=B6rn