summaryrefslogtreecommitdiff
path: root/include/hw
diff options
context:
space:
mode:
authorxiaoqiang zhao <zxq_yx_007@163.com>2013-11-05 18:16:05 +0800
committerAndreas Färber <afaerber@suse.de>2013-12-24 18:02:18 +0100
commitdb0f888848bc5cc578d005d04f4cf7a1105bb758 (patch)
tree3745d7e3d88231ad49cc9a1ffce7b876fc169a0b /include/hw
parentf97718584baa6ef919d00067b9787ba7fc5f1a5b (diff)
downloadqemu-db0f888848bc5cc578d005d04f4cf7a1105bb758.tar.gz
ioapic: QOM'ify ioapic
Convert 'init' function to QOM's 'realize' for ioapic and kvm-ioapic. Change variable 'ioapic_no' from static to global. Then we can drop the 'instance_no' function argument. Signed-off-by: xiaoqiang zhao <zxq_yx_007@163.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'include/hw')
-rw-r--r--include/hw/i386/ioapic_internal.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/hw/i386/ioapic_internal.h b/include/hw/i386/ioapic_internal.h
index 25576c819e..3be3352185 100644
--- a/include/hw/i386/ioapic_internal.h
+++ b/include/hw/i386/ioapic_internal.h
@@ -83,7 +83,8 @@ typedef struct IOAPICCommonState IOAPICCommonState;
typedef struct IOAPICCommonClass {
SysBusDeviceClass parent_class;
- void (*init)(IOAPICCommonState *s, int instance_no);
+
+ DeviceRealize realize;
void (*pre_save)(IOAPICCommonState *s);
void (*post_load)(IOAPICCommonState *s);
} IOAPICCommonClass;