Received: from eggs.gnu.org ([208.118.235.92]:40055) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ua1sQ-0002Ge-F4 for qemu-devel@nongnu.org; Wed, 08 May 2013 06:45:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ua1sM-0000Zg-IN for qemu-devel@nongnu.org; Wed, 08 May 2013 06:45:38 -0400 Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset=us-ascii From: Alexander Graf In-Reply-To: <8661ytokdz.fsf@shell.gmplib.org> Date: Wed, 8 May 2013 12:45:30 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: 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> <8661ytokdz.fsf@shell.gmplib.org> 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: Torbjorn Granlund Cc: qemu-ppc@nongnu.org, qemu-devel@nongnu.org, Richard Henderson On 08.05.2013, at 12:07, Torbjorn Granlund wrote: > Alexander Graf writes: >=20 > 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 > Eh? >=20 > Richard, there are 2 ways out of this: >=20 > 1) get rid of NARROW_MODE and always check ctx->sf >=20 > No! >=20 > The cmp insn with L set should NOT be affected by SF. That's the = entire > point of my change. You're right. I got confused there :). >=20 > 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.) >=20 > 2) add a new 32bit only insns flag and create separate functions = for 32bit cmp calls >=20 > Aurelien's patch looked promising, if one removes the exception = casting. His exception casting is actually correct. You can use = qemu-(system-)ppc64, but run it with a CPU definition that is 32bit = only, like a G3. These old CPUs did not know the instruction with L yet, = so they do throw an illegal instruction exception, which we have to = model. Alex