summaryrefslogtreecommitdiffstats
path: root/hw/ppc440.c
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2012-01-03 18:55:38 +0100
committerAlexander Graf <agraf@suse.de>2012-01-21 05:16:59 +0100
commitd29d3404fc1bb9e47b0e1cdc16218a574fbc2754 (patch)
treef824913d71941487a35d711cd95d3cde9a3f21f5 /hw/ppc440.c
parent515689235c4c3d9c3f0406ddcdd21ed8da77062b (diff)
downloadhqemu-d29d3404fc1bb9e47b0e1cdc16218a574fbc2754.zip
hqemu-d29d3404fc1bb9e47b0e1cdc16218a574fbc2754.tar.gz
PPC: 440EP: Initialize timer
When using TCG with a BookE PowerPC core, we need to explicitly initialize the BookE timers with the correct frequencies. This was missing for 440EP, since that code came from KVM and was never used with TCG. Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'hw/ppc440.c')
-rw-r--r--hw/ppc440.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/ppc440.c b/hw/ppc440.c
index cd8a95d..f7779bf 100644
--- a/hw/ppc440.c
+++ b/hw/ppc440.c
@@ -56,6 +56,7 @@ CPUState *ppc440ep_init(MemoryRegion *address_space_mem, ram_addr_t *ram_size,
exit(1);
}
+ ppc_booke_timers_init(env, 400000000, 0);
ppc_dcr_init(env, NULL, NULL);
/* interrupt controller */
OpenPOWER on IntegriCloud