mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-02-25 18:06:56 +00:00
target/mips: Add two missing breaks for NM_LLWPE and NM_SCWPE decoder cases
Coverity found two fallthroughs that miss break statement. Fix them. Backports commit 2431a422d325c1832d77dd64fa3135ec303b00de from qemu
This commit is contained in:
parent
948d49db81
commit
a1ba04ae44
|
@ -21465,6 +21465,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;
|
||||
|
@ -21483,6 +21484,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;
|
||||
|
|
Loading…
Reference in a new issue