]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/i386/pc: Have pc_init_isa() pass a NULL pci_type argument
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Wed, 28 Feb 2024 08:17:40 +0000 (09:17 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Sat, 9 Mar 2024 17:51:45 +0000 (18:51 +0100)
commitecca5ca549c13202504aacaf2885ccbed4c021e7
tree763f7d80f427d9f609c43f838b47a89bc661c83e
parent3ac5f6725a2158958afaf686d7a1ed3c7fbe0b12
hw/i386/pc: Have pc_init_isa() pass a NULL pci_type argument

The "isapc" machine only provides an ISA bus, not a PCI one,
and doesn't instanciate any i440FX south bridge.
Its machine class defines PCMachineClass::pci_enabled = false,
and pc_init1() only uses the pci_type argument when pci_enabled
is true. Since for this machine the argument is not used,
passing NULL makes more sense.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Bernhard Beschow <shentey@gmail.com>
Message-Id: <20240301185936.95175-5-philmd@linaro.org>
hw/i386/pc_piix.c