]> git.proxmox.com Git - mirror_qemu.git/commitdiff
PPC: 405: Fix ppc405ep initialization
authorAlexander Graf <agraf@suse.de>
Tue, 21 Feb 2012 18:01:11 +0000 (19:01 +0100)
committerAlexander Graf <agraf@suse.de>
Thu, 15 Mar 2012 12:12:10 +0000 (13:12 +0100)
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 <afaerber@suse.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/ppc405_uc.c

index 6f8342e0e7f0ad0179f3550ce3e05565b6fe8d6d..89e5013b577871701299c72273f9c7c2b9832dad 100644 (file)
@@ -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] =