hw/mips: Use MachineClass->default_nic in the virt machine
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Wed, 24 May 2023 12:25:59 +0000 (14:25 +0200)
committerThomas Huth <thuth@redhat.com>
Fri, 26 May 2023 07:10:49 +0000 (09:10 +0200)
commitbdc20bf5d1a750003f36d0c9e1b6065b61af5f2f
tree65b214357f95c165fa28c8f9798fe6f714f5c393
parent611eda5981c1c07d4f0841f5aca64d26d70da641
hw/mips: Use MachineClass->default_nic in the virt machine

Mark the default NIC via the new MachineClass->default_nic setting
so that the machine-defaults code in vl.c can decide whether the
default NIC is usable or not (for example when compiling with the
"--without-default-devices" configure switch).

Inspired-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20230524122559.28863-1-philmd@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
hw/mips/loongson3_virt.c