diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2013-11-22 17:17:18 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2013-12-10 13:28:49 +0000 |
commit | 198aa06459ba6c0e689ed0f61b59ebe8aa9f9287 (patch) | |
tree | fdbdb9c49bfb7ece723ef6b4b7aa037dbf36df7e /hw/arm | |
parent | a96c0514ab7d74ecb04677d3dc599facafa44e5b (diff) | |
download | qemu-198aa06459ba6c0e689ed0f61b59ebe8aa9f9287.zip qemu-198aa06459ba6c0e689ed0f61b59ebe8aa9f9287.tar.gz qemu-198aa06459ba6c0e689ed0f61b59ebe8aa9f9287.tar.bz2 |
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.)
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
Diffstat (limited to 'hw/arm')
-rw-r--r-- | hw/arm/virt.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/hw/arm/virt.c b/hw/arm/virt.c index 1e42cc2..9531b5a 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) |