mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-02-25 21:57:00 +00:00
target-mips: Clean up switch fall through after commit fecd264
Commit fecd264 added a number of fall-throughs, but neglected to properly document them as intentional. Commit d922445 cleaned that up for many, but not all cases. Take care of the remaining ones. Backports commit b6f3b233eabb4df5d65ae9fbfb3d3c8befea0de7 from qemu
This commit is contained in:
parent
3190a32782
commit
4ee3955e11
|
@ -18896,6 +18896,7 @@ static void decode_opc(CPUMIPSState *env, DisasContext *ctx, bool *insn_need_pat
|
||||||
case OPC_SWL:
|
case OPC_SWL:
|
||||||
case OPC_SWR:
|
case OPC_SWR:
|
||||||
check_insn_opc_removed(ctx, ISA_MIPS32R6);
|
check_insn_opc_removed(ctx, ISA_MIPS32R6);
|
||||||
|
/* fall through */
|
||||||
case OPC_SB: case OPC_SH:
|
case OPC_SB: case OPC_SH:
|
||||||
case OPC_SW:
|
case OPC_SW:
|
||||||
gen_st(ctx, op, rt, rs, imm);
|
gen_st(ctx, op, rt, rs, imm);
|
||||||
|
@ -18984,6 +18985,7 @@ static void decode_opc(CPUMIPSState *env, DisasContext *ctx, bool *insn_need_pat
|
||||||
case OPC_PS_FMT:
|
case OPC_PS_FMT:
|
||||||
check_cp1_enabled(ctx);
|
check_cp1_enabled(ctx);
|
||||||
check_insn_opc_removed(ctx, ISA_MIPS32R6);
|
check_insn_opc_removed(ctx, ISA_MIPS32R6);
|
||||||
|
/* fall through */
|
||||||
case OPC_S_FMT:
|
case OPC_S_FMT:
|
||||||
case OPC_D_FMT:
|
case OPC_D_FMT:
|
||||||
check_cp1_enabled(ctx);
|
check_cp1_enabled(ctx);
|
||||||
|
@ -19166,6 +19168,7 @@ static void decode_opc(CPUMIPSState *env, DisasContext *ctx, bool *insn_need_pat
|
||||||
case OPC_LDL: case OPC_LDR:
|
case OPC_LDL: case OPC_LDR:
|
||||||
case OPC_LLD:
|
case OPC_LLD:
|
||||||
check_insn_opc_removed(ctx, ISA_MIPS32R6);
|
check_insn_opc_removed(ctx, ISA_MIPS32R6);
|
||||||
|
/* fall through */
|
||||||
case OPC_LWU:
|
case OPC_LWU:
|
||||||
case OPC_LD:
|
case OPC_LD:
|
||||||
check_insn(ctx, ISA_MIPS3);
|
check_insn(ctx, ISA_MIPS3);
|
||||||
|
@ -19174,6 +19177,7 @@ static void decode_opc(CPUMIPSState *env, DisasContext *ctx, bool *insn_need_pat
|
||||||
break;
|
break;
|
||||||
case OPC_SDL: case OPC_SDR:
|
case OPC_SDL: case OPC_SDR:
|
||||||
check_insn_opc_removed(ctx, ISA_MIPS32R6);
|
check_insn_opc_removed(ctx, ISA_MIPS32R6);
|
||||||
|
/* fall through */
|
||||||
case OPC_SD:
|
case OPC_SD:
|
||||||
check_insn(ctx, ISA_MIPS3);
|
check_insn(ctx, ISA_MIPS3);
|
||||||
check_mips_64(ctx);
|
check_mips_64(ctx);
|
||||||
|
|
Loading…
Reference in a new issue