diff options
Diffstat (limited to 'hw')
-rw-r--r-- | hw/isa-bus.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/hw/isa-bus.c b/hw/isa-bus.c index 320768036c..5af790bf81 100644 --- a/hw/isa-bus.c +++ b/hw/isa-bus.c @@ -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; } /* |