Skip to content

Commit eabfeb0

Browse files
LIU Zhiweialistair23
authored andcommitted
target/riscv: Quiet Coverity complains about vamo*
Signed-off-by: LIU Zhiwei <[email protected]> Reviewed-by: Alistair Francis <[email protected]> Message-Id: <[email protected]> Signed-off-by: Alistair Francis <[email protected]>
1 parent 8380b3a commit eabfeb0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

target/riscv/insn_trans/trans_rvv.inc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -733,6 +733,7 @@ static bool amo_op(DisasContext *s, arg_rwdvm *a, uint8_t seq)
733733
g_assert_not_reached();
734734
#endif
735735
} else {
736+
assert(seq < ARRAY_SIZE(fnsw));
736737
fn = fnsw[seq];
737738
}
738739
}

0 commit comments

Comments
 (0)