aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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'),