From: Richard Henderson Date: Wed, 20 Oct 2021 03:17:00 +0000 (-0700) Subject: target/riscv: Use REQUIRE_64BIT in amo_check64 X-Git-Tag: v6.2.0-rc0~41^2~20 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=fbb48032e46976cfc94a90a4233a2060fdc36a4e;p=users%2Fdwmw2%2Fqemu.git target/riscv: Use REQUIRE_64BIT in amo_check64 Use the same REQUIRE_64BIT check that we use elsewhere, rather than open-coding the use of is_32bit. Reviewed-by: LIU Zhiwei Reviewed-by: Alistair Francis Signed-off-by: Richard Henderson Message-id: 20211020031709.359469-7-richard.henderson@linaro.org Signed-off-by: Alistair Francis --- diff --git a/target/riscv/insn_trans/trans_rvv.c.inc b/target/riscv/insn_trans/trans_rvv.c.inc index 45be491ed4..233131bae1 100644 --- a/target/riscv/insn_trans/trans_rvv.c.inc +++ b/target/riscv/insn_trans/trans_rvv.c.inc @@ -743,7 +743,8 @@ static bool amo_check(DisasContext *s, arg_rwdvm* a) static bool amo_check64(DisasContext *s, arg_rwdvm* a) { - return !is_32bit(s) && amo_check(s, a); + REQUIRE_64BIT(s); + return amo_check(s, a); } GEN_VEXT_TRANS(vamoswapw_v, 0, rwdvm, amo_op, amo_check)