Received: from eggs.gnu.org ([208.118.235.92]:41203) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S89Zu-0003Fk-VN for qemu-devel@nongnu.org; Thu, 15 Mar 2012 08:14:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S89ZY-0002Oi-6q for qemu-devel@nongnu.org; Thu, 15 Mar 2012 08:14:46 -0400 From: Alexander Graf Date: Thu, 15 Mar 2012 13:14:08 +0100 Message-Id: <1331813662-15141-3-git-send-email-agraf@suse.de> In-Reply-To: <1331813662-15141-1-git-send-email-agraf@suse.de> References: <1331813662-15141-1-git-send-email-agraf@suse.de> Subject: [Qemu-devel] [PATCH 02/16] PPC: 405: Fix ppc405ep initialization List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel qemu-devel Cc: blauwirbel@gmail.com, qemu-ppc@nongnu.org, aurelien@aurel32.net When trying to run a ppc405 guest, it segfaults quite quickly, trying to access timers that weren't initialized. Initialize them properly instead. Reported-by: Andreas Faerber Signed-off-by: Alexander Graf --- hw/ppc405_uc.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/hw/ppc405_uc.c b/hw/ppc405_uc.c index 6f8342e..89e5013 100644 --- a/hw/ppc405_uc.c +++ b/hw/ppc405_uc.c @@ -2471,6 +2471,8 @@ CPUPPCState *ppc405ep_init(MemoryRegion *address_space_mem, ppc4xx_pob_init(env); /* OBP arbitrer */ ppc4xx_opba_init(0xef600600); + /* Initialize timers */ + ppc_booke_timers_init(env, sysclk, 0); /* Universal interrupt controller */ irqs = g_malloc0(sizeof(qemu_irq) * PPCUIC_OUTPUT_NB); irqs[PPCUIC_OUTPUT_INT] = -- 1.6.0.2