Skip to content

Commit

Permalink
hw/arm/virt: Support -cpu host
Browse files Browse the repository at this point in the history
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>
Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Message-id: 1385140638-10444-12-git-send-email-peter.maydell@linaro.org
  • Loading branch information
pm215 committed Dec 10, 2013
1 parent a96c051 commit 198aa06
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions hw/arm/virt.c
Expand Up @@ -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)
Expand Down

0 comments on commit 198aa06

Please sign in to comment.