mirror of https://github.com/xemu-project/xemu.git
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:
parent
2dfe2f861b
commit
13af77ee50
|
@ -504,9 +504,7 @@ static void loongarch_devices_init(DeviceState *pch_pic, LoongArchMachineState *
|
||||||
fdt_add_uart_node(lams);
|
fdt_add_uart_node(lams);
|
||||||
|
|
||||||
/* Network init */
|
/* Network init */
|
||||||
for (i = 0; i < nb_nics; i++) {
|
pci_init_nic_devices(pci_bus, mc->default_nic);
|
||||||
pci_nic_init_nofail(&nd_table[i], pci_bus, mc->default_nic, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* There are some invalid guest memory access.
|
* There are some invalid guest memory access.
|
||||||
|
|
Loading…
Reference in New Issue