qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Robin Green <greenrd@greenrd.org>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] Patch: Fix rip-relative addressing for SSE compare
Date: Sun, 04 Jun 2006 01:31:03 +0100	[thread overview]
Message-ID: <20060604013103.7b174ac0@localhost.localdomain> (raw)

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]);

             reply	other threads:[~2006-06-04  0:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-04  0:31 Robin Green [this message]
2006-06-14 14:29 ` [Qemu-devel] Patch: Fix rip-relative addressing for SSE compare Fabrice Bellard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060604013103.7b174ac0@localhost.localdomain \
    --to=greenrd@greenrd.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).