From d715ea961254512c6989e17edbfaf959aa7805b0 Mon Sep 17 00:00:00 2001 From: Alexander Graf Date: Tue, 21 Feb 2012 19:01:11 +0100 Subject: PPC: 405: Fix ppc405ep initialization 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 file changed, 2 insertions(+) diff --git a/hw/ppc405_uc.c b/hw/ppc405_uc.c index 6f8342e0e..89e5013b5 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] = -- cgit v1.2.3