From: Leonid Yegoshin <Leonid.Yegoshin@xxxxxxxxxx> The EHB instruction is supported by MIPS R6 so add the relevant option. Signed-off-by: Leonid Yegoshin <Leonid.Yegoshin@xxxxxxxxxx> Signed-off-by: Markos Chandras <markos.chandras@xxxxxxxxxx> --- arch/mips/mm/tlbex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/mm/tlbex.c b/arch/mips/mm/tlbex.c index 14e5fae71a06..8a8a86a8942f 100644 --- a/arch/mips/mm/tlbex.c +++ b/arch/mips/mm/tlbex.c @@ -501,7 +501,7 @@ static void build_tlb_write_entry(u32 **p, struct uasm_label **l, case tlb_indexed: tlbw = uasm_i_tlbwi; break; } - if (cpu_has_mips_r2) { + if (cpu_has_mips_r2 || cpu_has_mips_r6) { /* * The architecture spec says an ehb is required here, * but a number of cores do not have the hazard and -- 2.2.0