diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2013-03-15 14:34:21 +0000 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2013-04-01 09:08:33 -0500 |
commit | 20cf850c6ac5bf1ef13de1da93a5c8b5ea28b304 (patch) | |
tree | 2819597de7b47cf7e3da488ea2a9f9f78ba4f73a /hw/milkymist-hw.h | |
parent | a86f200aeb66a4f402b22241a5d8360f02bfc090 (diff) |
milkymist-minimac2: Just expose buffers as a sysbus mmio region
Just expose the register buffers memory as a standard sysbus mmio
region which the creator of the device can map, rather than
providing a qdev property which the creator has to set to the
base address and then doing the mapping in the device's own
init function.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Andreas Färber <afaerber@suse.de>
Acked-by: Michael Walle <michael@walle.cc>
Message-id: 1363358063-23973-4-git-send-email-peter.maydell@linaro.org
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/milkymist-hw.h')
-rw-r--r-- | hw/milkymist-hw.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/milkymist-hw.h b/hw/milkymist-hw.h index c047a70a9f..8e6c01e623 100644 --- a/hw/milkymist-hw.h +++ b/hw/milkymist-hw.h @@ -177,10 +177,10 @@ static inline DeviceState *milkymist_minimac2_create(hwaddr base, qemu_check_nic_model(&nd_table[0], "minimac2"); dev = qdev_create(NULL, "milkymist-minimac2"); - qdev_prop_set_taddr(dev, "buffers_base", buffers_base); qdev_set_nic_properties(dev, &nd_table[0]); qdev_init_nofail(dev); sysbus_mmio_map(SYS_BUS_DEVICE(dev), 0, base); + sysbus_mmio_map(SYS_BUS_DEVICE(dev), 1, buffers_base); sysbus_connect_irq(SYS_BUS_DEVICE(dev), 0, rx_irq); sysbus_connect_irq(SYS_BUS_DEVICE(dev), 1, tx_irq); |