Skip to contentSkip to conversation

[6101] ETRAX: Correct the frequency of the free-running counter.

Qemu-devel Edgar E. Iglesias 1 participant 1 message Dec 19, 2008

lore
Share & tools
lore
#0 lore raw

Revision: 6101

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6101
Author:   edgar_igl
Date:     2008-12-19 12:57:18 +0000 (Fri, 19 Dec 2008)

Log Message:
-----------
ETRAX: Correct the frequency of the free-running counter.

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

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

hw/etraxfs_timer.c +1 -1
@@ -96,7 +96,7 @@
 		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;