mirror of
https://github.com/qemu/qemu.git
synced 2024-11-25 11:53:39 +08:00
xilinx: fix names of ethernet and dma links.
These names were incorrect. Fixed to match to actual link names Signed-off-by: Peter A. G. Crosthwaite <peter.crosthwaite@petalogix.com>
This commit is contained in:
parent
4b5e52101f
commit
c9b6e1f6bb
@ -63,7 +63,8 @@ xilinx_axiethernet_create(NICInfo *nd, StreamSlave *peer,
|
||||
qdev_set_nic_properties(dev, nd);
|
||||
qdev_prop_set_uint32(dev, "rxmem", rxmem);
|
||||
qdev_prop_set_uint32(dev, "txmem", txmem);
|
||||
object_property_set_link(OBJECT(dev), OBJECT(peer), "tx_dev", &errp);
|
||||
object_property_set_link(OBJECT(dev), OBJECT(peer), "axistream-connected",
|
||||
&errp);
|
||||
assert_no_error(errp);
|
||||
qdev_init_nofail(dev);
|
||||
sysbus_mmio_map(sysbus_from_qdev(dev), 0, base);
|
||||
@ -80,7 +81,8 @@ xilinx_axiethernetdma_init(DeviceState *dev, StreamSlave *peer,
|
||||
Error *errp = NULL;
|
||||
|
||||
qdev_prop_set_uint32(dev, "freqhz", freqhz);
|
||||
object_property_set_link(OBJECT(dev), OBJECT(peer), "tx_dev", &errp);
|
||||
object_property_set_link(OBJECT(dev), OBJECT(peer), "axistream-connected",
|
||||
&errp);
|
||||
assert_no_error(errp);
|
||||
qdev_init_nofail(dev);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user