From: TeLeMan Date: Fri, 12 Mar 2010 11:38:06 +0000 (+0800) Subject: target-i386: fix commit c22549204a6edc431e8e4358e61bd56386ff6957 X-Git-Tag: TizenStudio_2.0_p2.3~5409 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3d11b6fef09af186ea2b4cd67e083c30374d7d8f;p=sdk%2Femulator%2Fqemu.git target-i386: fix commit c22549204a6edc431e8e4358e61bd56386ff6957 The commit c22549204a6edc431e8e4358e61bd56386ff6957 led movntps & movntdq to be translated incorrectly. Signed-off-by: TeLeMan Signed-off-by: Aurelien Jarno --- diff --git a/target-i386/translate.c b/target-i386/translate.c index 9dafc88..28d9940 100644 --- a/target-i386/translate.c +++ b/target-i386/translate.c @@ -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, ®_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;