Patchwork target-i386: fix lddqu SSE instruction

login
register
mail settings
Submitter Aurelien Jarno
Date March 6, 2010, 6:16 p.m.
Message ID <1267899413-22882-1-git-send-email-aurelien@aurel32.net>
Download mbox | patch
Permalink /patch/47053/
State New
Headers show

Comments

Aurelien Jarno - March 6, 2010, 6:16 p.m.
This instruction load data from memory to register and not the reverse.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
---
 target-i386/translate.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/target-i386/translate.c b/target-i386/translate.c
index a597e80..525a83b 100644
--- a/target-i386/translate.c
+++ b/target-i386/translate.c
@@ -3167,7 +3167,7 @@  static void gen_sse(DisasContext *s, int b, target_ulong pc_start, int rex_r)
             if (mod == 3)
                 goto illegal_op;
             gen_lea_modrm(s, modrm, &reg_addr, &offset_addr);
-            gen_sto_env_A0(s->mem_index, offsetof(CPUX86State,xmm_regs[reg]));
+            gen_ldo_env_A0(s->mem_index, offsetof(CPUX86State,xmm_regs[reg]));
             break;
         case 0x22b: /* movntss */
         case 0x32b: /* movntsd */