From patchwork Mon Feb 25 08:50:14 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [v2,6/8] petalogix_ml605_mmu: Attach ethernet to machine Date: Sun, 24 Feb 2013 22:50:14 -0000 From: Peter Crosthwaite X-Patchwork-Id: 222865 Message-Id: <1f104bb9bb2726b25790b52d3671a1069847de92.1361782087.git.peter.crosthwaite@xilinx.com> To: qemu-devel@nongnu.org Cc: edgar.iglesias@gmail.com, Peter Crosthwaite , afaerber@suse.de, peter.maydell@linaro.org Explicitily make the ethernet a child of the machine. This is needed to set and use links pre-realize. Also makes the ethernet initialization consistent with its peer DMA. Signed-off-by: Peter Crosthwaite Reviewed-by: Andreas Färber --- hw/petalogix_ml605_mmu.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/hw/petalogix_ml605_mmu.c b/hw/petalogix_ml605_mmu.c index 98e647d..e3528c0 100644 --- a/hw/petalogix_ml605_mmu.c +++ b/hw/petalogix_ml605_mmu.c @@ -134,6 +134,8 @@ petalogix_ml605_init(QEMUMachineInitArgs *args) dma = qdev_create(NULL, "xlnx.axi-dma"); /* FIXME: attach to the sysbus instead */ + object_property_add_child(qdev_get_machine(), "xilinx-eth", OBJECT(eth0), + NULL); object_property_add_child(qdev_get_machine(), "xilinx-dma", OBJECT(dma), NULL);