MIPS: Use fallthrough for arch/mips
Convert the various /* fallthrough */ comments to the pseudo-keyword fallthrough; Done via script: https://lore.kernel.org/lkml/b56602fcf79f849e733e7b521bb0e17895d390fa.1582230379.git.joe@perches.com/ Signed-off-by: Liangliang Huang <huangll@lemote.com> Reviewed-by: Huacai Chen <chenhc@lemote.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
此提交包含在:
@@ -439,7 +439,7 @@ int isBranchInstr(struct pt_regs *regs, struct mm_decoded_insn dec_insn,
|
||||
regs->cp0_epc + dec_insn.pc_inc +
|
||||
dec_insn.next_pc_inc;
|
||||
}
|
||||
/* fall through */
|
||||
fallthrough;
|
||||
case jr_op:
|
||||
/* For R6, JR already emulated in jalr_op */
|
||||
if (NO_R6EMU && insn.r_format.func == jr_op)
|
||||
@@ -459,11 +459,11 @@ int isBranchInstr(struct pt_regs *regs, struct mm_decoded_insn dec_insn,
|
||||
regs->regs[31] = regs->cp0_epc +
|
||||
dec_insn.pc_inc +
|
||||
dec_insn.next_pc_inc;
|
||||
/* fall through */
|
||||
fallthrough;
|
||||
case bltzl_op:
|
||||
if (NO_R6EMU)
|
||||
break;
|
||||
/* fall through */
|
||||
fallthrough;
|
||||
case bltz_op:
|
||||
if ((long)regs->regs[insn.i_format.rs] < 0)
|
||||
*contpc = regs->cp0_epc +
|
||||
@@ -483,11 +483,11 @@ int isBranchInstr(struct pt_regs *regs, struct mm_decoded_insn dec_insn,
|
||||
regs->regs[31] = regs->cp0_epc +
|
||||
dec_insn.pc_inc +
|
||||
dec_insn.next_pc_inc;
|
||||
/* fall through */
|
||||
fallthrough;
|
||||
case bgezl_op:
|
||||
if (NO_R6EMU)
|
||||
break;
|
||||
/* fall through */
|
||||
fallthrough;
|
||||
case bgez_op:
|
||||
if ((long)regs->regs[insn.i_format.rs] >= 0)
|
||||
*contpc = regs->cp0_epc +
|
||||
@@ -502,12 +502,12 @@ int isBranchInstr(struct pt_regs *regs, struct mm_decoded_insn dec_insn,
|
||||
break;
|
||||
case jalx_op:
|
||||
set_isa16_mode(bit);
|
||||
/* fall through */
|
||||
fallthrough;
|
||||
case jal_op:
|
||||
regs->regs[31] = regs->cp0_epc +
|
||||
dec_insn.pc_inc +
|
||||
dec_insn.next_pc_inc;
|
||||
/* fall through */
|
||||
fallthrough;
|
||||
case j_op:
|
||||
*contpc = regs->cp0_epc + dec_insn.pc_inc;
|
||||
*contpc >>= 28;
|
||||
@@ -519,7 +519,7 @@ int isBranchInstr(struct pt_regs *regs, struct mm_decoded_insn dec_insn,
|
||||
case beql_op:
|
||||
if (NO_R6EMU)
|
||||
break;
|
||||
/* fall through */
|
||||
fallthrough;
|
||||
case beq_op:
|
||||
if (regs->regs[insn.i_format.rs] ==
|
||||
regs->regs[insn.i_format.rt])
|
||||
@@ -534,7 +534,7 @@ int isBranchInstr(struct pt_regs *regs, struct mm_decoded_insn dec_insn,
|
||||
case bnel_op:
|
||||
if (NO_R6EMU)
|
||||
break;
|
||||
/* fall through */
|
||||
fallthrough;
|
||||
case bne_op:
|
||||
if (regs->regs[insn.i_format.rs] !=
|
||||
regs->regs[insn.i_format.rt])
|
||||
@@ -549,7 +549,7 @@ int isBranchInstr(struct pt_regs *regs, struct mm_decoded_insn dec_insn,
|
||||
case blezl_op:
|
||||
if (!insn.i_format.rt && NO_R6EMU)
|
||||
break;
|
||||
/* fall through */
|
||||
fallthrough;
|
||||
case blez_op:
|
||||
|
||||
/*
|
||||
@@ -587,7 +587,7 @@ int isBranchInstr(struct pt_regs *regs, struct mm_decoded_insn dec_insn,
|
||||
case bgtzl_op:
|
||||
if (!insn.i_format.rt && NO_R6EMU)
|
||||
break;
|
||||
/* fall through */
|
||||
fallthrough;
|
||||
case bgtz_op:
|
||||
/*
|
||||
* Compact branches for R6 for the
|
||||
@@ -725,7 +725,7 @@ int isBranchInstr(struct pt_regs *regs, struct mm_decoded_insn dec_insn,
|
||||
return 1;
|
||||
}
|
||||
/* R2/R6 compatible cop1 instruction */
|
||||
/* fall through */
|
||||
fallthrough;
|
||||
case cop2_op:
|
||||
case cop1x_op:
|
||||
if (insn.i_format.rs == bc_op) {
|
||||
@@ -1217,14 +1217,14 @@ emul:
|
||||
case bcfl_op:
|
||||
if (cpu_has_mips_2_3_4_5_r)
|
||||
likely = 1;
|
||||
/* fall through */
|
||||
fallthrough;
|
||||
case bcf_op:
|
||||
cond = !cond;
|
||||
break;
|
||||
case bctl_op:
|
||||
if (cpu_has_mips_2_3_4_5_r)
|
||||
likely = 1;
|
||||
/* fall through */
|
||||
fallthrough;
|
||||
case bct_op:
|
||||
break;
|
||||
}
|
||||
|
@@ -92,8 +92,7 @@ union ieee754dp ieee754dp_add(union ieee754dp x, union ieee754dp y)
|
||||
|
||||
case CLPAIR(IEEE754_CLASS_DNORM, IEEE754_CLASS_DNORM):
|
||||
DPDNORMX;
|
||||
/* fall through */
|
||||
|
||||
fallthrough;
|
||||
case CLPAIR(IEEE754_CLASS_NORM, IEEE754_CLASS_DNORM):
|
||||
DPDNORMY;
|
||||
break;
|
||||
|
@@ -91,8 +91,7 @@ union ieee754dp ieee754dp_div(union ieee754dp x, union ieee754dp y)
|
||||
|
||||
case CLPAIR(IEEE754_CLASS_DNORM, IEEE754_CLASS_DNORM):
|
||||
DPDNORMX;
|
||||
/* fall through */
|
||||
|
||||
fallthrough;
|
||||
case CLPAIR(IEEE754_CLASS_NORM, IEEE754_CLASS_DNORM):
|
||||
DPDNORMY;
|
||||
break;
|
||||
|
@@ -93,8 +93,7 @@ union ieee754dp ieee754dp_fmax(union ieee754dp x, union ieee754dp y)
|
||||
|
||||
case CLPAIR(IEEE754_CLASS_DNORM, IEEE754_CLASS_DNORM):
|
||||
DPDNORMX;
|
||||
/* fall through */
|
||||
|
||||
fallthrough;
|
||||
case CLPAIR(IEEE754_CLASS_NORM, IEEE754_CLASS_DNORM):
|
||||
DPDNORMY;
|
||||
break;
|
||||
@@ -222,8 +221,7 @@ union ieee754dp ieee754dp_fmaxa(union ieee754dp x, union ieee754dp y)
|
||||
|
||||
case CLPAIR(IEEE754_CLASS_DNORM, IEEE754_CLASS_DNORM):
|
||||
DPDNORMX;
|
||||
/* fall through */
|
||||
|
||||
fallthrough;
|
||||
case CLPAIR(IEEE754_CLASS_NORM, IEEE754_CLASS_DNORM):
|
||||
DPDNORMY;
|
||||
break;
|
||||
|
@@ -93,8 +93,7 @@ union ieee754dp ieee754dp_fmin(union ieee754dp x, union ieee754dp y)
|
||||
|
||||
case CLPAIR(IEEE754_CLASS_DNORM, IEEE754_CLASS_DNORM):
|
||||
DPDNORMX;
|
||||
/* fall through */
|
||||
|
||||
fallthrough;
|
||||
case CLPAIR(IEEE754_CLASS_NORM, IEEE754_CLASS_DNORM):
|
||||
DPDNORMY;
|
||||
break;
|
||||
@@ -222,8 +221,7 @@ union ieee754dp ieee754dp_fmina(union ieee754dp x, union ieee754dp y)
|
||||
|
||||
case CLPAIR(IEEE754_CLASS_DNORM, IEEE754_CLASS_DNORM):
|
||||
DPDNORMX;
|
||||
/* fall through */
|
||||
|
||||
fallthrough;
|
||||
case CLPAIR(IEEE754_CLASS_NORM, IEEE754_CLASS_DNORM):
|
||||
DPDNORMY;
|
||||
break;
|
||||
|
@@ -150,8 +150,7 @@ static union ieee754dp _dp_maddf(union ieee754dp z, union ieee754dp x,
|
||||
|
||||
case CLPAIR(IEEE754_CLASS_DNORM, IEEE754_CLASS_DNORM):
|
||||
DPDNORMX;
|
||||
/* fall through */
|
||||
|
||||
fallthrough;
|
||||
case CLPAIR(IEEE754_CLASS_NORM, IEEE754_CLASS_DNORM):
|
||||
if (zc == IEEE754_CLASS_INF)
|
||||
return ieee754dp_inf(zs);
|
||||
|
@@ -89,8 +89,7 @@ union ieee754dp ieee754dp_mul(union ieee754dp x, union ieee754dp y)
|
||||
|
||||
case CLPAIR(IEEE754_CLASS_DNORM, IEEE754_CLASS_DNORM):
|
||||
DPDNORMX;
|
||||
/* fall through */
|
||||
|
||||
fallthrough;
|
||||
case CLPAIR(IEEE754_CLASS_NORM, IEEE754_CLASS_DNORM):
|
||||
DPDNORMY;
|
||||
break;
|
||||
|
@@ -52,8 +52,7 @@ union ieee754dp ieee754dp_sqrt(union ieee754dp x)
|
||||
|
||||
case IEEE754_CLASS_DNORM:
|
||||
DPDNORMX;
|
||||
/* fall through */
|
||||
|
||||
fallthrough;
|
||||
case IEEE754_CLASS_NORM:
|
||||
if (xs) {
|
||||
/* sqrt(-x) = Nan */
|
||||
@@ -130,7 +129,7 @@ union ieee754dp ieee754dp_sqrt(union ieee754dp x)
|
||||
switch (oldcsr.rm) {
|
||||
case FPU_CSR_RU:
|
||||
y.bits += 1;
|
||||
/* fall through */
|
||||
fallthrough;
|
||||
case FPU_CSR_RN:
|
||||
t.bits += 1;
|
||||
break;
|
||||
|
@@ -94,8 +94,7 @@ union ieee754dp ieee754dp_sub(union ieee754dp x, union ieee754dp y)
|
||||
|
||||
case CLPAIR(IEEE754_CLASS_DNORM, IEEE754_CLASS_DNORM):
|
||||
DPDNORMX;
|
||||
/* fall through */
|
||||
|
||||
fallthrough;
|
||||
case CLPAIR(IEEE754_CLASS_NORM, IEEE754_CLASS_DNORM):
|
||||
/* normalize ym,ye */
|
||||
DPDNORMY;
|
||||
|
@@ -92,8 +92,7 @@ union ieee754sp ieee754sp_add(union ieee754sp x, union ieee754sp y)
|
||||
|
||||
case CLPAIR(IEEE754_CLASS_DNORM, IEEE754_CLASS_DNORM):
|
||||
SPDNORMX;
|
||||
/* fall through */
|
||||
|
||||
fallthrough;
|
||||
case CLPAIR(IEEE754_CLASS_NORM, IEEE754_CLASS_DNORM):
|
||||
SPDNORMY;
|
||||
break;
|
||||
|
@@ -91,8 +91,7 @@ union ieee754sp ieee754sp_div(union ieee754sp x, union ieee754sp y)
|
||||
|
||||
case CLPAIR(IEEE754_CLASS_DNORM, IEEE754_CLASS_DNORM):
|
||||
SPDNORMX;
|
||||
/* fall through */
|
||||
|
||||
fallthrough;
|
||||
case CLPAIR(IEEE754_CLASS_NORM, IEEE754_CLASS_DNORM):
|
||||
SPDNORMY;
|
||||
break;
|
||||
|
@@ -34,8 +34,7 @@ union ieee754sp ieee754sp_fdp(union ieee754dp x)
|
||||
case IEEE754_CLASS_SNAN:
|
||||
x = ieee754dp_nanxcpt(x);
|
||||
EXPLODEXDP;
|
||||
/* fall through */
|
||||
|
||||
fallthrough;
|
||||
case IEEE754_CLASS_QNAN:
|
||||
y = ieee754sp_nan_fdp(xs, xm);
|
||||
if (!ieee754_csr.nan2008) {
|
||||
|
@@ -93,8 +93,7 @@ union ieee754sp ieee754sp_fmax(union ieee754sp x, union ieee754sp y)
|
||||
|
||||
case CLPAIR(IEEE754_CLASS_DNORM, IEEE754_CLASS_DNORM):
|
||||
SPDNORMX;
|
||||
/* fall through */
|
||||
|
||||
fallthrough;
|
||||
case CLPAIR(IEEE754_CLASS_NORM, IEEE754_CLASS_DNORM):
|
||||
SPDNORMY;
|
||||
break;
|
||||
@@ -222,8 +221,7 @@ union ieee754sp ieee754sp_fmaxa(union ieee754sp x, union ieee754sp y)
|
||||
|
||||
case CLPAIR(IEEE754_CLASS_DNORM, IEEE754_CLASS_DNORM):
|
||||
SPDNORMX;
|
||||
/* fall through */
|
||||
|
||||
fallthrough;
|
||||
case CLPAIR(IEEE754_CLASS_NORM, IEEE754_CLASS_DNORM):
|
||||
SPDNORMY;
|
||||
break;
|
||||
|
@@ -93,8 +93,7 @@ union ieee754sp ieee754sp_fmin(union ieee754sp x, union ieee754sp y)
|
||||
|
||||
case CLPAIR(IEEE754_CLASS_DNORM, IEEE754_CLASS_DNORM):
|
||||
SPDNORMX;
|
||||
/* fall through */
|
||||
|
||||
fallthrough;
|
||||
case CLPAIR(IEEE754_CLASS_NORM, IEEE754_CLASS_DNORM):
|
||||
SPDNORMY;
|
||||
break;
|
||||
@@ -222,8 +221,7 @@ union ieee754sp ieee754sp_fmina(union ieee754sp x, union ieee754sp y)
|
||||
|
||||
case CLPAIR(IEEE754_CLASS_DNORM, IEEE754_CLASS_DNORM):
|
||||
SPDNORMX;
|
||||
/* fall through */
|
||||
|
||||
fallthrough;
|
||||
case CLPAIR(IEEE754_CLASS_NORM, IEEE754_CLASS_DNORM):
|
||||
SPDNORMY;
|
||||
break;
|
||||
|
@@ -119,8 +119,7 @@ static union ieee754sp _sp_maddf(union ieee754sp z, union ieee754sp x,
|
||||
|
||||
case CLPAIR(IEEE754_CLASS_DNORM, IEEE754_CLASS_DNORM):
|
||||
SPDNORMX;
|
||||
/* fall through */
|
||||
|
||||
fallthrough;
|
||||
case CLPAIR(IEEE754_CLASS_NORM, IEEE754_CLASS_DNORM):
|
||||
if (zc == IEEE754_CLASS_INF)
|
||||
return ieee754sp_inf(zs);
|
||||
|
@@ -89,8 +89,7 @@ union ieee754sp ieee754sp_mul(union ieee754sp x, union ieee754sp y)
|
||||
|
||||
case CLPAIR(IEEE754_CLASS_DNORM, IEEE754_CLASS_DNORM):
|
||||
SPDNORMX;
|
||||
/* fall through */
|
||||
|
||||
fallthrough;
|
||||
case CLPAIR(IEEE754_CLASS_NORM, IEEE754_CLASS_DNORM):
|
||||
SPDNORMY;
|
||||
break;
|
||||
|
@@ -94,8 +94,7 @@ union ieee754sp ieee754sp_sub(union ieee754sp x, union ieee754sp y)
|
||||
|
||||
case CLPAIR(IEEE754_CLASS_DNORM, IEEE754_CLASS_DNORM):
|
||||
SPDNORMX;
|
||||
/* fall through */
|
||||
|
||||
fallthrough;
|
||||
case CLPAIR(IEEE754_CLASS_NORM, IEEE754_CLASS_DNORM):
|
||||
SPDNORMY;
|
||||
break;
|
||||
|
新增問題並參考
封鎖使用者