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(-)