diff options
Diffstat (limited to 'hw/slavio_intctl.c')
-rw-r--r-- | hw/slavio_intctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/slavio_intctl.c b/hw/slavio_intctl.c index d67c8ccc9f..136ceebc80 100644 --- a/hw/slavio_intctl.c +++ b/hw/slavio_intctl.c @@ -210,7 +210,7 @@ void slavio_pic_info(Monitor *mon, DeviceState *dev) SLAVIO_INTCTLState *s; int i; - sd = sysbus_from_qdev(dev); + sd = SYS_BUS_DEVICE(dev); s = FROM_SYSBUS(SLAVIO_INTCTLState, sd); for (i = 0; i < MAX_CPUS; i++) { monitor_printf(mon, "per-cpu %d: pending 0x%08x\n", i, @@ -230,7 +230,7 @@ void slavio_irq_info(Monitor *mon, DeviceState *dev) int i; int64_t count; - sd = sysbus_from_qdev(dev); + sd = SYS_BUS_DEVICE(dev); s = FROM_SYSBUS(SLAVIO_INTCTLState, sd); monitor_printf(mon, "IRQ statistics:\n"); for (i = 0; i < 32; i++) { |