diff options
author | Maciej W. Rozycki <macro@linux-mips.org> | 2015-04-03 18:24:29 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2015-04-07 19:08:54 -0400 |
commit | 241e9c465f5ff424b1b6de0d8100962a9bddc3f3 (patch) | |
tree | 1c8eea7a64eebd8c6e62fc1844f59d41faf9db47 /arch | |
parent | 5d77cf2895edea277878a526b4c47abfdbf6ffd2 (diff) |
MIPS: Correct the comment for and reformat `movf_func'
Correct a copy-and-paste issue with the description for `movf_func'
referring to `movt_func'. Reformat the former function to match the
latter.
Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/9675/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/mips/kernel/mips-r2-to-r6-emul.c | 5 |
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 | ||