aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2015-03-25 08:18:27 -0400
committerRalf Baechle <ralf@linux-mips.org>2015-04-10 09:41:49 -0400
commit9eaffa84a8a46adab065c983401fc9d5949c958f (patch)
treee61ad607c8fee9f700f3f01b0cef26e0bbc09016
parentf05ff43355e6997c18f82ddcee370a6e5f8643ce (diff)
Revert "MIPS: Avoid pipeline stalls on some MIPS32R2 cores."
For a discussion, see http://patchwork.linux-mips.org/patch/9539/. This reverts commit 625c0a21700bdb90844d926a1508a17a77e369c9.
-rw-r--r--arch/mips/mm/tlbex.c21
1 files changed, 2 insertions, 19 deletions
diff --git a/arch/mips/mm/tlbex.c b/arch/mips/mm/tlbex.c
index 7709920e0cef..971b1ee51234 100644
--- a/arch/mips/mm/tlbex.c
+++ b/arch/mips/mm/tlbex.c
@@ -512,26 +512,9 @@ static void build_tlb_write_entry(u32 **p, struct uasm_label **l,
512 case tlb_indexed: tlbw = uasm_i_tlbwi; break; 512 case tlb_indexed: tlbw = uasm_i_tlbwi; break;
513 } 513 }
514 514
515 if (cpu_has_mips_r2_exec_hazard) { 515 if (cpu_has_mips_r2_r6) {
516 /* 516 if (cpu_has_mips_r2_exec_hazard)
517 * The architecture spec says an ehb is required here,
518 * but a number of cores do not have the hazard and
519 * using an ehb causes an expensive pipeline stall.
520 */
521 switch (current_cpu_type()) {
522 case CPU_M14KC:
523 case CPU_74K:
524 case CPU_1074K:
525 case CPU_PROAPTIV:
526 case CPU_P5600:
527 case CPU_M5150:
528 case CPU_QEMU_GENERIC:
529 break;
530
531 default:
532 uasm_i_ehb(p); 517 uasm_i_ehb(p);
533 break;
534 }
535 tlbw(p); 518 tlbw(p);
536 return; 519 return;
537 } 520 }