Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 332262
b: refs/heads/master
c: 625c0a2
h: refs/heads/master
v: v3
  • Loading branch information
Steven J. Hill committed Sep 13, 2012
1 parent be5330e commit 5f19887
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3234f4466934f08136736790e3de3c6debc71271
refs/heads/master: 625c0a21700bdb90844d926a1508a17a77e369c9
14 changes: 13 additions & 1 deletion trunk/arch/mips/mm/tlbex.c
Original file line number Diff line number Diff line change
Expand Up @@ -449,8 +449,20 @@ static void __cpuinit build_tlb_write_entry(u32 **p, struct uasm_label **l,
}

if (cpu_has_mips_r2) {
if (cpu_has_mips_r2_exec_hazard)
/*
* The architecture spec says an ehb is required here,
* but a number of cores do not have the hazard and
* using an ehb causes an expensive pipeline stall.
*/
switch (current_cpu_type()) {
case CPU_M14KC:
case CPU_74K:
break;

default:
uasm_i_ehb(p);
break;
}
tlbw(p);
return;
}
Expand Down

0 comments on commit 5f19887

Please sign in to comment.