void tcg_cpu_address_space_init(CPUState *cpu, AddressSpace *as)

{

    /* We only support one address space per cpu at the moment.  */

    assert(cpu->as == as);



    if (cpu->cpu_ases) {

        /* We've already registered the listener for our only AS */

        return;

    }



    cpu->cpu_ases = g_new0(CPUAddressSpace, 1);

    cpu->cpu_ases[0].cpu = cpu;

    cpu->cpu_ases[0].as = as;

    cpu->cpu_ases[0].tcg_as_listener.commit = tcg_commit;

    memory_listener_register(&cpu->cpu_ases[0].tcg_as_listener, as);

}

void tcg_cpu_address_space_init(CPUState *cpu, AddressSpace *as)

{

    

    assert(cpu->as == as);



    if (cpu->cpu_ases) {

        

        return;

    }



    cpu->cpu_ases = g_new0(CPUAddressSpace, 1);

    cpu->cpu_ases[0].cpu = cpu;

    cpu->cpu_ases[0].as = as;

    cpu->cpu_ases[0].tcg_as_listener.commit = tcg_commit;

    memory_listener_register(&cpu->cpu_ases[0].tcg_as_listener, as);

}

void FUNC_0(CPUState *VAR_0, AddressSpace *VAR_1)

{

    

    assert(VAR_0->VAR_1 == VAR_1);



    if (VAR_0->cpu_ases) {

        

        return;

    }



    VAR_0->cpu_ases = g_new0(CPUAddressSpace, 1);

    VAR_0->cpu_ases[0].VAR_0 = VAR_0;

    VAR_0->cpu_ases[0].VAR_1 = VAR_1;

    VAR_0->cpu_ases[0].tcg_as_listener.commit = tcg_commit;

    memory_listener_register(&VAR_0->cpu_ases[0].tcg_as_listener, VAR_1);

}

void FUNC_0(CPUState *VAR_0, AddressSpace *VAR_1)
{ assert(VAR_0->VAR_1 == VAR_1); if (VAR_0->cpu_ases) { return; } VAR_0->cpu_ases = g_new0(CPUAddressSpace, 1); VAR_0->cpu_ases[0].VAR_0 = VAR_0; VAR_0->cpu_ases[0].VAR_1 = VAR_1; VAR_0->cpu_ases[0].tcg_as_listener.commit = tcg_commit; memory_listener_register(&VAR_0->cpu_ases[0].tcg_as_listener, VAR_1); }