Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 161548bf authored by Ralf Baechle's avatar Ralf Baechle
Browse files

[MIPS] tlbex: Cleanup handling of R2 hazards in TLB handlers.

parent 6920df40
Loading
Loading
Loading
Loading
+6 −8
Original line number Original line Diff line number Diff line
@@ -860,6 +860,12 @@ static __init void build_tlb_write_entry(u32 **p, struct label **l,
	case tlb_indexed: tlbw = i_tlbwi; break;
	case tlb_indexed: tlbw = i_tlbwi; break;
	}
	}


	if (cpu_has_mips_r2) {
		i_ehb(p);
		tlbw(p);
		return;
	}

	switch (current_cpu_type()) {
	switch (current_cpu_type()) {
	case CPU_R4000PC:
	case CPU_R4000PC:
	case CPU_R4000SC:
	case CPU_R4000SC:
@@ -935,14 +941,6 @@ static __init void build_tlb_write_entry(u32 **p, struct label **l,
		tlbw(p);
		tlbw(p);
		break;
		break;


	case CPU_4KEC:
	case CPU_24K:
	case CPU_34K:
	case CPU_74K:
		i_ehb(p);
		tlbw(p);
		break;

	case CPU_RM9000:
	case CPU_RM9000:
		/*
		/*
		 * When the JTLB is updated by tlbwi or tlbwr, a subsequent
		 * When the JTLB is updated by tlbwi or tlbwr, a subsequent