]> 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 <dwmw2@infradead.org>
Mon, 8 Jan 2024 13:50:16 +0000 (13:50 +0000)
commita8f9e83c58bf7b2f3de17c9e4c92d626e86def0f
treed601a88475382fc96a11d3093295f2f38d879b06
parente201d3058d0ff56ae578c8ba797fe1c012c960ee
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