target/riscv: Add a property to set vl to ceil(AVL/2)
authorJason Chien <jason.chien@sifive.com>
Mon, 22 Jul 2024 17:50:04 +0000 (01:50 +0800)
committerAlistair Francis <alistair.francis@wdc.com>
Wed, 2 Oct 2024 05:11:51 +0000 (15:11 +1000)
commit12f1e2ec0095b2b4bfe55f2a608bd87be58fb908
treef42a4bce3df519312fbbba34bc35af7b78c9ebe8
parent718780d20470c66a3a36d036b29148d5809dc855
target/riscv: Add a property to set vl to ceil(AVL/2)

RVV spec allows implementations to set vl with values within
[ceil(AVL/2),VLMAX] when VLMAX < AVL < 2*VLMAX. This commit adds a
property "rvv_vl_half_avl" to enable setting vl = ceil(AVL/2). This
behavior helps identify compiler issues and bugs.

Signed-off-by: Jason Chien <jason.chien@sifive.com>
Reviewed-by: Frank Chang <frank.chang@sifive.com>
Message-ID: <20240722175004.23666-1-jason.chien@sifive.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
target/riscv/cpu.c
target/riscv/cpu_cfg.h
target/riscv/vector_helper.c