From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HeCmf-000079-5S for qemu-devel@nongnu.org; Wed, 18 Apr 2007 12:13:29 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HeCmd-00005j-HD for qemu-devel@nongnu.org; Wed, 18 Apr 2007 12:13:28 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HeCmd-00005d-DU for qemu-devel@nongnu.org; Wed, 18 Apr 2007 12:13:27 -0400 Received: from mail.codesourcery.com ([65.74.133.4]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HeChl-00053h-Vu for qemu-devel@nongnu.org; Wed, 18 Apr 2007 12:08:26 -0400 From: Paul Brook Subject: Re: [Qemu-devel] qemu/hw pckbd.c Date: Wed, 18 Apr 2007 17:08:21 +0100 References: <1176906055.16811.24.camel@jma4.dev.netgem.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200704181708.22450.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: Blue Swirl , l_indien@magic.fr > > If you're interressed in such a feature, you may take a look of what > > I've done in hw/ppc405_uc.c. There are some device sharing the same > > memory page on those microcontrollers so I introduced a fake device > > called mmio that allow to register multiple devices into a single page > > in Qemu. I do use the serial_mm_init with the ioregister parameter set > > to 0 for those designs. > > This code may not be as generic as it would be if we want to make it a > > standard Qemu function, but this may give a basis or ideas for it. > > On Sparc32 there are several devices that would benefit from sub-page > granularity, so I vote for making this generic. While you're fixing this, it would be good to fix overlapping devices as well ;-) Currently if you (temporarily) have overlapping regions then remove one of them you end up with unmapped memory. It may also make implementing flash devices simpler. Paul