From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:38784) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qyn8b-0008R5-FN for qemu-devel@nongnu.org; Wed, 31 Aug 2011 11:55:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qyn8a-0005YY-GJ for qemu-devel@nongnu.org; Wed, 31 Aug 2011 11:55:37 -0400 Received: from mnementh.archaic.org.uk ([81.2.115.146]:38252) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qyn8a-0005YR-4g for qemu-devel@nongnu.org; Wed, 31 Aug 2011 11:55:36 -0400 From: Peter Maydell Date: Wed, 31 Aug 2011 16:55:30 +0100 Message-Id: <1314806132-32389-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH 0/2] omap_intc: convert to MemoryRegion, qdev List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Juha=20Riihim=C3=A4ki?= , Riku Voipio , patches@linaro.org This patchset converts the omap_intc device to MemoryRegion and qdev. The MemoryRegion conversion is fairly straightforward; the slight ugliness of using get_system_memory() is just so it can be pulled out as a separate patch for review and is dropped in the qdevification patch. The bulk of the qdevifying patch is a fairly mechanical replacement of direct access to an irq[] array with qdev_get_gpio_in(). My actual purpose in doing all this was to be able to specify the revision register of the interrupt controller, since it's different on OMAP3... Peter Maydell (2): omap_intc: Use MemoryRegion API omap_intc: Qdevify hw/nseries.c | 4 +- hw/omap.h | 19 +------ hw/omap1.c | 127 ++++++++++++++++++++++++++--------------- hw/omap2.c | 92 +++++++++++++++++------------ hw/omap_intc.c | 175 +++++++++++++++++++++++++++++++------------------------ 5 files changed, 238 insertions(+), 179 deletions(-)