hw/mips/malta: use pci_init_nic_devices()
authorDavid Woodhouse <dwmw@amazon.co.uk>
Sat, 21 Oct 2023 20:30:51 +0000 (21:30 +0100)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Fri, 2 Feb 2024 16:23:47 +0000 (16:23 +0000)
commit761884013ebdb6a117b3aa98bce6bea1078c5377
tree6f0634e894a8c71d2426f87214ed6a9c5bea0fa8
parent8e4375618b0870a653e2d7fc4e6f6589bea13bb2
hw/mips/malta: use pci_init_nic_devices()

The Malta board setup code would previously place the first NIC into PCI
slot 11 if was a PCNet card, and the rest (including the first if it was
anything other than a PCNet card) would be dynamically assigned.

Now it will place any PCNet NIC into slot 11, and then anything else will
be dynamically assigned.

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Reviewed-by: Thomas Huth <thuth@redhat.com>
hw/mips/malta.c