Revision 4018bae9 hw/ppc_prep.c

b/hw/ppc_prep.c
564 564
            fprintf(stderr, "Unable to find PowerPC CPU definition\n");
565 565
            exit(1);
566 566
        }
567
        /* Set time-base frequency to 100 Mhz */
568
        cpu_ppc_tb_init(env, 100UL * 1000UL * 1000UL);
567
        if (env->flags & POWERPC_FLAG_RTC_CLK) {
568
            /* POWER / PowerPC 601 RTC clock frequency is 7.8125 MHz */
569
            cpu_ppc_tb_init(env, 7812500UL);
570
        } else {
571
            /* Set time-base frequency to 100 Mhz */
572
            cpu_ppc_tb_init(env, 100UL * 1000UL * 1000UL);
573
        }
569 574
        qemu_register_reset(&cpu_ppc_reset, env);
570 575
        register_savevm("cpu", 0, 3, cpu_save, cpu_load, env);
571 576
        envs[i] = env;

Also available in: Unified diff