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 <afaer...@suse.de> Signed-off-by: Alexander Graf <ag...@suse.de> --- 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 98079fa..1f4efbf 100644 --- a/hw/ppc405_uc.c +++ b/hw/ppc405_uc.c @@ -2483,6 +2483,8 @@ CPUState *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