From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=51151 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PEoOB-0002hC-KG for qemu-devel@nongnu.org; Sat, 06 Nov 2010 15:25:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PEoOA-0006eM-Db for qemu-devel@nongnu.org; Sat, 06 Nov 2010 15:25:23 -0400 Received: from fe01x03-cgp.akado.ru ([77.232.31.164]:49306 helo=akado.ru) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PEoOA-0006e7-5M for qemu-devel@nongnu.org; Sat, 06 Nov 2010 15:25:22 -0400 Date: Sat, 6 Nov 2010 22:25:16 +0300 (MSK) From: malc Subject: Re: [Qemu-devel] Bug report about x86 'bt' insn In-Reply-To: Message-ID: References: <86eiay344b.fsf@shell.gmplib.org> <86wroqmhso.fsf@shell.gmplib.org> <20101106185932.GB26083@nightcrawler> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Nathan Froyd Cc: Torbjorn Granlund , qemu-devel@nongnu.org On Sat, 6 Nov 2010, malc wrote: > On Sat, 6 Nov 2010, Nathan Froyd wrote: > > > On Sat, Nov 06, 2010 at 07:24:39PM +0100, Torbjorn Granlund wrote: > > > malc writes: > > > > > > ZF is undefined according to AMD's 24594.pdf page 69. > > > > > > Ah, you're right. It seems that all existing x86 implementations leave > > > ZF alone, though. (I am not arguing that qeum is broken, the bug is in > > > my code.) > > > > FWIW, the Intel manuals (253666, June 2010) state that the ZF flag is > > unaffected, not just undefined. > > (3-94 Vol. 2A BT it Test) > > Flags Affected > The CF flag contains the value of the selected bit. The OF, SF, ZF, AF, > and PF flags are undefined. > And this one was March 2009 (conveniently having the same file name 253666), the September 2010 issue reads differently: Flags Affected The CF flag contains the value of the selected bit. The ZF flag is unaffected. The OF, SF, AF, and PF flags are undefined. -- mailto:av1474@comtv.ru