From patchwork Tue Jan 3 18:38:44 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Graf X-Patchwork-Id: 134050 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id DCC17B6F7E for ; Wed, 4 Jan 2012 05:24:55 +1100 (EST) Received: from localhost ([::1]:43283 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ri92a-0000zz-S2 for incoming@patchwork.ozlabs.org; Tue, 03 Jan 2012 13:24:52 -0500 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 Received: from cantor2.suse.de ([195.135.220.15]:54555 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ri92C-0002Rj-Fa; Tue, 03 Jan 2012 13:24:28 -0500 Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.221.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx2.suse.de (Postfix) with ESMTP id 6B18F8BB22; Tue, 3 Jan 2012 19:24:27 +0100 (CET) From: Alexander Graf To: "qemu-devel@nongnu.org Developers" Date: Tue, 3 Jan 2012 19:38:44 +0100 Message-Id: <1325615927-1096-2-git-send-email-agraf@suse.de> X-Mailer: git-send-email 1.7.3.4 In-Reply-To: <1325615927-1096-1-git-send-email-agraf@suse.de> References: <1325615927-1096-1-git-send-email-agraf@suse.de> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-Received-From: 195.135.220.15 Cc: qemu-ppc@nongnu.org, Hollis Blanchard Subject: [Qemu-devel] [PATCH] PPC: 440EP: Initialize timer X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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 */