From 731abc0d2284b957fdf77e76ef34eff1bd0a5bc1 Mon Sep 17 00:00:00 2001 From: edgar_igl Date: Fri, 19 Dec 2008 12:57:18 +0000 Subject: [PATCH] ETRAX: Correct the frequency of the free-running counter. Signed-off-by: Edgar E. Iglesias git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6101 c046a42c-6fe2-441c-8c8c-71466251a162 --- hw/etraxfs_timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/etraxfs_timer.c b/hw/etraxfs_timer.c index ea0009a..a895ed3 100644 --- a/hw/etraxfs_timer.c +++ b/hw/etraxfs_timer.c @@ -96,7 +96,7 @@ static uint32_t timer_readl (void *opaque, target_phys_addr_t addr) D(printf ("R_TMR1_DATA\n")); break; case R_TIME: - r = qemu_get_clock(vm_clock) * 10; + r = qemu_get_clock(vm_clock) / 10; break; case RW_INTR_MASK: r = t->rw_intr_mask; -- 2.7.4