Lines Matching refs:nr

50     int nr, max = 2 * env->nb_tlb;  in ppc6xx_tlb_invalidate_all()  local
52 for (nr = 0; nr < max; nr++) { in ppc6xx_tlb_invalidate_all()
53 tlb = &env->tlb.tlb6[nr]; in ppc6xx_tlb_invalidate_all()
66 int way, nr; in ppc6xx_tlb_invalidate_virt2() local
70 nr = ppc6xx_tlb_getnum(env, eaddr, way, is_code); in ppc6xx_tlb_invalidate_virt2()
71 tlb = &env->tlb.tlb6[nr]; in ppc6xx_tlb_invalidate_virt2()
74 TARGET_FMT_lx "\n", nr, env->nb_tlb, eaddr); in ppc6xx_tlb_invalidate_virt2()
95 int nr; in ppc6xx_tlb_store() local
97 nr = ppc6xx_tlb_getnum(env, EPN, way, is_code); in ppc6xx_tlb_store()
98 tlb = &env->tlb.tlb6[nr]; in ppc6xx_tlb_store()
100 TARGET_FMT_lx " PTE1 " TARGET_FMT_lx "\n", nr, env->nb_tlb, in ppc6xx_tlb_store()
174 static inline void dump_store_bat(CPUPPCState *env, char ID, int ul, int nr, in dump_store_bat() argument
178 TARGET_FMT_lx ")\n", ID, nr, ul == 0 ? 'u' : 'l', in dump_store_bat()
182 void helper_store_ibatu(CPUPPCState *env, uint32_t nr, target_ulong value) in helper_store_ibatu() argument
186 dump_store_bat(env, 'I', 0, nr, value); in helper_store_ibatu()
187 if (env->IBAT[0][nr] != value) { in helper_store_ibatu()
190 do_invalidate_BAT(env, env->IBAT[0][nr], mask); in helper_store_ibatu()
197 env->IBAT[0][nr] = (value & 0x00001FFFUL) | in helper_store_ibatu()
199 env->IBAT[1][nr] = (env->IBAT[1][nr] & 0x0000007B) | in helper_store_ibatu()
200 (env->IBAT[1][nr] & ~0x0001FFFF & ~mask); in helper_store_ibatu()
202 do_invalidate_BAT(env, env->IBAT[0][nr], mask); in helper_store_ibatu()
209 void helper_store_ibatl(CPUPPCState *env, uint32_t nr, target_ulong value) in helper_store_ibatl() argument
211 dump_store_bat(env, 'I', 1, nr, value); in helper_store_ibatl()
212 env->IBAT[1][nr] = value; in helper_store_ibatl()
215 void helper_store_dbatu(CPUPPCState *env, uint32_t nr, target_ulong value) in helper_store_dbatu() argument
219 dump_store_bat(env, 'D', 0, nr, value); in helper_store_dbatu()
220 if (env->DBAT[0][nr] != value) { in helper_store_dbatu()
227 do_invalidate_BAT(env, env->DBAT[0][nr], mask); in helper_store_dbatu()
230 env->DBAT[0][nr] = (value & 0x00001FFFUL) | in helper_store_dbatu()
232 env->DBAT[1][nr] = (env->DBAT[1][nr] & 0x0000007B) | in helper_store_dbatu()
233 (env->DBAT[1][nr] & ~0x0001FFFF & ~mask); in helper_store_dbatu()
235 do_invalidate_BAT(env, env->DBAT[0][nr], mask); in helper_store_dbatu()
242 void helper_store_dbatl(CPUPPCState *env, uint32_t nr, target_ulong value) in helper_store_dbatl() argument
244 dump_store_bat(env, 'D', 1, nr, value); in helper_store_dbatl()
245 env->DBAT[1][nr] = value; in helper_store_dbatl()