diff options
author | balrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-05-06 14:50:15 +0000 |
---|---|---|
committer | balrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-05-06 14:50:15 +0000 |
commit | 94d8cfe7c60b06d36b43181adfb4ed50b37531ba (patch) | |
tree | 58740df0cd48cad7dedb1083d8d9ed67247028a4 /hw/omap1.c | |
parent | 8b00185e2b812e7f4e4703e3a5dc5fa93d0a9d62 (diff) | |
download | qemu-94d8cfe7c60b06d36b43181adfb4ed50b37531ba.tar.gz qemu-94d8cfe7c60b06d36b43181adfb4ed50b37531ba.tar.bz2 qemu-94d8cfe7c60b06d36b43181adfb4ed50b37531ba.zip |
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
Diffstat (limited to 'hw/omap1.c')
-rw-r--r-- | hw/omap1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/omap1.c b/hw/omap1.c index f7f2b485c5..7dab6c8e4b 100644 --- a/hw/omap1.c +++ b/hw/omap1.c @@ -696,7 +696,7 @@ static inline void omap_timer_update(struct omap_mpu_timer_s *timer) 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 |