void tlb_flush_page(CPUState *env, target_ulong addr)

{

    int i;



#if defined(DEBUG_TLB)

    printf("tlb_flush_page: " TARGET_FMT_lx "\n", addr);

#endif

    /* must reset current TB so that interrupts cannot modify the

       links while we are modifying them */

    env->current_tb = NULL;



    addr &= TARGET_PAGE_MASK;

    i = (addr >> TARGET_PAGE_BITS) & (CPU_TLB_SIZE - 1);

    tlb_flush_entry(&env->tlb_table[0][i], addr);

    tlb_flush_entry(&env->tlb_table[1][i], addr);

#if (NB_MMU_MODES >= 3)

    tlb_flush_entry(&env->tlb_table[2][i], addr);

#if (NB_MMU_MODES == 4)

    tlb_flush_entry(&env->tlb_table[3][i], addr);

#endif

#endif



    tlb_flush_jmp_cache(env, addr);



#ifdef USE_KQEMU

    if (env->kqemu_enabled) {

        kqemu_flush_page(env, addr);

    }

#endif

}

void tlb_flush_page(CPUState *env, target_ulong addr)

{

    int i;



#if defined(DEBUG_TLB)

    printf("tlb_flush_page: " TARGET_FMT_lx "\n", addr);

#endif

    



    env->current_tb = NULL;



    addr &= TARGET_PAGE_MASK;

    i = (addr >> TARGET_PAGE_BITS) & (CPU_TLB_SIZE - 1);

    tlb_flush_entry(&env->tlb_table[0][i], addr);

    tlb_flush_entry(&env->tlb_table[1][i], addr);

#if (NB_MMU_MODES >= 3)

    tlb_flush_entry(&env->tlb_table[2][i], addr);

#if (NB_MMU_MODES == 4)

    tlb_flush_entry(&env->tlb_table[3][i], addr);

#endif

#endif



    tlb_flush_jmp_cache(env, addr);



#ifdef USE_KQEMU

    if (env->kqemu_enabled) {

        kqemu_flush_page(env, addr);

    }

#endif

}

void FUNC_0(CPUState *VAR_0, target_ulong VAR_1)

{

    int VAR_2;



#if defined(DEBUG_TLB)

    printf("FUNC_0: " TARGET_FMT_lx "\n", VAR_1);

#endif

    



    VAR_0->current_tb = NULL;



    VAR_1 &= TARGET_PAGE_MASK;

    VAR_2 = (VAR_1 >> TARGET_PAGE_BITS) & (CPU_TLB_SIZE - 1);

    tlb_flush_entry(&VAR_0->tlb_table[0][VAR_2], VAR_1);

    tlb_flush_entry(&VAR_0->tlb_table[1][VAR_2], VAR_1);

#if (NB_MMU_MODES >= 3)

    tlb_flush_entry(&VAR_0->tlb_table[2][VAR_2], VAR_1);

#if (NB_MMU_MODES == 4)

    tlb_flush_entry(&VAR_0->tlb_table[3][VAR_2], VAR_1);

#endif

#endif



    tlb_flush_jmp_cache(VAR_0, VAR_1);



#ifdef USE_KQEMU

    if (VAR_0->kqemu_enabled) {

        kqemu_flush_page(VAR_0, VAR_1);

    }

#endif

}

void FUNC_0(CPUState *VAR_0, target_ulong VAR_1)
{ int VAR_2; #if defined(DEBUG_TLB)
printf("FUNC_0: " TARGET_FMT_lx "\n", VAR_1); #endif
VAR_0->current_tb = NULL; VAR_1 &= TARGET_PAGE_MASK; VAR_2 = (VAR_1 >> TARGET_PAGE_BITS) & (CPU_TLB_SIZE - 1); tlb_flush_entry(&VAR_0->tlb_table[0][VAR_2], VAR_1); tlb_flush_entry(&VAR_0->tlb_table[1][VAR_2], VAR_1); #if (NB_MMU_MODES >= 3)
tlb_flush_entry(&VAR_0->tlb_table[2][VAR_2], VAR_1); #if (NB_MMU_MODES == 4)
tlb_flush_entry(&VAR_0->tlb_table[3][VAR_2], VAR_1); #endif
#endif
tlb_flush_jmp_cache(VAR_0, VAR_1); #ifdef USE_KQEMU
if (VAR_0->kqemu_enabled) { kqemu_flush_page(VAR_0, VAR_1); } #endif
}