aspeed: Change the "nic" property definition
commitccb88bf220b041f04e946d3a2b619dd2bc30951b
authorCédric Le Goater <clg@kaod.org>
Tue, 19 Nov 2019 14:12:11 +0000 (19 15:12 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 16 Dec 2019 10:46:34 +0000 (16 10:46 +0000)
treeb22090e501f3d0bff779965450fe9bb254f9a0b7
parent2ec11f2320f6146321574c73b9cd6196f861eb10
aspeed: Change the "nic" property definition

The Aspeed MII model has a link pointing to its associated FTGMAC100
NIC in the machine.

Change the "nic" property definition so that it explicitly sets the
pointer. The property isn't optional : not being able to set the link
is a bug and QEMU should rather abort than exit in this case.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Greg Kurz <groug@kaod.org>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Message-id: 20191119141211.25716-18-clg@kaod.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/aspeed_ast2600.c
hw/net/ftgmac100.c