diff options
author | liweiwei90 <34847211+liweiwei90@users.noreply.github.com> | 2022-11-18 07:33:13 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-17 15:33:13 -0800 |
commit | 8df0274582cedd9070bb92f6e7d9e225de005f1a (patch) | |
tree | 06e0c13b770c2606124fa1b9b31edfad3636a302 /encoding.h | |
parent | 9f4d2be321fa30653d642bcc47f5f24a883afb60 (diff) | |
download | riscv-opcodes-8df0274582cedd9070bb92f6e7d9e225de005f1a.zip riscv-opcodes-8df0274582cedd9070bb92f6e7d9e225de005f1a.tar.gz riscv-opcodes-8df0274582cedd9070bb92f6e7d9e225de005f1a.tar.bz2 |
Add support for Zc* extensions (#107)
Diffstat (limited to 'encoding.h')
-rw-r--r-- | encoding.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -155,6 +155,7 @@ #define MSTATEEN0_CS 0x00000001 #define MSTATEEN0_FCSR 0x00000002 +#define MSTATEEN0_JVT 0x00000004 #define MSTATEEN0_HCONTEXT 0x0200000000000000 #define MSTATEEN0_HENVCFG 0x4000000000000000 #define MSTATEEN_HSTATEEN 0x8000000000000000 @@ -189,6 +190,7 @@ #define HSTATEEN0_CS 0x00000001 #define HSTATEEN0_FCSR 0x00000002 +#define HSTATEEN0_JVT 0x00000004 #define HSTATEEN0_SCONTEXT 0x0200000000000000 #define HSTATEEN0_SENVCFG 0x4000000000000000 #define HSTATEEN_SSTATEEN 0x8000000000000000 @@ -204,6 +206,7 @@ #define SSTATEEN0_CS 0x00000001 #define SSTATEEN0_FCSR 0x00000002 +#define SSTATEEN0_JVT 0x00000004 #define MSECCFG_MML 0x00000001 #define MSECCFG_MMWP 0x00000002 @@ -211,6 +214,10 @@ #define MSECCFG_USEED 0x00000100 #define MSECCFG_SSEED 0x00000200 +/* jvt fields */ +#define JVT_MODE 0x3F +#define JVT_BASE (~0x3F) + #define PRV_U 0 #define PRV_S 1 #define PRV_M 3 |