MIPS: tlbex: Fix a missing statement for HUGETLB
authorHuacai Chen <[email protected]>
Tue, 29 Jul 2014 06:54:40 +0000 (14:54 +0800)
committerRalf Baechle <[email protected]>
Wed, 30 Jul 2014 12:34:25 +0000 (14:34 +0200)
In commit 2c8c53e28f1 (MIPS: Optimize TLB handlers for Octeon CPUs)
build_r4000_tlb_refill_handler() is modified. But it doesn't compatible
with the original code in HUGETLB case. Because there is a copy & paste
error and one line of code is missing. It is very easy to produce a bug
with LTP's hugemmap05 test.

Signed-off-by: Huacai Chen <[email protected]>
Signed-off-by: Binbin Zhou <[email protected]>
Cc: <[email protected]>
Cc: John Crispin <[email protected]>
Cc: Steven J. Hill <[email protected]>
Cc: [email protected]
Cc: Fuxin Zhang <[email protected]>
Cc: Zhangjin Wu <[email protected]>
Patchwork: https://patchwork.linux-mips.org/patch/7496/
Signed-off-by: Ralf Baechle <[email protected]>
arch/mips/mm/tlbex.c

index e80e10bafc8359dd48a0d0cc342cdaee43de8881..343fe0f559b1b246520863b02aaa0e6188df1e91 100644 (file)
@@ -1299,6 +1299,7 @@ static void build_r4000_tlb_refill_handler(void)
        }
 #ifdef CONFIG_MIPS_HUGE_TLB_SUPPORT
        uasm_l_tlb_huge_update(&l, p);
+       UASM_i_LW(&p, K0, 0, K1);
        build_huge_update_entries(&p, htlb_info.huge_pte, K1);
        build_huge_tlb_write_entry(&p, &l, &r, K0, tlb_random,
                                   htlb_info.restore_scratch);