Commit b8b137d6f0aa8e14cce4b5e756e62c2d1fe2e47d
1 parent
4eee57f5
Fix OMAP1 MPU-timer rate on 32-bit hosts.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4360 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
1 additions
and
1 deletions
hw/omap1.c
... | ... | @@ -696,7 +696,7 @@ static inline void omap_timer_update(struct omap_mpu_timer_s *timer) |
696 | 696 | |
697 | 697 | if (timer->enable && timer->st && timer->rate) { |
698 | 698 | timer->val = timer->reset_val; /* Should skip this on clk enable */ |
699 | - expires = muldiv64(timer->val << (timer->ptv + 1), | |
699 | + expires = muldiv64((uint64_t) timer->val << (timer->ptv + 1), | |
700 | 700 | ticks_per_sec, timer->rate); |
701 | 701 | |
702 | 702 | /* If timer expiry would be sooner than in about 1 ms and |
... | ... |