diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2003-11-11 13:55:33 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2003-11-11 13:55:33 +0000 |
commit | 2e134c9c55cb4f1d8e9aca26360c006624344091 (patch) | |
tree | 3a86082e38b3634376584e3f62ed0ef87a492bff /target-arm/op.c | |
parent | 5391d8066941d9ed0dc32c3e8e02cfcde6a0c53b (diff) |
64-bit multiplication fix (Ulrich Hecht)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@446 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-arm/op.c')
-rw-r--r-- | target-arm/op.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target-arm/op.c b/target-arm/op.c index 5879eba9fd..73f95b7774 100644 --- a/target-arm/op.c +++ b/target-arm/op.c @@ -368,7 +368,7 @@ void OPPROTO op_mul_T0_T1(void) void OPPROTO op_mull_T0_T1(void) { uint64_t res; - res = T0 * T1; + res = (uint64_t)T0 * (uint64_t)T1; T1 = res >> 32; T0 = res; } @@ -377,7 +377,7 @@ void OPPROTO op_mull_T0_T1(void) void OPPROTO op_imull_T0_T1(void) { uint64_t res; - res = (int32_t)T0 * (int32_t)T1; + res = (int64_t)T0 * (int64_t)T1; T1 = res >> 32; T0 = res; } |