From patchwork Tue Jan 3 18:38:44 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: PPC: 440EP: Initialize timer Date: Tue, 03 Jan 2012 08:38:44 -0000 From: Alexander Graf X-Patchwork-Id: 134050 Message-Id: <1325615927-1096-2-git-send-email-agraf@suse.de> To: "qemu-devel@nongnu.org Developers" Cc: qemu-ppc@nongnu.org, Hollis Blanchard 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 --- hw/ppc440.c | 1 + 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 */