[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC v5 01/68] target/riscv: drop vector 0.7.1 and add 1.0 support
From: |
frank . chang |
Subject: |
[RFC v5 01/68] target/riscv: drop vector 0.7.1 and add 1.0 support |
Date: |
Wed, 30 Sep 2020 03:03:36 +0800 |
From: Frank Chang <frank.chang@sifive.com>
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>
---
target/riscv/cpu.c | 10 +++++-----
target/riscv/cpu.h | 2 +-
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c
index 57c006df5d..17c138bb90 100644
--- a/target/riscv/cpu.c
+++ b/target/riscv/cpu.c
@@ -345,7 +345,7 @@ static void riscv_cpu_realize(DeviceState *dev, Error
**errp)
CPURISCVState *env = &cpu->env;
RISCVCPUClass *mcc = RISCV_CPU_GET_CLASS(dev);
int priv_version = PRIV_VERSION_1_11_0;
- int vext_version = VEXT_VERSION_0_07_1;
+ int vext_version = VEXT_VERSION_1_00_0;
target_ulong target_misa = 0;
Error *local_err = NULL;
@@ -463,8 +463,8 @@ static void riscv_cpu_realize(DeviceState *dev, Error
**errp)
return;
}
if (cpu->cfg.vext_spec) {
- if (!g_strcmp0(cpu->cfg.vext_spec, "v0.7.1")) {
- vext_version = VEXT_VERSION_0_07_1;
+ if (!g_strcmp0(cpu->cfg.vext_spec, "v1.0")) {
+ vext_version = VEXT_VERSION_1_00_0;
} else {
error_setg(errp,
"Unsupported vector spec version '%s'",
@@ -472,8 +472,8 @@ static void riscv_cpu_realize(DeviceState *dev, Error
**errp)
return;
}
} else {
- qemu_log("vector verison is not specified, "
- "use the default value v0.7.1\n");
+ qemu_log("vector version is not specified, "
+ "use the default value v1.0\n");
}
set_vext_version(env, vext_version);
}
diff --git a/target/riscv/cpu.h b/target/riscv/cpu.h
index 65daa73675..bf10b64fcb 100644
--- a/target/riscv/cpu.h
+++ b/target/riscv/cpu.h
@@ -79,7 +79,7 @@ enum {
#define PRIV_VERSION_1_10_0 0x00011000
#define PRIV_VERSION_1_11_0 0x00011100
-#define VEXT_VERSION_0_07_1 0x00000701
+#define VEXT_VERSION_1_00_0 0x00010000
#define TRANSLATE_PMP_FAIL 2
#define TRANSLATE_FAIL 1
--
2.17.1
- [RFC v5 00/68] support vector extension v1.0, frank . chang, 2020/09/29
- [RFC v5 01/68] target/riscv: drop vector 0.7.1 and add 1.0 support,
frank . chang <=
- [RFC v5 02/68] target/riscv: Use FIELD_EX32() to extract wd field, frank . chang, 2020/09/29
- [RFC v5 03/68] target/riscv: rvv-1.0: add mstatus VS field, frank . chang, 2020/09/29
- [RFC v5 04/68] target/riscv: rvv-1.0: add sstatus VS field, frank . chang, 2020/09/29
- [RFC v5 05/68] target/riscv: rvv-1.0: introduce writable misa.v field, frank . chang, 2020/09/29
- [RFC v5 07/68] target/riscv: rvv-1.0: remove rvv related codes from fcsr registers, frank . chang, 2020/09/29
- [RFC v5 06/68] target/riscv: rvv-1.0: add translation-time vector context status, frank . chang, 2020/09/29
- [RFC v5 08/68] target/riscv: rvv-1.0: add vcsr register, frank . chang, 2020/09/29
- [RFC v5 09/68] target/riscv: rvv-1.0: add vlenb register, frank . chang, 2020/09/29
- [RFC v5 10/68] target/riscv: rvv-1.0: check MSTATUS_VS when accessing vector csr registers, frank . chang, 2020/09/29
- [RFC v5 11/68] target/riscv: rvv-1.0: remove MLEN calculations, frank . chang, 2020/09/29