From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BB4lf-0001OO-Ef for qemu-devel@nongnu.org; Wed, 07 Apr 2004 00:34:27 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BB4ky-0000Rt-Jv for qemu-devel@nongnu.org; Wed, 07 Apr 2004 00:34:15 -0400 Received: from [203.29.88.42] (helo=gateway.ccdaust.com.au) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BB4ky-0000Px-1c for qemu-devel@nongnu.org; Wed, 07 Apr 2004 00:33:44 -0400 Received: from [192.168.2.80] (helo=wasp.net.au) by gateway.ccdaust.com.au with esmtp (Exim 3.35 #1 (Debian)) id 1BB4z5-0006tN-00 for ; Wed, 07 Apr 2004 12:48:20 +0800 Message-ID: <407384DE.4020900@wasp.net.au> Date: Wed, 07 Apr 2004 08:34:38 +0400 From: Brad Campbell MIME-Version: 1.0 Subject: Re: [Qemu-devel] Qemu workstation References: <200404051047.11383.jm@poure.com> <1081156203.3939.10.camel@aragorn> <4071B41F.3040201@bellard.org> <001601c41b57$ed1704f0$6407a8c0@shaggy> <20040406121738.GC2774@linux-m68k.org> <4072B070.3060700@wasp.net.au> <407311D8.5020403@volny.cz> In-Reply-To: <407311D8.5020403@volny.cz> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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