mirror of
https://github.com/mii443/qemu.git
synced 2025-08-22 15:15:46 +00:00
hw/loongarch: use pci_init_nic_devices()
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk> Reviewed-by: Song Gao <gaosong@loongson.cn>
This commit is contained in:
@ -504,9 +504,7 @@ static void loongarch_devices_init(DeviceState *pch_pic, LoongArchMachineState *
|
||||
fdt_add_uart_node(lams);
|
||||
|
||||
/* Network init */
|
||||
for (i = 0; i < nb_nics; i++) {
|
||||
pci_nic_init_nofail(&nd_table[i], pci_bus, mc->default_nic, NULL);
|
||||
}
|
||||
pci_init_nic_devices(pci_bus, mc->default_nic);
|
||||
|
||||
/*
|
||||
* There are some invalid guest memory access.
|
||||
|
Reference in New Issue
Block a user