Received: from eggs.gnu.org ([2001:4830:134:3::10]:41452) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c1Bxx-0002qA-Nw for qemu-devel@nongnu.org; Mon, 31 Oct 2016 08:45:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c1Bxt-0004Zr-KM for qemu-devel@nongnu.org; Mon, 31 Oct 2016 08:45:29 -0400 Received: from indium.canonical.com ([91.189.90.7]:49074) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c1Bxt-0004Yy-EH for qemu-devel@nongnu.org; Mon, 31 Oct 2016 08:45:25 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.76 #1 (Debian)) id 1c1Bxs-0003CE-5m for ; Mon, 31 Oct 2016 12:45:24 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 298E62E80AE for ; Mon, 31 Oct 2016 12:45:24 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Mon, 31 Oct 2016 12:29:40 -0000 From: Thomas Huth <1267955@bugs.launchpad.net> Reply-To: Bug 1267955 <1267955@bugs.launchpad.net> Sender: bounces@canonical.com References: <20140110181559.26014.20123.malonedeb@wampee.canonical.com> Message-Id: <20161031122940.21072.42746.malone@gac.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1267955] Re: [i386] Parity Flag Not Set On xor %eax, %eax List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Fix had been included here: http://git.qemu.org/?p=3Dqemu.git;a=3Dcommitdiff;h=3Dd2fe51bda8adf33d07c21 =3D=3D> Closing ** Changed in: qemu Status: New =3D> Fix Released -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1267955 Title: [i386] Parity Flag Not Set On xor %eax,%eax Status in QEMU: Fix Released Bug description: Tested against qemu-1.7.0 as well as qemu-1.7.50 on Debian Sid Steps To Reproduce $ cat > prog.hex << EOF 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00 02 00 03 00 01 00 00 00 54 80 04 08 34 00 00 00 00 00 00 00 00 00 00 00 34 00 20 00 01 00 28 00 00 00 00 00 01 00 00 00 00 00 00 00 00 80 04 08 00 80 04 08 76 00 00 00 76 00 00 00 05 00 00 00 00 10 00 00 31 c0 9c b8 04 00 00 00 bb 01 00 00 00 89 e1 ba 04 00 00 00 cd 80 b8 01 00 00 00 bb 00 00 00 00 cd 80 EOF $ xxd -p -r prog.hex > prog $ chmod 700 prog $ ./prog | hexdump -vC 00000000 46 02 00 00 |F...| 00000004 $ qemu-i386 ./prog | hexdump -vC 00000000 42 02 00 00 |B...| 00000004 On the other hand if [xor %eax, %eax] (31 c0) is replaced with sub %eax,%eax (29 c0), then the parity flag is set correctly. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1267955/+subscriptions