Revision ea375f9a vl.c

b/vl.c
3002 3002
    qemu_mod_timer(nographic_timer, interval + qemu_get_clock(rt_clock));
3003 3003
}
3004 3004

  
3005
void cpu_synchronize_all_states(void)
3006
{
3007
    CPUState *cpu;
3008

  
3009
    for (cpu = first_cpu; cpu; cpu = cpu->next_cpu) {
3010
        cpu_synchronize_state(cpu);
3011
    }
3012
}
3013

  
3014
void cpu_synchronize_all_post_reset(void)
3015
{
3016
    CPUState *cpu;
3017

  
3018
    for (cpu = first_cpu; cpu; cpu = cpu->next_cpu) {
3019
        cpu_synchronize_post_reset(cpu);
3020
    }
3021
}
3022

  
3023
void cpu_synchronize_all_post_init(void)
3024
{
3025
    CPUState *cpu;
3026

  
3027
    for (cpu = first_cpu; cpu; cpu = cpu->next_cpu) {
3028
        cpu_synchronize_post_init(cpu);
3029
    }
3030
}
3031

  
3005 3032
struct vm_change_state_entry {
3006 3033
    VMChangeStateHandler *cb;
3007 3034
    void *opaque;
......
3143 3170
    QTAILQ_FOREACH_SAFE(re, &reset_handlers, entry, nre) {
3144 3171
        re->func(re->opaque);
3145 3172
    }
3173
    cpu_synchronize_all_post_reset();
3146 3174
}
3147 3175

  
3148 3176
void qemu_system_reset_request(void)
......
5928 5956
    machine->init(ram_size, boot_devices,
5929 5957
                  kernel_filename, kernel_cmdline, initrd_filename, cpu_model);
5930 5958

  
5959
    cpu_synchronize_all_post_init();
5931 5960

  
5932 5961
#ifndef _WIN32
5933 5962
    /* must be after terminal init, SDL library changes signal handlers */

Also available in: Unified diff