Skip to content

Commit d2220e7

Browse files
Maciej W. Rozyckigregkh
authored andcommitted
MIPS: Rename sigill_r6' to sigill_r2r6' in `__compute_return_epc_for_insn'
commit 1f4edde422961397cf4470b347958c13c6a740bb upstream. Use the more accurate `sigill_r2r6' name for the label used in the case of sending SIGILL in the absence of the instruction emulator for an earlier ISA level instruction that has been removed as from the R6 ISA, so that the `sigill_r6' name is freed for the situation where an R6 instruction is not supposed to be interpreted, because the executing processor does not support the R6 ISA. Signed-off-by: Maciej W. Rozycki <macro@imgtec.com> Cc: James Hogan <james.hogan@imgtec.com> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/16397/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent e5bf16f commit d2220e7

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

arch/mips/kernel/branch.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ int __compute_return_epc_for_insn(struct pt_regs *regs,
431431
/* Fall through */
432432
case jr_op:
433433
if (NO_R6EMU && insn.r_format.func == jr_op)
434-
goto sigill_r6;
434+
goto sigill_r2r6;
435435
regs->cp0_epc = regs->regs[insn.r_format.rs];
436436
break;
437437
}
@@ -446,7 +446,7 @@ int __compute_return_epc_for_insn(struct pt_regs *regs,
446446
switch (insn.i_format.rt) {
447447
case bltzl_op:
448448
if (NO_R6EMU)
449-
goto sigill_r6;
449+
goto sigill_r2r6;
450450
case bltz_op:
451451
if ((long)regs->regs[insn.i_format.rs] < 0) {
452452
epc = epc + 4 + (insn.i_format.simmediate << 2);
@@ -459,7 +459,7 @@ int __compute_return_epc_for_insn(struct pt_regs *regs,
459459

460460
case bgezl_op:
461461
if (NO_R6EMU)
462-
goto sigill_r6;
462+
goto sigill_r2r6;
463463
case bgez_op:
464464
if ((long)regs->regs[insn.i_format.rs] >= 0) {
465465
epc = epc + 4 + (insn.i_format.simmediate << 2);
@@ -574,7 +574,7 @@ int __compute_return_epc_for_insn(struct pt_regs *regs,
574574
*/
575575
case beql_op:
576576
if (NO_R6EMU)
577-
goto sigill_r6;
577+
goto sigill_r2r6;
578578
case beq_op:
579579
if (regs->regs[insn.i_format.rs] ==
580580
regs->regs[insn.i_format.rt]) {
@@ -588,7 +588,7 @@ int __compute_return_epc_for_insn(struct pt_regs *regs,
588588

589589
case bnel_op:
590590
if (NO_R6EMU)
591-
goto sigill_r6;
591+
goto sigill_r2r6;
592592
case bne_op:
593593
if (regs->regs[insn.i_format.rs] !=
594594
regs->regs[insn.i_format.rt]) {
@@ -602,7 +602,7 @@ int __compute_return_epc_for_insn(struct pt_regs *regs,
602602

603603
case blezl_op: /* not really i_format */
604604
if (!insn.i_format.rt && NO_R6EMU)
605-
goto sigill_r6;
605+
goto sigill_r2r6;
606606
case blez_op:
607607
/*
608608
* Compact branches for R6 for the
@@ -637,7 +637,7 @@ int __compute_return_epc_for_insn(struct pt_regs *regs,
637637

638638
case bgtzl_op:
639639
if (!insn.i_format.rt && NO_R6EMU)
640-
goto sigill_r6;
640+
goto sigill_r2r6;
641641
case bgtz_op:
642642
/*
643643
* Compact branches for R6 for the
@@ -848,7 +848,7 @@ int __compute_return_epc_for_insn(struct pt_regs *regs,
848848
current->comm);
849849
force_sig(SIGILL, current);
850850
return -EFAULT;
851-
sigill_r6:
851+
sigill_r2r6:
852852
pr_info("%s: R2 branch but r2-to-r6 emulator is not preset - sending SIGILL.\n",
853853
current->comm);
854854
force_sig(SIGILL, current);

0 commit comments

Comments
 (0)