Skip to content

Commit

Permalink
target/mips: Add two missing breaks for NM_LLWPE and NM_SCWPE decoder…
Browse files Browse the repository at this point in the history
… cases

Coverity found two fallthroughs that miss break statement. Fix them.

Revieved-by: Stefan Markovic <smarkovic@wavecomp.com>
Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com>
  • Loading branch information
AMarkovic committed Oct 29, 2018
1 parent 285278c commit 2431a42
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions target/mips/translate.c
Expand Up @@ -21321,6 +21321,7 @@ static int decode_nanomips_32_48_opc(CPUMIPSState *env, DisasContext *ctx)
check_eva(ctx);
check_cp0_enabled(ctx);
gen_llwp(ctx, rs, 0, rt, extract32(ctx->opcode, 3, 5));
break;
default:
generate_exception_end(ctx, EXCP_RI);
break;
Expand All @@ -21339,6 +21340,7 @@ static int decode_nanomips_32_48_opc(CPUMIPSState *env, DisasContext *ctx)
check_eva(ctx);
check_cp0_enabled(ctx);
gen_scwp(ctx, rs, 0, rt, extract32(ctx->opcode, 3, 5));
break;
default:
generate_exception_end(ctx, EXCP_RI);
break;
Expand Down

0 comments on commit 2431a42

Please sign in to comment.