From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FmgRJ-0004JV-2x for qemu-devel@nongnu.org; Sat, 03 Jun 2006 20:25:57 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FmgRH-0004J7-IK for qemu-devel@nongnu.org; Sat, 03 Jun 2006 20:25:56 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FmgRH-0004J4-Ej for qemu-devel@nongnu.org; Sat, 03 Jun 2006 20:25:55 -0400 Received: from [193.1.169.34] (helo=dakota.ucd.ie) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FmgY5-0006R3-AR for qemu-devel@nongnu.org; Sat, 03 Jun 2006 20:32:57 -0400 Received: from conversion-daemon.dakota.ucd.ie by dakota.ucd.ie (Sun Java System Messaging Server 6.2-2.05 (built Apr 28 2005)) id <0J0B00B017FMC300@dakota.ucd.ie> (original mail from greenrd@greenrd.org) for qemu-devel@nongnu.org; Sun, 04 Jun 2006 01:25:54 +0100 (IST) Received: from localhost.localdomain ([193.1.132.151]) by dakota.ucd.ie (Sun Java System Messaging Server 6.2-2.05 (built Apr 28 2005)) with ESMTP id <0J0B00BXB7V62Y30@dakota.ucd.ie> for qemu-devel@nongnu.org; Sun, 04 Jun 2006 01:25:54 +0100 (IST) Date: Sun, 04 Jun 2006 01:31:03 +0100 From: Robin Green Message-id: <20060604013103.7b174ac0@localhost.localdomain> MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: [Qemu-devel] Patch: Fix rip-relative addressing for SSE compare Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This patch corrects a bug with rip-relative addressing for some SSE compare instructions on x86_64. This makes GNU wget work on x86_64. -- Robin Index: target-i386/translate.c =================================================================== RCS file: /sources/qemu/qemu/target-i386/translate.c,v retrieving revision 1.56 diff -u -b -r1.56 translate.c --- target-i386/translate.c 24 Apr 2006 20:14:56 -0000 1.56 +++ target-i386/translate.c 4 Jun 2006 00:22:25 -0000 @@ -2990,6 +2990,8 @@ gen_op_andl_A0_ffff(); } gen_add_A0_ds_seg(s); + } else if (b == 0xc2) { + s->rip_offset++; } if (is_xmm) { op1_offset = offsetof(CPUX86State,xmm_regs[reg]);