From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:55269) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ri92I-0000ZS-01 for qemu-devel@nongnu.org; Tue, 03 Jan 2012 13:24:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ri92C-0002S9-Lr for qemu-devel@nongnu.org; Tue, 03 Jan 2012 13:24:33 -0500 From: Alexander Graf Date: Tue, 3 Jan 2012 19:38:44 +0100 Message-Id: <1325615927-1096-2-git-send-email-agraf@suse.de> In-Reply-To: <1325615927-1096-1-git-send-email-agraf@suse.de> References: <1325615927-1096-1-git-send-email-agraf@suse.de> Subject: [Qemu-devel] [PATCH] PPC: 440EP: Initialize timer List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 */ -- 1.6.0.2