diff options
author | Hervé Poussineau <hpoussin@reactos.org> | 2016-10-02 21:44:27 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-10-04 10:00:26 +0200 |
commit | 25a8535943b456954eeb82eb7d1f53d2b4f168e6 (patch) | |
tree | a0ef5f86e652120b52f1545d79f7a2d876efca34 /hw/intc | |
parent | 32265288a9b207dcd3f8da516643f81e1d2c5a1e (diff) | |
download | qemu-25a8535943b456954eeb82eb7d1f53d2b4f168e6.zip qemu-25a8535943b456954eeb82eb7d1f53d2b4f168e6.tar.gz qemu-25a8535943b456954eeb82eb7d1f53d2b4f168e6.tar.bz2 |
i8259: give ISA device when registering ISA ioports
Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
Message-Id: <1475437467-22781-1-git-send-email-hpoussin@reactos.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/intc')
-rw-r--r-- | hw/intc/i8259_common.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/hw/intc/i8259_common.c b/hw/intc/i8259_common.c index 3a850b0..d9a5e8b 100644 --- a/hw/intc/i8259_common.c +++ b/hw/intc/i8259_common.c @@ -70,10 +70,11 @@ static int pic_dispatch_post_load(void *opaque, int version_id) static void pic_common_realize(DeviceState *dev, Error **errp) { PICCommonState *s = PIC_COMMON(dev); + ISADevice *isa = ISA_DEVICE(dev); - isa_register_ioport(NULL, &s->base_io, s->iobase); + isa_register_ioport(isa, &s->base_io, s->iobase); if (s->elcr_addr != -1) { - isa_register_ioport(NULL, &s->elcr_io, s->elcr_addr); + isa_register_ioport(isa, &s->elcr_io, s->elcr_addr); } qdev_set_legacy_instance_id(dev, s->iobase, 1); |