Skip to content

Commit

Permalink
hw/loongarch: use pci_init_nic_devices()
Browse files Browse the repository at this point in the history
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Reviewed-by: Song Gao <gaosong@loongson.cn>
  • Loading branch information
dwmw2 committed Feb 2, 2024
1 parent 2dfe2f8 commit 13af77e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions hw/loongarch/virt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 13af77e

Please sign in to comment.