aboutsummaryrefslogtreecommitdiff
path: root/target-i386/translate.c
diff options
context:
space:
mode:
authorTeLeMan <geleman@gmail.com>2010-03-12 19:38:06 +0800
committerAurelien Jarno <aurelien@aurel32.net>2010-03-13 11:35:55 +0100
commit2e21e7491ff2af3628a97d4652e7adcc6961c2e9 (patch)
tree63583b3c6e54d22789516b5514a2f44c897eb7db /target-i386/translate.c
parent30724e758a21ba9f807efafe268626bd479db9de (diff)
target-i386: fix commit c22549204a6edc431e8e4358e61bd56386ff6957
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>
Diffstat (limited to 'target-i386/translate.c')
-rw-r--r--target-i386/translate.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/target-i386/translate.c b/target-i386/translate.c
index 9dafc880bf..28d9940ef6 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, &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;