]> git.proxmox.com Git - mirror_qemu.git/commit - target/riscv/cpu.h
target/riscv: rvv-1.0: add fractional LMUL
authorFrank Chang <frank.chang@sifive.com>
Fri, 10 Dec 2021 07:55:59 +0000 (15:55 +0800)
committerAlistair Francis <alistair.francis@wdc.com>
Mon, 20 Dec 2021 04:51:36 +0000 (14:51 +1000)
commit33f1beaf12ebb835cd11a8be0bad229b2af166e2
treee7e2ed26c5d3cb86a1c4207952ddd92b5d2ecf4d
parentf9298de51432148163d8ed9c2b15bc0096546c07
target/riscv: rvv-1.0: add fractional LMUL

Introduce the concepts of fractional LMUL for RVV 1.0.
In RVV 1.0, LMUL bits are contiguous in vtype register.

Also rearrange rvv bits in TB_FLAGS to skip MSTATUS_VS (0x600)
and MSTATUS_FS (0x6000) bits.

Signed-off-by: Frank Chang <frank.chang@sifive.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20211210075704.23951-14-frank.chang@sifive.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
target/riscv/cpu.h
target/riscv/translate.c
target/riscv/vector_helper.c