aboutsummaryrefslogtreecommitdiff
path: root/hw/syborg.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/syborg.c')
-rw-r--r--hw/syborg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/syborg.c b/hw/syborg.c
index 2aec7691f4..2d08cb2492 100644
--- a/hw/syborg.c
+++ b/hw/syborg.c
@@ -77,13 +77,13 @@ static void syborg_init(ram_addr_t ram_size,
sysbus_create_simple("syborg,serial", 0xC0008000, pic[7]);
sysbus_create_simple("syborg,serial", 0xC0009000, pic[8]);
- if (nd_table[0].vlan) {
+ if (nd_table[0].vlan || nd_table[0].netdev) {
DeviceState *dev;
SysBusDevice *s;
qemu_check_nic_model(&nd_table[0], "virtio");
dev = qdev_create(NULL, "syborg,virtio-net");
- dev->nd = &nd_table[0];
+ qdev_set_nic_properties(dev, &nd_table[0]);
qdev_init_nofail(dev);
s = sysbus_from_qdev(dev);
sysbus_mmio_map(s, 0, 0xc000c000);