]> www.infradead.org Git - users/dwmw2/qemu.git/commit
hw/m68k/q800: use qemu_find_nic_info()
authorDavid Woodhouse <dwmw@amazon.co.uk>
Mon, 23 Oct 2023 08:37:45 +0000 (09:37 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Mon, 8 Jan 2024 13:50:16 +0000 (13:50 +0000)
commit9649ac15f3298384bf75e213c23bc09b7e42a0c2
tree4fa5382280bf893aaf9112ef4f7a6afbb839ea3f
parent4de0296b9b44345741470377719f9f1e7b02a93e
hw/m68k/q800: use qemu_find_nic_info()

If a corresponding NIC configuration was found, it will have a MAC address
already assigned, so use that. Else, generate and assign a default one.

Using qemu_find_nic_info() is simpler than the alternative of using
qemu_configure_nic_device() and then having to fetch the "mac" property
as a string and convert it.

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
hw/m68k/q800.c