aboutsummaryrefslogtreecommitdiff
path: root/hw/puv3.c
diff options
context:
space:
mode:
authorGuan Xuetao <gxt@mprc.pku.edu.cn>2012-08-10 14:42:29 +0800
committerBlue Swirl <blauwirbel@gmail.com>2012-08-11 09:37:00 +0000
commit56d07a905025c18a14fef8f85c427e078a7cea79 (patch)
tree983a2b9fa49d4695a1e49fecf951ac32300a6574 /hw/puv3.c
parent5c8556a6f64842c78c2e3493f9d7544af5736ddb (diff)
downloadqemu-56d07a905025c18a14fef8f85c427e078a7cea79.zip
qemu-56d07a905025c18a14fef8f85c427e078a7cea79.tar.gz
qemu-56d07a905025c18a14fef8f85c427e078a7cea79.tar.bz2
unicore32-softmmu: Add puv3 ostimer support
This patch adds puv3 ostimer support, include os timer device simulation and ptimer support in puv3 machine. Signed-off-by: Guan Xuetao <gxt@mprc.pku.edu.cn> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/puv3.c')
-rw-r--r--hw/puv3.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/puv3.c b/hw/puv3.c
index 2870455..5a8a27c 100644
--- a/hw/puv3.c
+++ b/hw/puv3.c
@@ -46,6 +46,9 @@ static void puv3_soc_init(CPUUniCore32State *env)
for (i = 0; i < PUV3_IRQS_NR; i++) {
irqs[i] = qdev_get_gpio_in(dev, i);
}
+
+ /* Initialize minimal necessary devices for kernel booting */
+ sysbus_create_simple("puv3_ost", PUV3_OST_BASE, irqs[PUV3_IRQS_OST0]);
}
static void puv3_board_init(CPUUniCore32State *env, ram_addr_t ram_size)