aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2013-09-12 17:35:18 +0100
committerPeter Maydell <peter.maydell@linaro.org>2013-09-12 17:35:18 +0100
commit20e62eb7e5bf25832bd86bc9e1b3aa84c7f110a2 (patch)
treec547ae4b5e0cc0cbf51bece58f4cffbffc0da108
parent24e7cd6f89127ae394b94c3b04984ab2a0594eed (diff)
hw/arm/virt: Support -cpu host
Support -cpu host in virt machine (treating it like an A15, ie with a GIC v2 and the A15's private peripherals.)
-rw-r--r--hw/arm/virt.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/hw/arm/virt.c b/hw/arm/virt.c
index 448a0e514a..97ca34dd55 100644
--- a/hw/arm/virt.c
+++ b/hw/arm/virt.c
@@ -118,6 +118,15 @@ static VirtBoardInfo machines[] = {
.memmap = a15memmap,
.irqmap = a15irqmap,
},
+ {
+ .cpu_model = "host",
+ /* For 32 bit KVM treat 'host' like A15 for its private peripherals */
+ .cpu_compatible = "arm,cortex-a15",
+ .qdevname = "a15mpcore_priv",
+ .gic_compatible = "arm,cortex-a15-gic",
+ .memmap = a15memmap,
+ .irqmap = a15irqmap,
+ },
};
static VirtBoardInfo *find_machine_info(const char *cpu)