Received: from eggs.gnu.org ([140.186.70.92]:58670) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QYPhq-0003G1-2n for qemu-devel@nongnu.org; Sun, 19 Jun 2011 17:38:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QYPho-0003uu-Rr for qemu-devel@nongnu.org; Sun, 19 Jun 2011 17:38:57 -0400 Received: from fmmailgate03.web.de ([217.72.192.234]:39051) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QYPho-0003u5-8v for qemu-devel@nongnu.org; Sun, 19 Jun 2011 17:38:56 -0400 Message-Id: <7CD419AC-720B-4373-9486-82CB8D4276D6@web.de> From: =?ISO-8859-1?Q?Andreas_F=E4rber?= In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v936) Date: Sun, 19 Jun 2011 23:38:53 +0200 References: <67D16361-9E4A-489C-B671-B7D08A50123F@web.de> <1308182564-11748-1-git-send-email-andreas.faerber@web.de> <8D086BA8-5717-4D1A-AD73-ED6FF5478CD6@web.de> Sender: andreas.faerber@web.de Subject: Re: [Qemu-devel] [RFC v2 23/23] 40p: Add an IBM 8514/A graphics card List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: =?ISO-8859-1?Q?Herv=E9_Poussineau?= , "qemu-devel@nongnu.org Developers" , Roy Tam Am 19.06.2011 um 21:03 schrieb Blue Swirl: > On Sun, Jun 19, 2011 at 9:40 PM, Andreas F=E4rber = > wrote: >> Some remarks: >> >> * TCX seems to assume that TARGET_HOST_PAGE =3D=3D 4 * 1024 in the =20= >> unrolled loop >> in tcx_update_display(). You might want to assert that. > > TCX was only used on Sparc32. Though some Ultra machines had SBus, > there the page size would be 8k (also bigger pages, but that is what > QEMU uses for TARGET_PAGE_SIZE). Well, I wasn't saying it doesn't work presently, just pointing out =20 that a qdev device might be instantiated by someone under =20 circumstances not envisioned. >> * The check page < page_min with page_min =3D=3D -1 seems unintended = in >> tcx_update_display() and would have undesired effects on resetting =20= >> the dirty >> bit. I used page_min < 0 instead. > > No, the check is correct since the type of page_min is ram_addr_t > (unsigned long). OK >> * The reset code seems wrong wrt dirty bit: after zero-ing VRAM the =20= >> dirty >> bit should be set, not reset. Otherwise the screen is not redrawn. > > Actually reset should not touch VRAM, the screen is cleared by =20 > OpenBIOS. tcx_reset() does do a memset on the VRAM. In my case, I like sharing code, so I'm calling ibm8514_reset() on =20 init to initialize registers and palette - I personally prefer a black =20= screen during the one and a half minutes before the screen gets =20 updated the first time. Andreas=