Skip to contentSkip to conversation

[4360] Fix OMAP1 MPU-timer rate on 32-bit hosts.

Qemu-devel Andrzej Zaborowski 1 participant 1 message May 6, 2008

lore
Share & tools
lore
#0 lore raw

Revision: 4360

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4360
Author:   balrog
Date:     2008-05-06 14:50:15 +0000 (Tue, 06 May 2008)

Log Message:
-----------
Fix OMAP1 MPU-timer rate on 32-bit hosts.

Modified Paths:
--------------
trunk/hw/omap1.c

Modified: trunk/hw/omap1.c
===================================================================

hw/omap1.c +1 -1
@@ -696,7 +696,7 @@
 
     if (timer->enable && timer->st && timer->rate) {
         timer->val = timer->reset_val;	/* Should skip this on clk enable */
-        expires = muldiv64(timer->val << (timer->ptv + 1),
+        expires = muldiv64((uint64_t) timer->val << (timer->ptv + 1),
                         ticks_per_sec, timer->rate);
 
         /* If timer expiry would be sooner than in about 1 ms and