diff options
Diffstat (limited to 'arch/mips/mm/tlbex.c')
-rw-r--r-- | arch/mips/mm/tlbex.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/arch/mips/mm/tlbex.c b/arch/mips/mm/tlbex.c index a61246d3533d..511107f92d9c 100644 --- a/arch/mips/mm/tlbex.c +++ b/arch/mips/mm/tlbex.c | |||
@@ -860,6 +860,12 @@ static __init void build_tlb_write_entry(u32 **p, struct label **l, | |||
860 | case tlb_indexed: tlbw = i_tlbwi; break; | 860 | case tlb_indexed: tlbw = i_tlbwi; break; |
861 | } | 861 | } |
862 | 862 | ||
863 | if (cpu_has_mips_r2) { | ||
864 | i_ehb(p); | ||
865 | tlbw(p); | ||
866 | return; | ||
867 | } | ||
868 | |||
863 | switch (current_cpu_type()) { | 869 | switch (current_cpu_type()) { |
864 | case CPU_R4000PC: | 870 | case CPU_R4000PC: |
865 | case CPU_R4000SC: | 871 | case CPU_R4000SC: |
@@ -935,14 +941,6 @@ static __init void build_tlb_write_entry(u32 **p, struct label **l, | |||
935 | tlbw(p); | 941 | tlbw(p); |
936 | break; | 942 | break; |
937 | 943 | ||
938 | case CPU_4KEC: | ||
939 | case CPU_24K: | ||
940 | case CPU_34K: | ||
941 | case CPU_74K: | ||
942 | i_ehb(p); | ||
943 | tlbw(p); | ||
944 | break; | ||
945 | |||
946 | case CPU_RM9000: | 944 | case CPU_RM9000: |
947 | /* | 945 | /* |
948 | * When the JTLB is updated by tlbwi or tlbwr, a subsequent | 946 | * When the JTLB is updated by tlbwi or tlbwr, a subsequent |