isa: always use provided ISA bus in isa_bus_irqs()
Signed-off-by: Hervé Poussineau <hpoussin@reactos.org> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
75782268d6
commit
d3c68e4f45
@ -53,8 +53,10 @@ ISABus *isa_bus_new(DeviceState *dev, MemoryRegion *address_space_io)
|
||||
|
||||
void isa_bus_irqs(ISABus *bus, qemu_irq *irqs)
|
||||
{
|
||||
assert(!bus || bus == isabus);
|
||||
isabus->irqs = irqs;
|
||||
if (!bus) {
|
||||
hw_error("Can't set isa irqs with no isa bus present.");
|
||||
}
|
||||
bus->irqs = irqs;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user