summary refs log tree commit diff stats
path: root/hw/etraxfs_timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/etraxfs_timer.c')
-rw-r--r--hw/etraxfs_timer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/etraxfs_timer.c b/hw/etraxfs_timer.c
index ea0009aa8b..a895ed38f3 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;