Message ID | 9c5c854930270d00a7d2aefaa6bf20b1391671c6.1411703317.git.peter.crosthwaite@xilinx.com |
---|---|
State | New |
Headers | show |
diff --git a/hw/core/qdev.c b/hw/core/qdev.c index 41208a0..cfd1ce6 100644 --- a/hw/core/qdev.c +++ b/hw/core/qdev.c @@ -367,8 +367,7 @@ void qdev_init_gpio_out_named(DeviceState *dev, qemu_irq *pins, char *propname = g_strdup_printf("%s[*]", name ? name : "unnamed-gpio-out"); assert(gpio_list->num_in == 0 || !name); - assert(gpio_list->num_out == 0); - gpio_list->num_out = n; + gpio_list->num_out += n; for (i = 0; i < n; ++i) { memset(&pins[i], 0, sizeof(*pins));