i8259: Convert PICCommonState to use QOM realizefn
authorAndreas Färber <afaerber@suse.de>
Sun, 25 Nov 2012 21:54:47 +0000 (22:54 +0100)
committerAndreas Färber <afaerber@suse.de>
Fri, 7 Jun 2013 12:55:24 +0000 (14:55 +0200)
commitd2628b7d18521dacd3d4d246602e9bb3fc2a43dd
tree5133522cc12f037f226839917bdbf441b8f7417a
parent49fdb0c1c42f02ab163206f34fcf59bb0815afa2
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>
hw/i386/kvm/i8259.c
hw/intc/i8259.c
hw/intc/i8259_common.c
include/hw/isa/i8259_internal.h