From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jg0zs-0000bl-U4 for qemu-devel@nongnu.org; Sun, 30 Mar 2008 13:07:09 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jg0zr-0000Zw-6r for qemu-devel@nongnu.org; Sun, 30 Mar 2008 13:07:08 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jg0zq-0000Zj-TL for qemu-devel@nongnu.org; Sun, 30 Mar 2008 13:07:07 -0400 Received: from sitemail2.everyone.net ([216.200.145.36] helo=omta16.mta.everyone.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jg0zq-0007Dk-G5 for qemu-devel@nongnu.org; Sun, 30 Mar 2008 13:07:06 -0400 Date: Sun, 30 Mar 2008 13:07:03 -0400 From: Kevin O'Connor Message-ID: <20080330170703.GA3304@ohio.lan> References: <20080330154135.GB1402@ohio.lan> <200803301848.29884.info@vruppert.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200803301848.29884.info@vruppert.de> Subject: [Qemu-devel] Re: [Bochs-developers] [PATCH] BIOS delay_ms optimized away with?BX_QEMU enabled Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Volker Ruppert Cc: bochs-developers@lists.sourceforge.net, David Wentzlaff , qemu-devel@nongnu.org On Sun, Mar 30, 2008 at 06:48:29PM +0200, Volker Ruppert wrote: > > Do you know why QEMU uses different code for the delay? What's wrong > > with using inb(0x61) for both bochs and qemu? > > Bochs really supports the refresh toggle bit of port 0x61, but Qemu toggles on > every read access. I have created a patch for Qemu that implements the 15 > usec toggle, but the Qemu developers haven't accepted it. They are not sure > whether the refresh toggle bit exists on modern hardware. Ughh. The same delay mechanism is used in the int/15/86 handler even on qemu. See rombios.c:int15_function32(). Is there a better way to implement a usleep function? Thanks for the info. -Kevin