From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G7eqr-0007CT-DX for qemu-devel@nongnu.org; Mon, 31 Jul 2006 16:59:01 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G7eqp-0007BD-Ru for qemu-devel@nongnu.org; Mon, 31 Jul 2006 16:59:01 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G7eqp-0007B5-PN for qemu-devel@nongnu.org; Mon, 31 Jul 2006 16:58:59 -0400 Received: from [65.74.133.4] (helo=mail.codesourcery.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1G7etZ-0000Sa-Df for qemu-devel@nongnu.org; Mon, 31 Jul 2006 17:01:49 -0400 From: Paul Brook Subject: Re: [Qemu-devel] How to Simulate hardware that counts scanlines? Date: Mon, 31 Jul 2006 20:58:54 +0000 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200607312058.55364.paul@codesourcery.com> 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 Cc: Steve Ellenoff > Seems nobody here has any ideas either, which is kind of hard to believe. I > don't know if this would work, but one idea I had was to divide up the gui > timer into 260 slices (that's the # of scanlines the hardware expects), and > simply update the hardware register that counts the scanlines this way. No. The gui timer (in fact the whole display mechanis) is independant of the emulated VGA hardware. If you need accurate scanline emulation you just treat it like any other timer. qemu doesn't currenly provide high-fidelity timer emulation, but that's a different problem altogether. Paul