qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH v6 10/16] petalogix_ml605_mmu: Attach ethernet to ma


From: peter . crosthwaite
Subject: [Qemu-devel] [PATCH v6 10/16] petalogix_ml605_mmu: Attach ethernet to machine
Date: Tue, 16 Apr 2013 10:24:39 +1000

From: Peter Crosthwaite <address@hidden>

Explicitly 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 <address@hidden>
Reviewed-by: Andreas Färber <address@hidden>
Acked-by: Edgar E. Iglesias <address@hidden>
---

 hw/microblaze/petalogix_ml605_mmu.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/hw/microblaze/petalogix_ml605_mmu.c 
b/hw/microblaze/petalogix_ml605_mmu.c
index d7391e7..ea1e772 100644
--- a/hw/microblaze/petalogix_ml605_mmu.c
+++ b/hw/microblaze/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);
 
-- 
1.7.0.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]