]> git.proxmox.com Git - mirror_qemu.git/commitdiff
target-i386: fix commit c22549204a6edc431e8e4358e61bd56386ff6957
authorTeLeMan <geleman@gmail.com>
Fri, 12 Mar 2010 11:38:06 +0000 (19:38 +0800)
committerAurelien Jarno <aurelien@aurel32.net>
Sat, 13 Mar 2010 10:35:55 +0000 (11:35 +0100)
The commit c22549204a6edc431e8e4358e61bd56386ff6957 led movntps &
movntdq to be translated incorrectly.

Signed-off-by: TeLeMan <geleman@gmail.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
target-i386/translate.c

index 9dafc880bfdbb14f4e8a346c9f3bf018ab8915d9..28d9940ef6901200cb2f924aa6ccc9592bb96551 100644 (file)
@@ -3163,6 +3163,11 @@ static void gen_sse(DisasContext *s, int b, target_ulong pc_start, int rex_r)
         case 0x1e7: /* movntdq */
         case 0x02b: /* movntps */
         case 0x12b: /* movntps */
+            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]));
+            break;
         case 0x3f0: /* lddqu */
             if (mod == 3)
                 goto illegal_op;