diff options
author | xiaoqiang zhao <zxq_yx_007@163.com> | 2013-11-05 18:16:03 +0800 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2013-12-24 18:02:18 +0100 |
commit | ff6986ce618c69f988e4419efd67ea5cbf7792a5 (patch) | |
tree | 016383bf01308755c11212c2be849baea9415f74 /hw/intc/apic_common.c | |
parent | d3b0c9e90a9853984c60478dae45bedf8aadf42a (diff) | |
download | qemu-ff6986ce618c69f988e4419efd67ea5cbf7792a5.zip qemu-ff6986ce618c69f988e4419efd67ea5cbf7792a5.tar.gz qemu-ff6986ce618c69f988e4419efd67ea5cbf7792a5.tar.bz2 |
apic: QOM'ify APIC
Convert 'init' function to QOM's 'realize' for apic, kvm/apic and
xen/xen_apic.
Signed-off-by: xiaoqiang zhao <zxq_yx_007@163.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'hw/intc/apic_common.c')
-rw-r--r-- | hw/intc/apic_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/intc/apic_common.c b/hw/intc/apic_common.c index de5e190..2842655 100644 --- a/hw/intc/apic_common.c +++ b/hw/intc/apic_common.c @@ -298,7 +298,7 @@ static int apic_init_common(ICCDevice *dev) s->idx = apic_no++; info = APIC_COMMON_GET_CLASS(s); - info->init(s); + info->realize(DEVICE(dev), NULL); if (!mmio_registered) { ICCBus *b = ICC_BUS(qdev_get_parent_bus(DEVICE(dev))); memory_region_add_subregion(b->apic_address_space, 0, &s->io_memory); |