Commit 163a7cb6207f3a412da54b8d213571812338a044

Authored by bellard
1 parent 6bb70571

imull fix (suggested by Robert J. Harley)


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@478 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 1 additions and 1 deletions
target-arm/op.c
... ... @@ -377,7 +377,7 @@ void OPPROTO op_mull_T0_T1(void)
377 377 void OPPROTO op_imull_T0_T1(void)
378 378 {
379 379 uint64_t res;
380   - res = (int64_t)T0 * (int64_t)T1;
  380 + res = (int64_t)((int32_t)T0) * (int64_t)((int32_t)T1);
381 381 T1 = res >> 32;
382 382 T0 = res;
383 383 }
... ...