aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2013-11-14 15:10:53 +0000
committerPeter Maydell <peter.maydell@linaro.org>2013-11-22 15:12:57 +0000
commitc4a560e4efe7d02fd0255b3e14af59f8a473eb1e (patch)
tree77d38099b613b8b998eba651702fe26bd55f726c
parent0e3482c27be3e3ff888e36ffbdfecfa48ae24e64 (diff)
hw/arm/virt: Support -cpu hostmach-virt
Support -cpu host in virt machine (treating it like an A15, ie with a GIC v2 and the A15's private peripherals.) Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r--hw/arm/virt.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/hw/arm/virt.c b/hw/arm/virt.c
index 1e42cc2666..9531b5a574 100644
--- a/hw/arm/virt.c
+++ b/hw/arm/virt.c
@@ -122,6 +122,14 @@ static VirtBoardInfo machines[] = {
.memmap = a15memmap,
.irqmap = a15irqmap,
},
+ {
+ .cpu_model = "host",
+ /* We use the A15 private peripheral model to get a V2 GIC */
+ .qdevname = "a15mpcore_priv",
+ .gic_compatible = "arm,cortex-a15-gic",
+ .memmap = a15memmap,
+ .irqmap = a15irqmap,
+ },
};
static VirtBoardInfo *find_machine_info(const char *cpu)