diff options
| author | David Woodhouse <dwmw@amazon.co.uk> | 2023-10-23 09:37:36 +0100 |
|---|---|---|
| committer | David Woodhouse <dwmw@amazon.co.uk> | 2024-02-02 16:23:47 +0000 |
| commit | f138ed5e005db9d8ce1eb511bea7c9da4333da76 (patch) | |
| tree | 0d277c7b5f8b6e84d6ce1bfc14ae6aef68a39cd2 /hw/arm/mps2.c | |
| parent | cd53991de40a90399a8b56f0ad7b9320442ea5bb (diff) | |
| download | focaccia-qemu-f138ed5e005db9d8ce1eb511bea7c9da4333da76.tar.gz focaccia-qemu-f138ed5e005db9d8ce1eb511bea7c9da4333da76.zip | |
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>
Diffstat (limited to 'hw/arm/mps2.c')
| -rw-r--r-- | hw/arm/mps2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/arm/mps2.c b/hw/arm/mps2.c index bd873cc5de..50919ee46d 100644 --- a/hw/arm/mps2.c +++ b/hw/arm/mps2.c @@ -456,7 +456,7 @@ static void mps2_common_init(MachineState *machine) /* In hardware this is a LAN9220; the LAN9118 is software compatible * except that it doesn't support the checksum-offload feature. */ - lan9118_init(&nd_table[0], mmc->ethernet_base, + lan9118_init(mmc->ethernet_base, qdev_get_gpio_in(armv7m, mmc->fpga_type == FPGA_AN511 ? 47 : 13)); |