sun4u: fix assert when adding NICs which aren't the in-built model
commitbcf9e2c2f2b7a610efaafc4bd6d0bee9181c2345
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Sun, 15 Oct 2017 09:05:59 +0000 (15 10:05 +0100)
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Thu, 19 Oct 2017 06:45:35 +0000 (19 07:45 +0100)
tree082607f0bca2aba2ef5791dae75e522ff365ace0
parent6864fa38972081833f79b39df74b9c08cc94f6cc
sun4u: fix assert when adding NICs which aren't the in-built model

Commit 8d93297 introduced a bug whereby non-inbuilt NICs are realized before
setting the default MAC address causing an assert. Switch NIC creation
over from pci_create_simple() to pci_create() which works exactly the
same except omitting the realize as originally intended.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Artyom Tarasenko <atar4qemu@gmail.com>
hw/sparc64/sun4u.c