mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
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>
This commit is contained in:
parent
f97718584b
commit
db0f888848
4 changed files with 21 additions and 10 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue