summaryrefslogtreecommitdiff
path: root/include/hw/isa
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2012-11-25 22:54:47 +0100
committerAndreas Färber <afaerber@suse.de>2013-06-07 14:55:24 +0200
commitd2628b7d18521dacd3d4d246602e9bb3fc2a43dd (patch)
tree5133522cc12f037f226839917bdbf441b8f7417a /include/hw/isa
parent49fdb0c1c42f02ab163206f34fcf59bb0815afa2 (diff)
downloadqemu-d2628b7d18521dacd3d4d246602e9bb3fc2a43dd.tar.gz
i8259: Convert PICCommonState to use QOM realizefn
Instead of having the parent provide PICCommonClass::init, let the children override DeviceClass::realize themselves. This pushes the responsibility of saving and calling the parent's realizefn to the children. Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'include/hw/isa')
-rw-r--r--include/hw/isa/i8259_internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hw/isa/i8259_internal.h b/include/hw/isa/i8259_internal.h
index b4e757a461..cded509636 100644
--- a/include/hw/isa/i8259_internal.h
+++ b/include/hw/isa/i8259_internal.h
@@ -42,7 +42,7 @@ typedef struct PICCommonState PICCommonState;
typedef struct PICCommonClass
{
ISADeviceClass parent_class;
- void (*init)(PICCommonState *s);
+
void (*pre_save)(PICCommonState *s);
void (*post_load)(PICCommonState *s);
} PICCommonClass;