Home
last modified time | relevance | path

Searched refs:nb_tlb (Results 1 – 15 of 15) sorted by relevance

/openbmc/qemu/target/ppc/
H A Dmachine.c581 return env->nb_tlb && (env->tlb_type == TLB_6XX); in tlb6xx_needed()
590 VMSTATE_INT32_EQUAL(env.nb_tlb, PowerPCCPU, NULL),
592 env.nb_tlb,
620 return env->nb_tlb && (env->tlb_type == TLB_EMB); in tlbemb_needed()
629 VMSTATE_INT32_EQUAL(env.nb_tlb, PowerPCCPU, NULL),
631 env.nb_tlb,
656 return env->nb_tlb && (env->tlb_type == TLB_MAS); in tlbmas_needed()
665 VMSTATE_INT32_EQUAL(env.nb_tlb, PowerPCCPU, NULL),
667 env.nb_tlb,
H A Dmmu_common.c80 nr += env->nb_tlb; in ppc6xx_tlb_getnum()
108 nr, env->nb_tlb, in ppc6xx_tlb_check()
115 nr, env->nb_tlb, in ppc6xx_tlb_check()
369 for (i = 0; i < env->nb_tlb; i++, entry++) { in mmubooke_dump_mmu()
534 for (entry = env->nb_tlb * type + env->tlb_per_way * way; in mmu6xx_dump_mmu()
535 entry < (env->nb_tlb * type + env->tlb_per_way * (way + 1)); in mmu6xx_dump_mmu()
541 type ? "code" : "data", entry % env->nb_tlb, in mmu6xx_dump_mmu()
542 env->nb_tlb, way, in mmu6xx_dump_mmu()
H A Dmmu-booke.c62 for (i = 0; i < env->nb_tlb; i++) { in ppcemb_tlb_search()
80 for (i = 0; i < env->nb_tlb; i++) { in mmu40x_get_physical_address()
195 for (i = 0; i < env->nb_tlb; i++) { in mmubooke_get_physical_address()
H A Dmmu_helper.c49 int nr, max = 2 * env->nb_tlb; in ppc6xx_tlb_invalidate_all()
73 TARGET_FMT_lx "\n", nr, env->nb_tlb, eaddr); in ppc6xx_tlb_invalidate_virt2()
99 TARGET_FMT_lx " PTE1 " TARGET_FMT_lx "\n", nr, env->nb_tlb, in ppc6xx_tlb_store()
116 for (i = 0; i < env->nb_tlb; i++) { in ppc4xx_tlb_invalidate_all()
H A Dkvm.c236 assert(entries == env->nb_tlb); in kvm_booke206_tlb_init()
541 bitmap = g_malloc((env->nb_tlb + 7) / 8); in kvm_sw_tlb_put()
542 memset(bitmap, 0xFF, (env->nb_tlb + 7) / 8); in kvm_sw_tlb_put()
545 dirty_tlb.num_dirty = env->nb_tlb; in kvm_sw_tlb_put()
H A Dhelper_regs.c731 env->nb_tlb = nb_tlbs; in register_6xx_7xx_soft_tlb()
H A Dcpu_init.c2134 env->nb_tlb = 64; in init_tlbs_emb()
3021 env->nb_tlb = 0; in init_proc_e500()
3024 env->nb_tlb += booke206_tlb_size(env, i); in init_proc_e500()
6817 env->nb_tlb = 0; in init_ppc_proc()
6915 if (env->nb_tlb) { in init_ppc_proc()
6919 env->tlb.tlb6 = g_new0(ppc6xx_tlb_t, 2 * env->nb_tlb); in init_ppc_proc()
6922 env->tlb.tlbe = g_new0(ppcemb_tlb_t, env->nb_tlb); in init_ppc_proc()
6925 env->tlb.tlbm = g_new0(ppcmas_tlb_t, env->nb_tlb); in init_ppc_proc()
6929 env->tlb_per_way = env->nb_tlb / env->nb_ways; in init_ppc_proc()
H A Dcpu.h1267 int32_t nb_tlb; /* Total number of TLB */ member
/openbmc/qemu/target/mips/tcg/sysemu/
H A Dtlb_helper.c93 for (idx = 0; idx < env->tlb->nb_tlb; idx++) { in r4k_helper_tlbinv()
107 for (idx = 0; idx < env->tlb->nb_tlb; idx++) { in r4k_helper_tlbinvf()
126 idx = (env->CP0_Index & ~0x80000000) % env->tlb->nb_tlb; in r4k_helper_tlbwi()
154 r4k_mips_tlb_flush_extra(env, env->tlb->nb_tlb); in r4k_helper_tlbwi()
182 for (i = 0; i < env->tlb->nb_tlb; i++) { in r4k_helper_tlbp()
199 if (i == env->tlb->nb_tlb) { in r4k_helper_tlbp()
251 r4k_mips_tlb_flush_extra(env, env->tlb->nb_tlb); in r4k_helper_tlbr()
318 for (idx = 0; idx < env->tlb->nb_tlb; idx++) { in global_invalidate_tlb()
446 env->tlb->nb_tlb = 1; in no_mmu_init()
452 env->tlb->nb_tlb = 1; in fixed_mmu_init()
[all …]
H A Dcp0_helper.c209 uint32_t nb_rand_tlb = env->tlb->nb_tlb - env->CP0_Wired; in cpu_mips_get_random()
212 return env->tlb->nb_tlb - 1; in cpu_mips_get_random()
506 if (tlb_index < env->tlb->nb_tlb) { in helper_mtc0_index()
1007 if (arg1 < env->tlb->nb_tlb) { in helper_mtc0_wired()
1011 env->CP0_Wired = arg1 % env->tlb->nb_tlb; in helper_mtc0_wired()
/openbmc/qemu/target/mips/
H A Dcpu.c296 env->CP0_Random = env->tlb->nb_tlb - 1; in mips_cpu_reset_hold()
297 env->tlb->tlb_in_use = env->tlb->nb_tlb; in mips_cpu_reset_hold()
H A Dinternal.h142 uint32_t nb_tlb; member
H A Dcpu-defs.c.inc1052 env->mvp->CP0_MVPConf0 |= (env->tlb->nb_tlb << CP0MVPC0_PTLBE);
/openbmc/qemu/target/mips/sysemu/
H A Dmachine.c210 VMSTATE_UINT32(nb_tlb, CPUMIPSTLBContext),
/openbmc/qemu/hw/ppc/
H A Dpegasos2.c996 qemu_fdt_setprop_cell(fdt, cp, "tlb-size", cpu->env.nb_tlb); in build_fdt()