aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2012-01-06 16:44:20 +0000
committerPeter Maydell <peter.maydell@linaro.org>2012-03-03 22:01:08 +0000
commit2cdcd90a01ddebfcd5e28da79e69b39599d0dc47 (patch)
treea129cae702ad4065873a1b714aa75e80cd1f661c
parent0785a56bb6fb9ef4fe21202b867e90c1aa0144da (diff)
downloadqemu-arm-amba-virtio.tar.gz
hw/vexpress.c: Add MMIO virtio transportamba-virtio
Add the MMIO virtio transport. NB: this is a temporary hack for testing purposes.
-rw-r--r--hw/vexpress.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/vexpress.c b/hw/vexpress.c
index b9aafec4cc..75e0ad82d1 100644
--- a/hw/vexpress.c
+++ b/hw/vexpress.c
@@ -69,6 +69,7 @@ enum {
VE_ETHERNET,
VE_USB,
VE_DAPROM,
+ VE_VIRTIO1,
};
static target_phys_addr_t motherboard_legacy_map[] = {
@@ -90,6 +91,7 @@ static target_phys_addr_t motherboard_legacy_map[] = {
[VE_SERIALDVI] = 0x10016000,
[VE_RTC] = 0x10017000,
[VE_COMPACTFLASH] = 0x1001a000,
+ [VE_VIRTIO1] = 0x1001e000,
[VE_CLCD] = 0x1001f000,
/* CS0: 0x40000000 .. 0x44000000 */
[VE_NORFLASH0] = 0x40000000,
@@ -135,6 +137,7 @@ static target_phys_addr_t motherboard_aseries_map[] = {
[VE_SERIALDVI] = 0x1c160000,
[VE_RTC] = 0x1c170000,
[VE_COMPACTFLASH] = 0x1c1a0000,
+ [VE_VIRTIO1] = 0x1c1e0000,
[VE_CLCD] = 0x1c1f0000,
};
@@ -405,6 +408,8 @@ static void vexpress_common_init(const VEDBoardInfo *daughterboard,
sysbus_create_simple("pl111", map[VE_CLCD], pic[14]);
+ sysbus_create_simple("virtio-blk-mmio", map[VE_VIRTIO1], pic[42]);
+
/* VE_NORFLASH0: not modelled */
/* VE_NORFLASH0ALIAS: not modelled */
/* VE_NORFLASH1: not modelled */