Searched refs:tlb_ps (Results 1 – 2 of 2) sorted by relevance
/openbmc/qemu/target/loongarch/ |
H A D | cpu_helper.c | 22 uint8_t tlb_ps, n, tlb_v, tlb_d, tlb_plv, tlb_nx, tlb_nr, tlb_rplv; in loongarch_map_tlb_entry() local 25 tlb_ps = FIELD_EX64(tlb->tlb_misc, TLB_MISC, PS); in loongarch_map_tlb_entry() 27 tlb_ps = FIELD_EX64(env->CSR_STLBPS, CSR_STLBPS, PS); in loongarch_map_tlb_entry() 29 n = (address >> tlb_ps) & 0x1;/* Odd or even */ in loongarch_map_tlb_entry() 48 tlb_ppn = tlb_ppn & ~(((0x1UL << (tlb_ps - 12)) -1)); in loongarch_map_tlb_entry() 73 (address & MAKE_64BIT_MASK(0, tlb_ps)); in loongarch_map_tlb_entry() 96 uint8_t tlb_e, tlb_ps, tlb_g, stlb_ps; in loongarch_tlb_search() local 129 tlb_ps = FIELD_EX64(tlb->tlb_misc, TLB_MISC, PS); in loongarch_tlb_search() 132 compare_shift = tlb_ps + 1 - R_TLB_MISC_VPPN_SHIFT; in loongarch_tlb_search() 133 vpn = (vaddr & TARGET_VIRT_MASK) >> (tlb_ps + 1); in loongarch_tlb_search()
|
/openbmc/qemu/target/loongarch/tcg/ |
H A D | tlb_helper.c | 119 uint8_t tlb_ps; in invalidate_tlb_entry() local 128 tlb_ps = FIELD_EX64(tlb->tlb_misc, TLB_MISC, PS); in invalidate_tlb_entry() 130 tlb_ps = FIELD_EX64(env->CSR_STLBPS, CSR_STLBPS, PS); in invalidate_tlb_entry() 132 pagesize = MAKE_64BIT_MASK(tlb_ps, 1); in invalidate_tlb_entry() 133 mask = MAKE_64BIT_MASK(0, tlb_ps + 1); in invalidate_tlb_entry() 240 uint8_t tlb_ps, tlb_e; in helper_tlbrd() local 246 tlb_ps = FIELD_EX64(tlb->tlb_misc, TLB_MISC, PS); in helper_tlbrd() 248 tlb_ps = FIELD_EX64(env->CSR_STLBPS, CSR_STLBPS, PS); in helper_tlbrd() 264 PS, (tlb_ps & 0x3f)); in helper_tlbrd() 429 uint8_t tlb_ps, compare_shift; in helper_invtlb_page_asid() local [all …]
|