From 90a3e36cebd260e5383db2e6a939748968848fec Mon Sep 17 00:00:00 2001 From: Chih-Min Chao Date: Mon, 18 Nov 2019 00:55:07 -0800 Subject: 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 --- encoding.h | 2 ++ parse_opcodes | 1 + 2 files changed, 3 insertions(+) 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'), -- cgit v1.1