aboutsummaryrefslogtreecommitdiff
path: root/target-i386/op.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-03-03 01:14:55 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-03-03 01:14:55 +0000
commit313132138a91f90f270510a06db549c3fd7466bf (patch)
treebe20d75ced7dd49d40b1a0a01a18544a3468060c /target-i386/op.c
parentd057099aa813f3a8a7766c2b352d7da90754caf2 (diff)
x86_64 fixes
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1324 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-i386/op.c')
-rw-r--r--target-i386/op.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/target-i386/op.c b/target-i386/op.c
index fed0fca93c..dd9d7bad1f 100644
--- a/target-i386/op.c
+++ b/target-i386/op.c
@@ -286,8 +286,8 @@ void OPPROTO op_imull_EAX_T0(void)
{
int64_t res;
res = (int64_t)((int32_t)EAX) * (int64_t)((int32_t)T0);
- EAX = res;
- EDX = res >> 32;
+ EAX = (uint32_t)(res);
+ EDX = (uint32_t)(res >> 32);
CC_DST = res;
CC_SRC = (res != (int32_t)res);
}