OSDN Git Service

target/riscv: Pass the same value to oprsz and maxsz.
authorLIU Zhiwei <zhiwei_liu@c-sky.com>
Fri, 21 May 2021 05:48:16 +0000 (13:48 +0800)
committerAlistair Francis <alistair.francis@wdc.com>
Mon, 7 Jun 2021 23:59:43 +0000 (09:59 +1000)
commiteee2d61e202b5bd49a5eb211e347e02c86287ef4
tree70ba046ba1c0c24f4bbe313b25a31c8036f88363
parent787a4baf91fa2ff36b901c0b31ea73f3f0739415
target/riscv: Pass the same value to oprsz and maxsz.

Since commit e2e7168a214b0ed98dc357bba96816486a289762, if oprsz
is still zero(as we don't use this field), simd_desc will trigger an
assert.

Besides, tcg_gen_gvec_*_ptr calls simd_desc in it's implementation.
Here we pass the value to maxsz and oprsz to bypass the assert.

Signed-off-by: LIU Zhiwei <zhiwei_liu@c-sky.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20210521054816.1784297-1-zhiwei_liu@c-sky.com
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
target/riscv/insn_trans/trans_rvv.c.inc