diff options
author | Peter Crosthwaite <peter.crosthwaite@xilinx.com> | 2013-04-16 10:25:57 +1000 |
---|---|---|
committer | Edgar E. Iglesias <edgar.iglesias@gmail.com> | 2013-04-16 10:04:22 +0200 |
commit | e1500e35c22be345cd04f77fa6993770b689eaa9 (patch) | |
tree | 75ec620e9c15a43df90af8e91fada5a7347f4834 /hw/microblaze | |
parent | 55b3e0c2f8fb7ef6d7929de23f3ae2a3d805ebff (diff) | |
download | qemu-e1500e35c22be345cd04f77fa6993770b689eaa9.tar.gz qemu-e1500e35c22be345cd04f77fa6993770b689eaa9.tar.bz2 qemu-e1500e35c22be345cd04f77fa6993770b689eaa9.zip |
xilinx_axidma: Create Proxy object for stream
Create a separate child object to proxy the stream slave connection. This is
setup for future work where a second stream slave connection is needed. The
new child object is created at qdev init time and is linked back to the parent
(the ethernet device itself) automatically.
Stream slave masters differentiate which slave connection they are connected to
by linking to the proxy object rather than the parent.
Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
Diffstat (limited to 'hw/microblaze')
-rw-r--r-- | hw/microblaze/petalogix_ml605_mmu.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/hw/microblaze/petalogix_ml605_mmu.c b/hw/microblaze/petalogix_ml605_mmu.c index 0bad3621c3..75ff2acbdc 100644 --- a/hw/microblaze/petalogix_ml605_mmu.c +++ b/hw/microblaze/petalogix_ml605_mmu.c @@ -140,8 +140,10 @@ petalogix_ml605_init(QEMUMachineInitArgs *args) object_property_add_child(qdev_get_machine(), "xilinx-dma", OBJECT(dma), NULL); - xilinx_axiethernet_init(eth0, &nd_table[0], STREAM_SLAVE(dma), - 0x82780000, irq[3], 0x1000, 0x1000); + peer = object_property_get_link(OBJECT(dma), + "axistream-connected-target", NULL); + xilinx_axiethernet_init(eth0, &nd_table[0], STREAM_SLAVE(peer), + 0x82780000, irq[3], 0x1000, 0x1000); peer = object_property_get_link(OBJECT(eth0), "axistream-connected-target", NULL); |