mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
hw/net/lan9118: use qemu_configure_nic_device()
Some callers instantiate the device unconditionally, others will do so only if there is a NICInfo to go with it. This appears to be fairly random, but preseve the existing behaviour for now. Signed-off-by: David Woodhouse <dwmw@amazon.co.uk> Reviewed-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
parent
cd53991de4
commit
f138ed5e00
6 changed files with 10 additions and 13 deletions
|
@ -679,8 +679,8 @@ static void vexpress_common_init(MachineState *machine)
|
|||
memory_region_add_subregion(sysmem, map[VE_VIDEORAM], &vms->vram);
|
||||
|
||||
/* 0x4e000000 LAN9118 Ethernet */
|
||||
if (nd_table[0].used) {
|
||||
lan9118_init(&nd_table[0], map[VE_ETHERNET], pic[15]);
|
||||
if (qemu_find_nic_info("lan9118", true, NULL)) {
|
||||
lan9118_init(map[VE_ETHERNET], pic[15]);
|
||||
}
|
||||
|
||||
/* VE_USB: not modelled */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue