diff options
author | LIU Zhiwei <zhiwei_liu@c-sky.com> | 2020-07-21 21:37:41 +0800 |
---|---|---|
committer | Alistair Francis <alistair.francis@wdc.com> | 2020-07-22 09:39:46 -0700 |
commit | eabfeb0cb9e054108b3e29a3a85363b3d80d9c38 (patch) | |
tree | 0c43091ba26e8e593647953da3081b6828128022 /target/riscv/insn_trans | |
parent | 8380b3a453c38f040e7ca2105418802344cc23d0 (diff) | |
download | qemu-eabfeb0cb9e054108b3e29a3a85363b3d80d9c38.zip qemu-eabfeb0cb9e054108b3e29a3a85363b3d80d9c38.tar.gz qemu-eabfeb0cb9e054108b3e29a3a85363b3d80d9c38.tar.bz2 |
target/riscv: Quiet Coverity complains about vamo*
Signed-off-by: LIU Zhiwei <zhiwei_liu@c-sky.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20200721133742.2298-1-zhiwei_liu@c-sky.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'target/riscv/insn_trans')
-rw-r--r-- | target/riscv/insn_trans/trans_rvv.inc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/target/riscv/insn_trans/trans_rvv.inc.c b/target/riscv/insn_trans/trans_rvv.inc.c index c0b7375..7b4752b 100644 --- a/target/riscv/insn_trans/trans_rvv.inc.c +++ b/target/riscv/insn_trans/trans_rvv.inc.c @@ -733,6 +733,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]; } } |