qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Brad Campbell <brad@wasp.net.au>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Qemu workstation
Date: Wed, 07 Apr 2004 08:34:38 +0400	[thread overview]
Message-ID: <407384DE.4020900@wasp.net.au> (raw)
In-Reply-To: <407311D8.5020403@volny.cz>

Filip Navara wrote:
> Brad Campbell wrote:
> 
>> I guess if QEMU emulates the hlt instruction and the OS supports it 
>> then it's pretty easy.
>> I note above it said running linux, which does idle nicely when the 
>> hlt instruction is present, perhaps there is a not too difficult way 
>> for intelligent OS's. DOS is a lost cause however.
> 
> 
> To clarify it, it's not 'HLT' instruction (Halt processor), but the 
> 'NOP' instruction (No operation).

How does that work then?
I have some code that uses a NOP loop for accurate timing? That spins at 100% cpu usage, how does a 
NOP tell the processor to idle? HLT does.

Brad

  reply	other threads:[~2004-04-07  4:34 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-05  8:47 [Qemu-devel] Qemu workstation Jean-Michel POURE
2004-04-05  9:10 ` John R. Hogerhuis
2004-04-05  9:30   ` Rudi Lippert
2004-04-05  9:55     ` Jean-Michel POURE
2004-04-05 19:31       ` Fabrice Bellard
2004-04-05 21:49         ` Jamie Burns
2004-04-06 12:17           ` Richard Zidlicky
2004-04-06 13:28             ` Brad Campbell
2004-04-06 20:23               ` Filip Navara
2004-04-07  4:34                 ` Brad Campbell [this message]
2004-04-07  7:59                   ` Filip Navara
2004-04-07  8:24                     ` Brad Campbell
2004-04-07  8:47                       ` Grzegorz Kulewski
2004-04-07 17:50                         ` Richard Zidlicky
2004-04-07  9:40                       ` Filip Navara
2004-04-06 14:00             ` Jamie Burns
2004-04-06 19:00           ` Fabrice Bellard
2004-04-05  9:38   ` Jean-Michel POURE
2004-04-05 10:23     ` John R. Hogerhuis
  -- strict thread matches above, loose matches on Subject: below --
2004-04-05 15:19 Mike Nordell
2004-04-05 20:40 ` Filip Navara
2004-04-05 21:05   ` John R. Hogerhuis
2004-04-05 21:15     ` Filip Navara

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=407384DE.4020900@wasp.net.au \
    --to=brad@wasp.net.au \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).