void cpu_exec_init(CPUState *env)

{

    CPUState **penv;

    int cpu_index;



    if (!code_gen_ptr) {

        code_gen_ptr = code_gen_buffer;

        page_init();

        io_mem_init();

    }

    env->next_cpu = NULL;

    penv = &first_cpu;

    cpu_index = 0;

    while (*penv != NULL) {

        penv = (CPUState **)&(*penv)->next_cpu;

        cpu_index++;

    }

    env->cpu_index = cpu_index;


    *penv = env;

}
void cpu_exec_init(CPUState *env)

{

    CPUState **penv;

    int cpu_index;



    if (!code_gen_ptr) {

        code_gen_ptr = code_gen_buffer;

        page_init();

        io_mem_init();

    }

    env->next_cpu = NULL;

    penv = &first_cpu;

    cpu_index = 0;

    while (*penv != NULL) {

        penv = (CPUState **)&(*penv)->next_cpu;

        cpu_index++;

    }

    env->cpu_index = cpu_index;


    *penv = env;

}
void FUNC_0(CPUState *VAR_0)

{

    CPUState **penv;

    int VAR_1;



    if (!code_gen_ptr) {

        code_gen_ptr = code_gen_buffer;

        page_init();

        io_mem_init();

    }

    VAR_0->next_cpu = NULL;

    penv = &first_cpu;

    VAR_1 = 0;

    while (*penv != NULL) {

        penv = (CPUState **)&(*penv)->next_cpu;

        VAR_1++;

    }

    VAR_0->VAR_1 = VAR_1;


    *penv = VAR_0;

}
void FUNC_0(CPUState *VAR_0)
{ CPUState **penv; int VAR_1; if (!code_gen_ptr) { code_gen_ptr = code_gen_buffer; page_init(); io_mem_init(); } VAR_0->next_cpu = NULL; penv = &first_cpu; VAR_1 = 0; while (*penv != NULL) { penv = (CPUState **)&(*penv)->next_cpu; VAR_1++; } VAR_0->VAR_1 = VAR_1; *penv = VAR_0; }