aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChih-Min Chao <chihmin.chao@sifive.com>2019-11-18 00:55:07 -0800
committerChih-Min Chao <chihmin.chao@sifive.com>2019-11-28 00:10:23 -0800
commit90a3e36cebd260e5383db2e6a939748968848fec (patch)
treea129744197ded630467a92ba79e7fde7abd7a241
parent2b3905ed85371cc4cecb58730ae34502708de701 (diff)
downloadriscv-opcodes-90a3e36cebd260e5383db2e6a939748968848fec.zip
riscv-opcodes-90a3e36cebd260e5383db2e6a939748968848fec.tar.gz
riscv-opcodes-90a3e36cebd260e5383db2e6a939748968848fec.tar.bz2
rvv: add vleb csr register and mstatus.vs field
1. vleb is read-only CSR to keep vector implementation lenght in byte 2. mstatus.vs is similar to mstatus.fs and designed to keep vector extension state Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
-rw-r--r--encoding.h2
-rwxr-xr-xparse_opcodes1
2 files changed, 3 insertions, 0 deletions
diff --git a/encoding.h b/encoding.h
index a65ca6e..5138e5d 100644
--- a/encoding.h
+++ b/encoding.h
@@ -22,6 +22,7 @@
#define MSTATUS_TVM 0x00100000
#define MSTATUS_TW 0x00200000
#define MSTATUS_TSR 0x00400000
+#define MSTATUS_VS 0x01800000
#define MSTATUS32_SD 0x80000000
#define MSTATUS_UXL 0x0000000300000000
#define MSTATUS_SXL 0x0000000C00000000
@@ -36,6 +37,7 @@
#define SSTATUS_XS 0x00018000
#define SSTATUS_SUM 0x00040000
#define SSTATUS_MXR 0x00080000
+#define SSTATUS_VS 0x01800000
#define SSTATUS32_SD 0x80000000
#define SSTATUS_UXL 0x0000000300000000
#define SSTATUS64_SD 0x8000000000000000
diff --git a/parse_opcodes b/parse_opcodes
index 9ac586e..883b953 100755
--- a/parse_opcodes
+++ b/parse_opcodes
@@ -118,6 +118,7 @@ csrs = [
(0xC1F, 'hpmcounter31'),
(0xC20, 'vl'),
(0xC21, 'vtype'),
+ (0xC22, 'vlenb'),
# Standard Supervisor R/W
(0x100, 'sstatus'),