mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
target/riscv: rvv-1.0: remove MLEN calculations
As in RVV 1.0 design, MLEN is hardcoded with value 1 (Section 4.5). Thus, remove all MLEN related calculations. 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-13-frank.chang@sifive.com> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
This commit is contained in:
parent
6bc3dfa96d
commit
f9298de514
4 changed files with 111 additions and 187 deletions
|
@ -22,11 +22,10 @@
|
|||
#include "hw/registerfields.h"
|
||||
|
||||
/* share data between vector helpers and decode code */
|
||||
FIELD(VDATA, MLEN, 0, 8)
|
||||
FIELD(VDATA, VM, 8, 1)
|
||||
FIELD(VDATA, LMUL, 9, 2)
|
||||
FIELD(VDATA, NF, 11, 4)
|
||||
FIELD(VDATA, WD, 11, 1)
|
||||
FIELD(VDATA, VM, 0, 1)
|
||||
FIELD(VDATA, LMUL, 1, 3)
|
||||
FIELD(VDATA, NF, 4, 4)
|
||||
FIELD(VDATA, WD, 4, 1)
|
||||
|
||||
/* float point classify helpers */
|
||||
target_ulong fclass_h(uint64_t frs1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue