Lines Matching +full:0 +full:x0001ffff

51     for (nr = 0; nr < max; nr++) {  in ppc6xx_tlb_invalidate_all()
68 for (way = 0; way < env->nb_ways; way++) { in ppc6xx_tlb_invalidate_virt2()
71 if (pte_is_valid(tlb->pte0) && (match_epn == 0 || eaddr == tlb->EPN)) { in ppc6xx_tlb_invalidate_virt2()
87 ppc6xx_tlb_invalidate_virt2(env, eaddr, is_code, 0); in ppc6xx_tlb_invalidate_virt()
116 for (i = 0; i < env->nb_tlb; i++) { in ppc4xx_tlb_invalidate_all()
130 for (i = 0; i < BOOKE206_MAX_TLBN; i++) { in booke206_flush_tlb()
133 for (j = 0; j < tlb_size; j++) { in booke206_flush_tlb()
154 base = BATu & ~0x0001FFFF; in do_invalidate_BAT()
155 end = base + mask + 0x00020000; in do_invalidate_BAT()
177 TARGET_FMT_lx ")\n", ID, nr, ul == 0 ? 'u' : 'l', in dump_store_bat()
185 dump_store_bat(env, 'I', 0, nr, value); in helper_store_ibatu()
186 if (env->IBAT[0][nr] != value) { in helper_store_ibatu()
187 mask = (value << 15) & 0x0FFE0000UL; in helper_store_ibatu()
189 do_invalidate_BAT(env, env->IBAT[0][nr], mask); in helper_store_ibatu()
195 mask = (value << 15) & 0x0FFE0000UL; in helper_store_ibatu()
196 env->IBAT[0][nr] = (value & 0x00001FFFUL) | in helper_store_ibatu()
197 (value & ~0x0001FFFFUL & ~mask); in helper_store_ibatu()
198 env->IBAT[1][nr] = (env->IBAT[1][nr] & 0x0000007B) | in helper_store_ibatu()
199 (env->IBAT[1][nr] & ~0x0001FFFF & ~mask); in helper_store_ibatu()
201 do_invalidate_BAT(env, env->IBAT[0][nr], mask); in helper_store_ibatu()
218 dump_store_bat(env, 'D', 0, nr, value); in helper_store_dbatu()
219 if (env->DBAT[0][nr] != value) { in helper_store_dbatu()
224 mask = (value << 15) & 0x0FFE0000UL; in helper_store_dbatu()
226 do_invalidate_BAT(env, env->DBAT[0][nr], mask); in helper_store_dbatu()
228 mask = (value << 15) & 0x0FFE0000UL; in helper_store_dbatu()
229 env->DBAT[0][nr] = (value & 0x00001FFFUL) | in helper_store_dbatu()
230 (value & ~0x0001FFFFUL & ~mask); in helper_store_dbatu()
231 env->DBAT[1][nr] = (env->DBAT[1][nr] & 0x0000007B) | in helper_store_dbatu()
232 (env->DBAT[1][nr] & ~0x0001FFFF & ~mask); in helper_store_dbatu()
234 do_invalidate_BAT(env, env->DBAT[0][nr], mask); in helper_store_dbatu()
253 env->tlb_need_flush = 0; in ppc_tlb_invalidate_all()
275 booke206_flush_tlb(env, -1, 0); in ppc_tlb_invalidate_all()
278 env->tlb_need_flush = 0; in ppc_tlb_invalidate_all()
305 ppc6xx_tlb_invalidate_virt(env, addr, 0); in ppc_tlb_invalidate_one()
335 return 0; in helper_load_sr()
352 esid = ((uint64_t)(srnum & 0xf) << 28) | SLB_ESID_V; in helper_store_sr()
355 vsid = (value & 0xfffffff) << 12; in helper_store_sr()
357 vsid |= ((value >> 27) & 0xf) << 8; in helper_store_sr()
368 #if !defined(FLUSH_ALL_TLBS) && 0 in helper_store_sr()
398 #define TLBIE_IS_VA 0
404 #define TLBIE_RIC_TLB 0
410 #define TLBIE_R_AP_4K 0
416 #define TLBIE_RB_EPN_MASK PPC_BITMASK(0, 51)
463 if (set != 0) { in helper_tlbie_isa300()
482 * quadrant 0 for Radix Tree translation (effR=1, RIC=0, PRS=1, IS=0, in helper_tlbie_isa300()
483 * and EA 0:1 != 0b00) are boundedly undefined. in helper_tlbie_isa300()
488 "%s: attempt to invalidate a translation outside of quadrant 0\n", in helper_tlbie_isa300()
499 pgoffs_mask = 0xfffull; in helper_tlbie_isa300()
503 pgoffs_mask = 0xffffull; in helper_tlbie_isa300()
507 pgoffs_mask = 0x1fffffull; in helper_tlbie_isa300()
511 pgoffs_mask = 0x3fffffffull; in helper_tlbie_isa300()
516 * If the value specified in RS 0:31, RS 32:63, RB 54:55, RB 56:58, in helper_tlbie_isa300()
584 do_6xx_tlb(env, EPN, 0); in helper_6xx_tlbd()
602 case 0x00000400UL: in booke_page_size_to_tlb()
603 size = 0x0; in booke_page_size_to_tlb()
605 case 0x00001000UL: in booke_page_size_to_tlb()
606 size = 0x1; in booke_page_size_to_tlb()
608 case 0x00004000UL: in booke_page_size_to_tlb()
609 size = 0x2; in booke_page_size_to_tlb()
611 case 0x00010000UL: in booke_page_size_to_tlb()
612 size = 0x3; in booke_page_size_to_tlb()
614 case 0x00040000UL: in booke_page_size_to_tlb()
615 size = 0x4; in booke_page_size_to_tlb()
617 case 0x00100000UL: in booke_page_size_to_tlb()
618 size = 0x5; in booke_page_size_to_tlb()
620 case 0x00400000UL: in booke_page_size_to_tlb()
621 size = 0x6; in booke_page_size_to_tlb()
623 case 0x01000000UL: in booke_page_size_to_tlb()
624 size = 0x7; in booke_page_size_to_tlb()
626 case 0x04000000UL: in booke_page_size_to_tlb()
627 size = 0x8; in booke_page_size_to_tlb()
629 case 0x10000000UL: in booke_page_size_to_tlb()
630 size = 0x9; in booke_page_size_to_tlb()
632 case 0x40000000UL: in booke_page_size_to_tlb()
633 size = 0xA; in booke_page_size_to_tlb()
636 case 0x000100000000ULL: in booke_page_size_to_tlb()
637 size = 0xB; in booke_page_size_to_tlb()
639 case 0x000400000000ULL: in booke_page_size_to_tlb()
640 size = 0xC; in booke_page_size_to_tlb()
642 case 0x001000000000ULL: in booke_page_size_to_tlb()
643 size = 0xD; in booke_page_size_to_tlb()
645 case 0x004000000000ULL: in booke_page_size_to_tlb()
646 size = 0xE; in booke_page_size_to_tlb()
648 case 0x010000000000ULL: in booke_page_size_to_tlb()
649 size = 0xF; in booke_page_size_to_tlb()
661 #define PPC4XX_TLB_ENTRY_MASK 0x0000003f /* Mask for 64 TLB entries */
663 #define PPC4XX_TLBHI_V 0x00000040
664 #define PPC4XX_TLBHI_E 0x00000020
665 #define PPC4XX_TLBHI_SIZE_MIN 0
669 #define PPC4XX_TLBHI_SIZE_MASK 0x00000007
671 #define PPC4XX_TLBLO_EX 0x00000200
672 #define PPC4XX_TLBLO_WR 0x00000100
673 #define PPC4XX_TLBLO_ATTR_MASK 0x000000FF
674 #define PPC4XX_TLBLO_RPN_MASK 0xFFFFFC00
724 unsigned mmu_idx = 0; in ppcemb_tlb_flush()
726 if (tlb->prot & 0xf) { in ppcemb_tlb_flush()
727 mmu_idx |= 0x1; in ppcemb_tlb_flush()
729 if ((tlb->prot >> 4) & 0xf) { in ppcemb_tlb_flush()
730 mmu_idx |= 0x2; in ppcemb_tlb_flush()
768 tlb->size, TARGET_PAGE_SIZE, (int)((val >> 7) & 0x7)); in helper_4xx_tlbwe_hi()
860 entry &= 0x3F; in helper_440_tlbwe()
874 case 0: in helper_440_tlbwe()
875 tlb->EPN = value & 0xFFFFFC00; in helper_440_tlbwe()
876 tlb->size = booke_tlb_to_page_size((value >> 4) & 0xF); in helper_440_tlbwe()
877 tlb->attr &= ~0x1; in helper_440_tlbwe()
879 if (value & 0x200) { in helper_440_tlbwe()
884 tlb->PID = env->spr[SPR_440_MMUCR] & 0x000000FF; in helper_440_tlbwe()
887 tlb->RPN = value & 0xFFFFFC0F; in helper_440_tlbwe()
890 tlb->attr = (tlb->attr & 0x1) | (value & 0x0000FF00); in helper_440_tlbwe()
892 if (value & 0x1) { in helper_440_tlbwe()
895 if (value & 0x2) { in helper_440_tlbwe()
898 if (value & 0x4) { in helper_440_tlbwe()
901 if (value & 0x8) { in helper_440_tlbwe()
904 if (value & 0x10) { in helper_440_tlbwe()
907 if (value & 0x20) { in helper_440_tlbwe()
921 entry &= 0x3F; in helper_440_tlbre()
926 case 0: in helper_440_tlbre()
929 if (size < 0 || size > 0xF) { in helper_440_tlbre()
933 if (tlb->attr & 0x1) { in helper_440_tlbre()
934 ret |= 0x100; in helper_440_tlbre()
937 ret |= 0x200; in helper_440_tlbre()
939 env->spr[SPR_440_MMUCR] &= ~0x000000FF; in helper_440_tlbre()
946 ret = tlb->attr & ~0x1; in helper_440_tlbre()
948 ret |= 0x1; in helper_440_tlbre()
951 ret |= 0x2; in helper_440_tlbre()
954 ret |= 0x4; in helper_440_tlbre()
957 ret |= 0x8; in helper_440_tlbre()
960 ret |= 0x10; in helper_440_tlbre()
963 ret |= 0x20; in helper_440_tlbre()
972 return ppcemb_tlb_search(env, address, env->spr[SPR_440_MMUCR] & 0xFF); in helper_440_tlbsx()
979 uint32_t tlbncfg = 0; in booke206_cur_tlb()
1035 if (0) { in helper_booke206_tlbwe()
1119 * 0:31 of the TLB EPN field to zero. in helper_booke206_tlbwe()
1121 mask &= 0xffffffff; in helper_booke206_tlbwe()
1155 env->spr[SPR_BOOKE_MAS1] = 0; in helper_booke206_tlbre()
1171 for (i = 0; i < BOOKE206_MAX_TLBN; i++) { in helper_booke206_tlbsx()
1174 for (j = 0; j < ways; j++) { in helper_booke206_tlbsx()
1198 env->spr[SPR_BOOKE_MAS3] = 0; in helper_booke206_tlbsx()
1199 env->spr[SPR_BOOKE_MAS7] = 0; in helper_booke206_tlbsx()
1211 env->last_way &= booke206_tlb_ways(env, 0) - 1; in helper_booke206_tlbsx()
1222 for (i = 0; i < ways; i++) { in booke206_invalidate_ea_tlb()
1239 if (address & 0x4) { in helper_booke206_tlbivax()
1241 if (address & 0x8) { in helper_booke206_tlbivax()
1246 booke206_flush_tlb(env, BOOKE206_FLUSH_TLB0, 0); in helper_booke206_tlbivax()
1251 if (address & 0x8) { in helper_booke206_tlbivax()
1259 booke206_invalidate_ea_tlb(env, 0, address); in helper_booke206_tlbivax()
1280 for (i = 0; i < BOOKE206_MAX_TLBN; i++) { in helper_booke206_tlbilx1()
1282 for (j = 0; j < tlb_size; j++) { in helper_booke206_tlbilx1()
1300 int ind = (env->spr[SPR_BOOKE_MAS6] & MAS6_SIND) ? MAS1_IND : 0; in helper_booke206_tlbilx3()
1308 for (i = 0; i < BOOKE206_MAX_TLBN; i++) { in helper_booke206_tlbilx3()
1311 for (j = 0; j < ways; j++) { in helper_booke206_tlbilx3()
1316 if ((ppcmas_tlb_check(env, tlb, NULL, address, pid) != 0) || in helper_booke206_tlbilx3()
1335 int flags = 0; in helper_booke206_tlbflush()