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>
This commit is contained in:
parent
32265288a9
commit
25a8535943
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user