aboutsummaryrefslogtreecommitdiff
path: root/hw/pxa2xx_pic.c
diff options
context:
space:
mode:
authorAndrzej Zaborowski <andrew.zaborowski@intel.com>2011-03-03 03:43:40 +0100
committerAndrzej Zaborowski <balrog@zabor.org>2011-03-03 03:43:40 +0100
commit0c69aa703c543ae4e287416590ccd9928f75d32b (patch)
tree851f469f30fa0b27b52837963cc465fb78443b45 /hw/pxa2xx_pic.c
parent13801f32f6bd74eae9bb2fcfaee75c6656f7f73e (diff)
pxa2xx_pic: Set base address for sysbus device.
Thid device's registration was broken since e1f8c729fa890c67bb4532f22c22ace6fb0e1aaf, this should fix it.
Diffstat (limited to 'hw/pxa2xx_pic.c')
-rw-r--r--hw/pxa2xx_pic.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/pxa2xx_pic.c b/hw/pxa2xx_pic.c
index 308d052a64..86c0ee6bbc 100644
--- a/hw/pxa2xx_pic.c
+++ b/hw/pxa2xx_pic.c
@@ -268,6 +268,8 @@ DeviceState *pxa2xx_pic_init(target_phys_addr_t base, CPUState *env)
qdev_init_gpio_in(dev, pxa2xx_pic_set_irq, PXA2XX_PIC_SRCS);
+ sysbus_mmio_map(sysbus_from_qdev(dev), 0, base);
+
/* Enable IC memory-mapped registers access. */
iomemtype = cpu_register_io_memory(pxa2xx_pic_readfn,
pxa2xx_pic_writefn, s, DEVICE_NATIVE_ENDIAN);