From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=49346 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OUlip-00057Q-TE for qemu-devel@nongnu.org; Fri, 02 Jul 2010 15:16:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OUlio-00077e-Ow for qemu-devel@nongnu.org; Fri, 02 Jul 2010 15:16:23 -0400 Received: from mail-fx0-f45.google.com ([209.85.161.45]:46642) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OUlio-00077J-KD for qemu-devel@nongnu.org; Fri, 02 Jul 2010 15:16:22 -0400 Received: by fxm10 with SMTP id 10so2865171fxm.4 for ; Fri, 02 Jul 2010 12:16:21 -0700 (PDT) Date: Fri, 2 Jul 2010 22:13:00 +0300 From: vic3dexe@gmail.com Message-ID: <275366227.20100702221300@gmail.com> Subject: Re: [Qemu-devel] [Bug 600589] [NEW] xchg r8,rax treated as nop In-Reply-To: References: <20100701120434.6052.96178.malonedeb@potassium.ubuntu.com> <20100701120434.6052.96178.malonedeb@potassium.ubuntu.com> <4C2CBF86.4060100@twiddle.net> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Reply-To: vic3dexe@gmail.com List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: malc Cc: Bug 600589 <600589@bugs.launchpad.net>, qemu-devel@nongnu.org, Richard Henderson You wrote 1 =E8=FE=EB=FF 2010 =E3., 19:43:06: > On Thu, 1 Jul 2010, Richard Henderson wrote: >> On 07/01/2010 05:04 AM, Vic3Dexe wrote: >> > Public bug reported: >> >=20 >> > xchg r8,rax (49h 90h) executed as nop (90h) in long mode, in other wor= ds >> > REX not used. >> >=20 >> > qemu 0.12.4, host Win 7 x64, running qemu-system-x86_64.exe. >> >=20 >> > ** Affects: qemu >> > Importance: Undecided >> > Status: New >> >=20 >>=20 >> Verified. Test case for x86_64-linux-user: >>=20 >> .globl main >> .type main, @function >> main: >> movl $0, %r8d >> movl $1, %eax >> xchgq %r8, %rax >> ret >>=20 >> Expected result is exit status 0. >>=20 > No surprise really: > target-i386/translate.c lines 6665-... > case 0x90: /* nop */ > /* XXX: xchg + rex handling */ > /* XXX: correct lock test for all insn */ > The code to handle that just isn't there. Sorry for inconvenience, I just forgot to look in source. :) Do you plan to fix it in the near future? --=20 Best regards, Vic3dexe mailto:vic3dexe@gmail.com