aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/mips/kernel/mips-r2-to-r6-emul.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/mips/kernel/mips-r2-to-r6-emul.c b/arch/mips/kernel/mips-r2-to-r6-emul.c
index 64d17e41093b..f1d1b42d1902 100644
--- a/arch/mips/kernel/mips-r2-to-r6-emul.c
+++ b/arch/mips/kernel/mips-r2-to-r6-emul.c
@@ -187,7 +187,7 @@ static inline int mipsr6_emul(struct pt_regs *regs, u32 ir)
187} 187}
188 188
189/** 189/**
190 * movt_func - Emulate a MOVT instruction 190 * movf_func - Emulate a MOVF instruction
191 * @regs: Process register set 191 * @regs: Process register set
192 * @ir: Instruction 192 * @ir: Instruction
193 * 193 *
@@ -200,9 +200,12 @@ static int movf_func(struct pt_regs *regs, u32 ir)
200 200
201 csr = current->thread.fpu.fcr31; 201 csr = current->thread.fpu.fcr31;
202 cond = fpucondbit[MIPSInst_RT(ir) >> 2]; 202 cond = fpucondbit[MIPSInst_RT(ir) >> 2];
203
203 if (((csr & cond) == 0) && MIPSInst_RD(ir)) 204 if (((csr & cond) == 0) && MIPSInst_RD(ir))
204 regs->regs[MIPSInst_RD(ir)] = regs->regs[MIPSInst_RS(ir)]; 205 regs->regs[MIPSInst_RD(ir)] = regs->regs[MIPSInst_RS(ir)];
206
205 MIPS_R2_STATS(movs); 207 MIPS_R2_STATS(movs);
208
206 return 0; 209 return 0;
207} 210}
208 211