All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Robert Falk" <amon@mindkiller.com>
To: Qemu-devel@nongnu.org
Subject: [Qemu-devel] PIT clock count
Date: Tue, 27 Jun 2006 10:45:16 +0200	[thread overview]
Message-ID: <WorldClient-F200606271045.AA45160044@mindkiller.com> (raw)

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.

 

                 reply	other threads:[~2006-06-27  8:48 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=WorldClient-F200606271045.AA45160044@mindkiller.com \
    --to=amon@mindkiller.com \
    --cc=Qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.