* [Qemu-devel] PIT clock count
@ 2006-06-27 8:45 Robert Falk
0 siblings, 0 replies; only message in thread
From: Robert Falk @ 2006-06-27 8:45 UTC (permalink / raw)
To: Qemu-devel
Hi,
we are developing an x86 application that we are testing using qemu and
are having some issues with the PIT clock count. We are using PIT clock
count as a reference to measure cpu frequency:
wait_wrap()
a=read_current_cycles()
wait_wrap()
b=read_current_cycles()
calculate_freq(a,b)...
The problem is that when running in qemu it sometimes "loops twice" in the
wrap wait, thus reporting twice the cycles. The same problem occurs
whether I am running 100Hz or 1000Hz.
Is this a known bug? And is there any solution? I recall I have seen
similar problems with VMWare and Linux.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-06-27 8:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-27 8:45 [Qemu-devel] PIT clock count Robert Falk
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.