1 --- a/arch/mips/kernel/branch.c
2 +++ b/arch/mips/kernel/branch.c
3 @@ -170,7 +170,7 @@ int __compute_return_epc(struct pt_regs
4 bit = (insn.i_format.rt >> 2);
7 - switch (insn.i_format.rt) {
8 + switch (insn.i_format.rt & 3) {
11 if (~fcr31 & (1 << bit))