target/riscv: Quiet Coverity complains about vamo*

Backports eabfeb0cb9e054108b3e29a3a85363b3d80d9c38
This commit is contained in:
LIU Zhiwei 2021-03-08 12:15:47 -05:00 committed by Lioncash
parent cd956f5aa6
commit fdfa52f424

View file

@ -743,6 +743,7 @@ static bool amo_op(DisasContext *s, arg_rwdvm *a, uint8_t seq)
g_assert_not_reached();
#endif
} else {
assert(seq < ARRAY_SIZE(fnsw));
fn = fnsw[seq];
}
}