mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 18:23:57 -06:00
hw/arm: use qemu_configure_nic_device()
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk> Reviewed-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
parent
1328084588
commit
e8c003c414
6 changed files with 10 additions and 33 deletions
|
@ -197,12 +197,8 @@ static void m2sxxx_soc_realize(DeviceState *dev_soc, Error **errp)
|
|||
g_free(bus_name);
|
||||
}
|
||||
|
||||
/* FIXME use qdev NIC properties instead of nd_table[] */
|
||||
if (nd_table[0].used) {
|
||||
qemu_check_nic_model(&nd_table[0], TYPE_MSS_EMAC);
|
||||
qdev_set_nic_properties(DEVICE(&s->emac), &nd_table[0]);
|
||||
}
|
||||
dev = DEVICE(&s->emac);
|
||||
qemu_configure_nic_device(dev, true, NULL);
|
||||
object_property_set_link(OBJECT(&s->emac), "ahb-bus",
|
||||
OBJECT(get_system_memory()), &error_abort);
|
||||
if (!sysbus_realize(SYS_BUS_DEVICE(&s->emac), errp)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue