diff options
author | Frank Chang <frank.chang@sifive.com> | 2020-07-10 18:48:17 +0800 |
---|---|---|
committer | Alistair Francis <alistair.francis@wdc.com> | 2020-07-13 17:25:37 -0700 |
commit | a69f97c1110205bc173657c77ce2d16877cad683 (patch) | |
tree | 1fe328f17f776455b3e890b7de378b063961fd28 /target/riscv | |
parent | 1989205c4e973bc7f9fac0ce0700993f30582538 (diff) | |
download | qemu-a69f97c1110205bc173657c77ce2d16877cad683.zip qemu-a69f97c1110205bc173657c77ce2d16877cad683.tar.gz qemu-a69f97c1110205bc173657c77ce2d16877cad683.tar.bz2 |
target/riscv: fix return value of do_opivx_widen()
do_opivx_widen() should return false if check function returns false.
Signed-off-by: Frank Chang <frank.chang@sifive.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20200710104920.13550-4-frank.chang@sifive.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'target/riscv')
-rw-r--r-- | target/riscv/insn_trans/trans_rvv.inc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/riscv/insn_trans/trans_rvv.inc.c b/target/riscv/insn_trans/trans_rvv.inc.c index 7cd08f0..c0b7375 100644 --- a/target/riscv/insn_trans/trans_rvv.inc.c +++ b/target/riscv/insn_trans/trans_rvv.inc.c @@ -1151,7 +1151,7 @@ static bool do_opivx_widen(DisasContext *s, arg_rmrr *a, if (opivx_widen_check(s, a)) { return opivx_trans(a->rd, a->rs1, a->rs2, a->vm, fn, s); } - return true; + return false; } #define GEN_OPIVX_WIDEN_TRANS(NAME) \ |