void cpu_exec_realizefn(CPUState *cpu, Error **errp)

{

    CPUClass *cc = CPU_GET_CLASS(cpu);



    cpu_list_add(cpu);



    if (tcg_enabled() && !cc->tcg_initialized) {

        cc->tcg_initialized = true;

        cc->tcg_initialize();

    }



#ifndef CONFIG_USER_ONLY

    if (qdev_get_vmsd(DEVICE(cpu)) == NULL) {

        vmstate_register(NULL, cpu->cpu_index, &vmstate_cpu_common, cpu);

    }

    if (cc->vmsd != NULL) {

        vmstate_register(NULL, cpu->cpu_index, cc->vmsd, cpu);

    }

#endif

}

void cpu_exec_realizefn(CPUState *cpu, Error **errp)

{

    CPUClass *cc = CPU_GET_CLASS(cpu);



    cpu_list_add(cpu);



    if (tcg_enabled() && !cc->tcg_initialized) {

        cc->tcg_initialized = true;

        cc->tcg_initialize();

    }



#ifndef CONFIG_USER_ONLY

    if (qdev_get_vmsd(DEVICE(cpu)) == NULL) {

        vmstate_register(NULL, cpu->cpu_index, &vmstate_cpu_common, cpu);

    }

    if (cc->vmsd != NULL) {

        vmstate_register(NULL, cpu->cpu_index, cc->vmsd, cpu);

    }

#endif

}

void FUNC_0(CPUState *VAR_0, Error **VAR_1)

{

    CPUClass *cc = CPU_GET_CLASS(VAR_0);



    cpu_list_add(VAR_0);



    if (tcg_enabled() && !cc->tcg_initialized) {

        cc->tcg_initialized = true;

        cc->tcg_initialize();

    }



#ifndef CONFIG_USER_ONLY

    if (qdev_get_vmsd(DEVICE(VAR_0)) == NULL) {

        vmstate_register(NULL, VAR_0->cpu_index, &vmstate_cpu_common, VAR_0);

    }

    if (cc->vmsd != NULL) {

        vmstate_register(NULL, VAR_0->cpu_index, cc->vmsd, VAR_0);

    }

#endif

}

void FUNC_0(CPUState *VAR_0, Error **VAR_1)
{ CPUClass *cc = CPU_GET_CLASS(VAR_0); cpu_list_add(VAR_0); if (tcg_enabled() && !cc->tcg_initialized) { cc->tcg_initialized = true; cc->tcg_initialize(); } #ifndef CONFIG_USER_ONLY
if (qdev_get_vmsd(DEVICE(VAR_0)) == NULL) { vmstate_register(NULL, VAR_0->cpu_index, &vmstate_cpu_common, VAR_0); } if (cc->vmsd != NULL) { vmstate_register(NULL, VAR_0->cpu_index, cc->vmsd, VAR_0); } #endif
}