aboutsummaryrefslogtreecommitdiff
path: root/target-i386
diff options
context:
space:
mode:
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2008-10-01 00:14:39 +0000
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2008-10-01 00:14:39 +0000
commit6dc2d0daee4ca38c81b3d755ef3efd31fcd2fda2 (patch)
tree001c6d2b74a60faddfe44d9289d64001310f7e17 /target-i386
parentd5e49a8199f4dcc74e54b1633f48ed1a19fd9db8 (diff)
downloadqemu-6dc2d0daee4ca38c81b3d755ef3efd31fcd2fda2.zip
qemu-6dc2d0daee4ca38c81b3d755ef3efd31fcd2fda2.tar.gz
qemu-6dc2d0daee4ca38c81b3d755ef3efd31fcd2fda2.tar.bz2
x86 pextrw destination operand can be r64.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5367 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-i386')
-rw-r--r--target-i386/translate.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/target-i386/translate.c b/target-i386/translate.c
index cd9cae2..88d0173 100644
--- a/target-i386/translate.c
+++ b/target-i386/translate.c
@@ -3452,6 +3452,7 @@ static void gen_sse(DisasContext *s, int b, target_ulong pc_start, int rex_r)
case 0x1c5:
if (mod != 3)
goto illegal_op;
+ ot = (s->dflag == 2) ? OT_QUAD : OT_LONG;
val = ldub_code(s->pc++);
if (b1) {
val &= 7;
@@ -3465,7 +3466,7 @@ static void gen_sse(DisasContext *s, int b, target_ulong pc_start, int rex_r)
offsetof(CPUX86State,fpregs[rm].mmx.MMX_W(val)));
}
reg = ((modrm >> 3) & 7) | rex_r;
- gen_op_mov_reg_T0(OT_LONG, reg);
+ gen_op_mov_reg_T0(ot, reg);
break;
case 0x1d6: /* movq ea, xmm */
if (mod != 3) {