diff options
author | Chih-Min Chao <chihmin.chao@sifive.com> | 2019-11-27 22:17:10 -0800 |
---|---|---|
committer | Chih-Min Chao <chihmin.chao@sifive.com> | 2019-12-20 10:18:01 -0800 |
commit | 4051af5ce64a78c2d032ba7b0452b8bb929ac281 (patch) | |
tree | f2d021b8bcf3d527c707a466473306871e2e37ef /riscv/encoding.h | |
parent | b812e15a8c95c4b2bb22b053efaf922b796245e4 (diff) | |
download | spike-4051af5ce64a78c2d032ba7b0452b8bb929ac281.zip spike-4051af5ce64a78c2d032ba7b0452b8bb929ac281.tar.gz spike-4051af5ce64a78c2d032ba7b0452b8bb929ac281.tar.bz2 |
rvv: support new mstatus.vs field defined in v0.8
mstatus.vs is similiar to mstatus.fs and used to control the state of
vector unit.
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
Diffstat (limited to 'riscv/encoding.h')
-rw-r--r-- | riscv/encoding.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/riscv/encoding.h b/riscv/encoding.h index ec4ad8e..6d691e7 100644 --- a/riscv/encoding.h +++ b/riscv/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 |