diff options
| author | Atish Patra <[email protected]> | 2020-04-16 18:56:30 -0700 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2020-04-17 09:30:17 +0530 |
| commit | 6c7922e23b85bef624ef84a8b05ed89495e1eb20 (patch) | |
| tree | a34e921e37d79578f968bedbf935656ed5e336f1 /include | |
| parent | f281de885ec9417a6d3ae702d0ed5acab6396bee (diff) | |
lib: Support vector extension
Enable vector context in mstatus by updating the corresponding bits
in mstatus if vector extension is supported by the hart.
Signed-off-by: Atish Patra <[email protected]>
Reviewed-by: Bin Meng <[email protected]>
Reviewed-by: Anup Patel <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/sbi/riscv_encoding.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sbi/riscv_encoding.h b/include/sbi/riscv_encoding.h index 1cf624bf..8c3e6f16 100644 --- a/include/sbi/riscv_encoding.h +++ b/include/sbi/riscv_encoding.h @@ -25,6 +25,7 @@ #define MSTATUS_MPP (_UL(3) << MSTATUS_MPP_SHIFT) #define MSTATUS_FS _UL(0x00006000) #define MSTATUS_XS _UL(0x00018000) +#define MSTATUS_VS _UL(0x01800000) #define MSTATUS_MPRV _UL(0x00020000) #define MSTATUS_SUM _UL(0x00040000) #define MSTATUS_MXR _UL(0x00080000) @@ -53,6 +54,7 @@ #define SSTATUS_SPP MSTATUS_SPP #define SSTATUS_FS MSTATUS_FS #define SSTATUS_XS MSTATUS_XS +#define SSTATUS_VS MSTATUS_VS #define SSTATUS_SUM MSTATUS_SUM #define SSTATUS_MXR MSTATUS_MXR #define SSTATUS32_SD MSTATUS32_SD |
