diff options
Diffstat (limited to 'hw/sysbus.c')
-rw-r--r-- | hw/sysbus.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/hw/sysbus.c b/hw/sysbus.c index a1843088e3..fbd2ddf394 100644 --- a/hw/sysbus.c +++ b/hw/sysbus.c @@ -20,6 +20,7 @@ #include "sysbus.h" #include "sysemu.h" +#include "monitor.h" void sysbus_connect_irq(SysBusDevice *dev, int n, qemu_irq irq) { @@ -150,3 +151,14 @@ DeviceState *sysbus_create_varargs(const char *name, } return dev; } + +void sysbus_dev_print(Monitor *mon, DeviceState *dev, int indent) +{ + SysBusDevice *s = sysbus_from_qdev(dev); + int i; + + for (i = 0; i < s->num_mmio; i++) { + monitor_printf(mon, "%*smmio " TARGET_FMT_plx "/" TARGET_FMT_plx "\n", + indent, "", s->mmio[i].addr, s->mmio[i].size); + } +} |