1
From 3ded9f1c71d346ddf64c6cb3e376625e76ce04c9 Mon Sep 17 00:00:00 2001
2
From: Peter Maydell <peter.maydell@linaro.org>
3
Date: Fri, 22 Nov 2013 17:17:18 +0000
4
Subject: [PATCH 11/49] hw/arm/virt: Support -cpu host
6
Support -cpu host in virt machine (treating it like an A15, ie
7
with a GIC v2 and the A15's private peripherals.)
9
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
10
Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
11
Message-id: 1385140638-10444-12-git-send-email-peter.maydell@linaro.org
13
hw/arm/virt.c | 8 ++++++++
14
1 file changed, 8 insertions(+)
16
diff --git a/hw/arm/virt.c b/hw/arm/virt.c
17
index 1e42cc2..9531b5a 100644
20
@@ -122,6 +122,14 @@ static VirtBoardInfo machines[] = {
25
+ .cpu_model = "host",
26
+ /* We use the A15 private peripheral model to get a V2 GIC */
27
+ .qdevname = "a15mpcore_priv",
28
+ .gic_compatible = "arm,cortex-a15-gic",
29
+ .memmap = a15memmap,
30
+ .irqmap = a15irqmap,
34
static VirtBoardInfo *find_machine_info(const char *cpu)