/* R3000 style TLB load/store/modify handlers. This places the pte into ENTRYLO0 and writes it with tlbwi. Then it returns.  */
static void __cpuinit build_r3000_pte_reload_tlbwi(u32 **p, unsigned int pte, unsigned int tmp)
/* R3000 style TLB load/store/modify handlers. This places the pte into ENTRYLO0 and writes it with tlbwi. Then it returns.  */
static void __cpuinit build_r3000_pte_reload_tlbwi(u32 **p, unsigned int pte, unsigned int tmp)
{
	uasm_i_mtc0(p, pte, C0_ENTRYLO0);
	uasm_i_mfc0(p, tmp, C0_EPC);
	uasm_i_tlbwi(p);
	uasm_i_jr(p, tmp);
	uasm_i_rfe(p);
}