summaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorLIU Zhiwei2020-07-21 15:37:41 +0200
committerAlistair Francis2020-07-22 18:39:46 +0200
commiteabfeb0cb9e054108b3e29a3a85363b3d80d9c38 (patch)
tree0c43091ba26e8e593647953da3081b6828128022 /target
parentgoldfish_rtc: Fix non-atomic read behaviour of TIME_LOW/TIME_HIGH (diff)
downloadqemu-eabfeb0cb9e054108b3e29a3a85363b3d80d9c38.tar.gz
qemu-eabfeb0cb9e054108b3e29a3a85363b3d80d9c38.tar.xz
qemu-eabfeb0cb9e054108b3e29a3a85363b3d80d9c38.zip
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')
-rw-r--r--target/riscv/insn_trans/trans_rvv.inc.c1
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 c0b7375927..7b4752b911 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];
}
}