]> 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 <dwmw@amazon.co.uk>
Mon, 13 Nov 2023 23:31:53 +0000 (18:31 -0500)
commite915ed0dab5206bcac8f12f2e856f2e9f93ea5a9
tree44876257f2e5c20555f72fbd66c61bd10b539c35
parentd5d19e5b3060c15ed70eb31053c0b6257dd54736
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