From e9b64b3f4ad2767eb6ff0e1ce577c4f224271190 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Tue, 29 Jan 2008 10:14:54 +0000 Subject: [PATCH] --- yaml --- r: 78012 b: refs/heads/master c: 161548bf3529d53398adb3451cdc781cc324fc1d h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/arch/mips/mm/tlbex.c | 14 ++++++-------- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/[refs] b/[refs] index ef7418f5682e..2d308648af8d 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 6920df4025b426cb3c9756944a965fe9ccb30925 +refs/heads/master: 161548bf3529d53398adb3451cdc781cc324fc1d diff --git a/trunk/arch/mips/mm/tlbex.c b/trunk/arch/mips/mm/tlbex.c index a61246d3533d..511107f92d9c 100644 --- a/trunk/arch/mips/mm/tlbex.c +++ b/trunk/arch/mips/mm/tlbex.c @@ -860,6 +860,12 @@ static __init void build_tlb_write_entry(u32 **p, struct label **l, case tlb_indexed: tlbw = i_tlbwi; break; } + if (cpu_has_mips_r2) { + i_ehb(p); + tlbw(p); + return; + } + switch (current_cpu_type()) { case CPU_R4000PC: case CPU_R4000SC: @@ -935,14 +941,6 @@ static __init void build_tlb_write_entry(u32 **p, struct label **l, tlbw(p); break; - case CPU_4KEC: - case CPU_24K: - case CPU_34K: - case CPU_74K: - i_ehb(p); - tlbw(p); - break; - case CPU_RM9000: /* * When the JTLB is updated by tlbwi or tlbwr, a subsequent