void s390_init_cpus(MachineState *machine)

{

    int i;

    gchar *name;



    if (machine->cpu_model == NULL) {

        machine->cpu_model = "host";

    }



    cpu_states = g_malloc0(sizeof(S390CPU *) * max_cpus);



    for (i = 0; i < max_cpus; i++) {

        name = g_strdup_printf("cpu[%i]", i);

        object_property_add_link(OBJECT(machine), name, TYPE_S390_CPU,

                                 (Object **) &cpu_states[i],

                                 object_property_allow_set_link,

                                 OBJ_PROP_LINK_UNREF_ON_RELEASE,

                                 &error_abort);

        g_free(name);

    }



    for (i = 0; i < smp_cpus; i++) {

        cpu_s390x_init(machine->cpu_model);

    }

}

void s390_init_cpus(MachineState *machine)

{

    int i;

    gchar *name;



    if (machine->cpu_model == NULL) {

        machine->cpu_model = "host";

    }



    cpu_states = g_malloc0(sizeof(S390CPU *) * max_cpus);



    for (i = 0; i < max_cpus; i++) {

        name = g_strdup_printf("cpu[%i]", i);

        object_property_add_link(OBJECT(machine), name, TYPE_S390_CPU,

                                 (Object **) &cpu_states[i],

                                 object_property_allow_set_link,

                                 OBJ_PROP_LINK_UNREF_ON_RELEASE,

                                 &error_abort);

        g_free(name);

    }



    for (i = 0; i < smp_cpus; i++) {

        cpu_s390x_init(machine->cpu_model);

    }

}

void FUNC_0(MachineState *VAR_0)

{

    int VAR_1;

    gchar *name;



    if (VAR_0->cpu_model == NULL) {

        VAR_0->cpu_model = "host";

    }



    cpu_states = g_malloc0(sizeof(S390CPU *) * max_cpus);



    for (VAR_1 = 0; VAR_1 < max_cpus; VAR_1++) {

        name = g_strdup_printf("cpu[%VAR_1]", VAR_1);

        object_property_add_link(OBJECT(VAR_0), name, TYPE_S390_CPU,

                                 (Object **) &cpu_states[VAR_1],

                                 object_property_allow_set_link,

                                 OBJ_PROP_LINK_UNREF_ON_RELEASE,

                                 &error_abort);

        g_free(name);

    }



    for (VAR_1 = 0; VAR_1 < smp_cpus; VAR_1++) {

        cpu_s390x_init(VAR_0->cpu_model);

    }

}

void FUNC_0(MachineState *VAR_0)
{ int VAR_1; gchar *name; if (VAR_0->cpu_model == NULL) { VAR_0->cpu_model = "host"; } cpu_states = g_malloc0(sizeof(S390CPU *) * max_cpus); for (VAR_1 = 0; VAR_1 < max_cpus; VAR_1++) { name = g_strdup_printf("cpu[%VAR_1]", VAR_1); object_property_add_link(OBJECT(VAR_0), name, TYPE_S390_CPU,
(Object **) &cpu_states[VAR_1],
object_property_allow_set_link,
OBJ_PROP_LINK_UNREF_ON_RELEASE,
&error_abort); g_free(name); } for (VAR_1 = 0; VAR_1 < smp_cpus; VAR_1++) { cpu_s390x_init(VAR_0->cpu_model); } }