aboutsummaryrefslogtreecommitdiff
path: root/hw/puv3.c
diff options
context:
space:
mode:
authorGuan Xuetao <gxt@mprc.pku.edu.cn>2012-08-10 14:42:31 +0800
committerBlue Swirl <blauwirbel@gmail.com>2012-08-11 09:37:01 +0000
commitf716c1973ac97d3838212d16b94dff69becf3d67 (patch)
treefa6c5afe55bdf2a2af5f03358f0de1736ab9b0a9 /hw/puv3.c
parenta89d01c1925e88e7f6432b334e0b681899454486 (diff)
downloadqemu-f716c1973ac97d3838212d16b94dff69becf3d67.zip
qemu-f716c1973ac97d3838212d16b94dff69becf3d67.tar.gz
qemu-f716c1973ac97d3838212d16b94dff69becf3d67.tar.bz2
unicore32-softmmu: Add puv3 pm support
This patch adds puv3 pm (power management) support, include pm device simulation for kernel booting. Thank Blue Swirl for pointing out the missing "break". v1->v2: Add initialization to ret in puv3_pm_read. 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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/puv3.c b/hw/puv3.c
index 0354cf6..3a14b27 100644
--- a/hw/puv3.c
+++ b/hw/puv3.c
@@ -48,6 +48,7 @@ static void puv3_soc_init(CPUUniCore32State *env)
}
/* Initialize minimal necessary devices for kernel booting */
+ sysbus_create_simple("puv3_pm", PUV3_PM_BASE, NULL);
sysbus_create_simple("puv3_ost", PUV3_OST_BASE, irqs[PUV3_IRQS_OST0]);
sysbus_create_varargs("puv3_gpio", PUV3_GPIO_BASE,
irqs[PUV3_IRQS_GPIOLOW0], irqs[PUV3_IRQS_GPIOLOW1],