milkymist-softusb: Don't map RAM memory regions in the device itself
commitc34e120554c31d45bdfbac08a5c1d9ef92a62020
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 15 Mar 2013 14:34:22 +0000 (15 14:34 +0000)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 1 Apr 2013 14:08:33 +0000 (1 09:08 -0500)
tree243b66a6e204426fcc5e39b8b462080a64b4fbdf
parent20cf850c6ac5bf1ef13de1da93a5c8b5ea28b304
milkymist-softusb: Don't map RAM memory regions in the device itself

Don't map the pmem and dmem RAM memory regions in the milkymist-softusb
device itself. Instead just expose them as sysbus mmio regions which
the device creator can map appropriately. This allows us to drop the
pmem_base and dmem_base properties. Instead of going via
cpu_physical_memory_read/_write when the device wants to access the
RAMs, we just keep a host pointer to the memory and use that.

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-5-git-send-email-peter.maydell@linaro.org
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/milkymist-hw.h
hw/milkymist-softusb.c