mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-10 02:54:58 -06:00
i8259: QOM cleanups
Eliminate DO_UPCAST() for PICCommonState. Prepares for ISA realizefn. Also give the i8259_common type registration functions unique names while at it. Signed-off-by: Andreas Färber <afaerber@suse.de> Signed-off-by: Andreas Färber <afaerber@suse.de> Message-id: 1367093935-29091-6-git-send-email-afaerber@suse.de Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
eb1440e7ec
commit
29bb5317cb
4 changed files with 16 additions and 13 deletions
|
@ -82,7 +82,7 @@ static void kvm_pic_put(PICCommonState *s)
|
|||
|
||||
static void kvm_pic_reset(DeviceState *dev)
|
||||
{
|
||||
PICCommonState *s = DO_UPCAST(PICCommonState, dev.qdev, dev);
|
||||
PICCommonState *s = PIC_COMMON(dev);
|
||||
|
||||
s->elcr = 0;
|
||||
pic_reset_common(s);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue