MIPS: Reindent R6 RI exception emulation
Fold a nested `if' statement for the R6 case in `do_ri' into its containing `if' block, removing excessive indentation causing code to extend beyond 79 columns. Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org> Cc: Leonid Yegoshin <Leonid.Yegoshin@imgtec.com> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/9679/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
committed by
Ralf Baechle
parent
fad0bfdb89
commit
4a7c237182
@@ -1033,22 +1033,21 @@ asmlinkage void do_ri(struct pt_regs *regs)
|
|||||||
* as quickly as possible.
|
* as quickly as possible.
|
||||||
*/
|
*/
|
||||||
if (mipsr2_emulation && cpu_has_mips_r6 &&
|
if (mipsr2_emulation && cpu_has_mips_r6 &&
|
||||||
likely(user_mode(regs))) {
|
likely(user_mode(regs)) &&
|
||||||
if (likely(get_user(opcode, epc) >= 0)) {
|
likely(get_user(opcode, epc) >= 0)) {
|
||||||
status = mipsr2_decoder(regs, opcode);
|
status = mipsr2_decoder(regs, opcode);
|
||||||
switch (status) {
|
switch (status) {
|
||||||
case 0:
|
case 0:
|
||||||
case SIGEMT:
|
case SIGEMT:
|
||||||
task_thread_info(current)->r2_emul_return = 1;
|
task_thread_info(current)->r2_emul_return = 1;
|
||||||
return;
|
return;
|
||||||
case SIGILL:
|
case SIGILL:
|
||||||
goto no_r2_instr;
|
goto no_r2_instr;
|
||||||
default:
|
default:
|
||||||
process_fpemu_return(status,
|
process_fpemu_return(status,
|
||||||
¤t->thread.cp0_baduaddr);
|
¤t->thread.cp0_baduaddr);
|
||||||
task_thread_info(current)->r2_emul_return = 1;
|
task_thread_info(current)->r2_emul_return = 1;
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user