]> www.infradead.org Git - users/dwmw2/qemu.git/commit
hw/ppc/prep: use pci_init_nic_devices()
authorDavid Woodhouse <dwmw@amazon.co.uk>
Mon, 23 Oct 2023 08:37:14 +0000 (09:37 +0100)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Mon, 13 Nov 2023 23:31:53 +0000 (18:31 -0500)
commit91dc832f760c01701ef90b18dec4d5634ee56d4b
treeef4ac6aa495682e28f8b5567878f4774f1754481
parent18a392aac1da5dfc0582f38e8c18b1116597e782
hw/ppc/prep: use pci_init_nic_devices()

Previously, the first PCI NIC would be placed in PCI slot 3 and the rest
would be dynamically assigned. Even if the user overrode the default NIC
type and made it something other than PCNet.

Now, the first PCNet NIC (that is, anything not explicitly specified
to be anything different) will go to slot 3 even if it isn't the first
NIC specified on the commnd line. And anything else will be dynamically
assigned.

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
hw/ppc/prep.c