[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v9 65/76] target/riscv: rvv-1.0: relax RV_VLEN_MAX to 1024-bits
From: |
frank . chang |
Subject: |
[PATCH v9 65/76] target/riscv: rvv-1.0: relax RV_VLEN_MAX to 1024-bits |
Date: |
Fri, 29 Oct 2021 16:59:10 +0800 |
From: Frank Chang <frank.chang@sifive.com>
Signed-off-by: Frank Chang <frank.chang@sifive.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
---
target/riscv/cpu.h | 2 +-
target/riscv/insn_trans/trans_rvv.c.inc | 4 ++--
target/riscv/vector_helper.c | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/target/riscv/cpu.h b/target/riscv/cpu.h
index 11a0f41b27e..5d93ccdfa71 100644
--- a/target/riscv/cpu.h
+++ b/target/riscv/cpu.h
@@ -100,7 +100,7 @@ typedef struct CPURISCVState CPURISCVState;
#include "pmp.h"
#endif
-#define RV_VLEN_MAX 256
+#define RV_VLEN_MAX 1024
FIELD(VTYPE, VLMUL, 0, 3)
FIELD(VTYPE, VSEW, 3, 3)
diff --git a/target/riscv/insn_trans/trans_rvv.c.inc
b/target/riscv/insn_trans/trans_rvv.c.inc
index 42e94491184..be3f9f13275 100644
--- a/target/riscv/insn_trans/trans_rvv.c.inc
+++ b/target/riscv/insn_trans/trans_rvv.c.inc
@@ -567,8 +567,8 @@ static bool ldst_us_trans(uint32_t vd, uint32_t rs1,
uint32_t data,
base = get_gpr(s, rs1, EXT_NONE);
/*
- * As simd_desc supports at most 256 bytes, and in this implementation,
- * the max vector group length is 2048 bytes. So split it into two parts.
+ * As simd_desc supports at most 2048 bytes, and in this implementation,
+ * the max vector group length is 4096 bytes. So split it into two parts.
*
* The first part is vlen in bytes, encoded in maxsz of simd_desc.
* The second part is lmul, encoded in data of simd_desc.
diff --git a/target/riscv/vector_helper.c b/target/riscv/vector_helper.c
index a78f36b4b3b..e61c8731425 100644
--- a/target/riscv/vector_helper.c
+++ b/target/riscv/vector_helper.c
@@ -124,7 +124,7 @@ static inline int32_t vext_lmul(uint32_t desc)
static inline uint32_t vext_max_elems(uint32_t desc, uint32_t esz)
{
/*
- * As simd_desc support at most 256 bytes, the max vlen is 256 bits.
+ * As simd_desc support at most 2048 bytes, the max vlen is 1024 bits.
* so vlen in bytes (vlenb) is encoded as maxsz.
*/
uint32_t vlenb = simd_maxsz(desc);
--
2.25.1
- [PATCH v9 55/76] target/riscv: rvv-1.0: single-width scaling shift instructions, (continued)
- [PATCH v9 55/76] target/riscv: rvv-1.0: single-width scaling shift instructions, frank . chang, 2021/10/29
- [PATCH v9 56/76] target/riscv: rvv-1.0: remove widening saturating scaled multiply-add, frank . chang, 2021/10/29
- [PATCH v9 57/76] target/riscv: rvv-1.0: remove vmford.vv and vmford.vf, frank . chang, 2021/10/29
- [PATCH v9 58/76] target/riscv: rvv-1.0: remove integer extract instruction, frank . chang, 2021/10/29
- [PATCH v9 59/76] target/riscv: rvv-1.0: floating-point min/max instructions, frank . chang, 2021/10/29
- [PATCH v9 61/76] target/riscv: rvv-1.0: floating-point/integer type-convert instructions, frank . chang, 2021/10/29
- [PATCH v9 62/76] target/riscv: rvv-1.0: widening floating-point/integer type-convert, frank . chang, 2021/10/29
- [PATCH v9 63/76] target/riscv: add "set round to odd" rounding mode helper function, frank . chang, 2021/10/29
- [PATCH v9 60/76] target/riscv: introduce floating-point rounding mode enum, frank . chang, 2021/10/29
- [PATCH v9 64/76] target/riscv: rvv-1.0: narrowing floating-point/integer type-convert, frank . chang, 2021/10/29
- [PATCH v9 65/76] target/riscv: rvv-1.0: relax RV_VLEN_MAX to 1024-bits,
frank . chang <=
- [PATCH v9 66/76] target/riscv: rvv-1.0: implement vstart CSR, frank . chang, 2021/10/29
- [PATCH v9 67/76] target/riscv: rvv-1.0: trigger illegal instruction exception if frm is not valid, frank . chang, 2021/10/29
- [PATCH v9 69/76] target/riscv: rvv-1.0: floating-point reciprocal square-root estimate instruction, frank . chang, 2021/10/29
- [PATCH v9 68/76] target/riscv: gdb: support vector registers for rv64 & rv32, frank . chang, 2021/10/29
- [PATCH v9 70/76] target/riscv: rvv-1.0: floating-point reciprocal estimate instruction, frank . chang, 2021/10/29
- [PATCH v9 71/76] target/riscv: rvv-1.0: rename r2_zimm to r2_zimm11, frank . chang, 2021/10/29
- [PATCH v9 72/76] target/riscv: rvv-1.0: add vsetivli instruction, frank . chang, 2021/10/29
- [PATCH v9 73/76] target/riscv: rvv-1.0: add evl parameter to vext_ldst_us(), frank . chang, 2021/10/29
- [PATCH v9 74/76] target/riscv: rvv-1.0: add vector unit-stride mask load/store insns, frank . chang, 2021/10/29
- [PATCH v9 75/76] target/riscv: rvv-1.0: rename vmandnot.mm and vmornot.mm to vmandn.mm and vmorn.mm, frank . chang, 2021/10/29