From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:59455) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ua1HA-0003e5-KO for qemu-devel@nongnu.org; Wed, 08 May 2013 06:07:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ua1H7-0004fC-Pe for qemu-devel@nongnu.org; Wed, 08 May 2013 06:07:08 -0400 References: <86sj20rql4.fsf@shell.gmplib.org> <5187ECAD.4050901@suse.de> <86obcorn76.fsf@shell.gmplib.org> <15FCEEAE-FE2D-44B9-9DC3-5419B29D5B16@suse.de> <86a9o7qe3u.fsf_-_@shell.gmplib.org> <86fvxypyru.fsf_-_@shell.gmplib.org> <518935E4.70908@suse.de> <8638typsnp.fsf@shell.gmplib.org> <86ppx2oaen.fsf@shell.gmplib.org> <20130508065009.GP5000@ohm.aurel32.net> <86k3n9omj3.fsf@shell.gmplib.org> <74FDF56A-042E-426C-805B-9CD334373DE2@suse.de> <291613D8-3B7F-4FDE-B7E8-AB6CDC0EC7C7@suse.de> From: Torbjorn Granlund Sender: tg@gmplib.org Date: Wed, 08 May 2013 12:07:04 +0200 In-Reply-To: <291613D8-3B7F-4FDE-B7E8-AB6CDC0EC7C7@suse.de> (Alexander Graf's message of "Wed\, 8 May 2013 11\:57\:29 +0200") Message-ID: <8661ytokdz.fsf@shell.gmplib.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [Qemu-ppc] Incorrect handling of more PPC64 insns (PATCH) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf Cc: qemu-ppc@nongnu.org, qemu-devel@nongnu.org, Richard Henderson Alexander Graf writes: Ok, so the real problem here is that NARROW_MODE is not set, but is used to differentiate whether to use the 32bit cmp only or not. =20=20 Eh? Richard, there are 2 ways out of this: =20=20 1) get rid of NARROW_MODE and always check ctx->sf No! The cmp insn with L set should NOT be affected by SF. That's the entire point of my change. I reviewed the other uses of NARROW_MODE and didn't spot any errors. (But I must confess that I would need to red the PPC manuals better inn order to tell for sure.) 2) add a new 32bit only insns flag and create separate functions for 32= bit cmp calls =20=20 Aurelien's patch looked promising, if one removes the exception casting. --=20 Torbj=C3=B6rn