Skip to content

Commit

Permalink
Add mstateen0[60] for Smcsrind/Sscsrind (#241)
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Waterman <andrew@sifive.com>
Co-authored-by: Andrew Waterman <andrew@sifive.com>
  • Loading branch information
YenHaoChen and aswaterman authored Apr 10, 2024
1 parent e981086 commit 9fa2695
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions encoding.h
Original file line number Diff line number Diff line change
Expand Up @@ -173,12 +173,14 @@
#define MSTATEEN0_PRIV114 0x0080000000000000
#define MSTATEEN0_HCONTEXT 0x0200000000000000
#define MSTATEEN0_AIA 0x0800000000000000
#define MSTATEEN0_CSRIND 0x1000000000000000
#define MSTATEEN0_HENVCFG 0x4000000000000000
#define MSTATEEN_HSTATEEN 0x8000000000000000

#define MSTATEEN0H_PRIV114 0x00800000
#define MSTATEEN0H_HCONTEXT 0x02000000
#define MSTATEEN0H_AIA 0x08000000
#define MSTATEEN0H_CSRIND 0x10000000
#define MSTATEEN0H_HENVCFG 0x40000000
#define MSTATEENH_HSTATEEN 0x80000000

Expand Down Expand Up @@ -227,11 +229,13 @@
#define HSTATEEN0_JVT 0x00000004
#define HSTATEEN0_SCONTEXT 0x0200000000000000
#define HSTATEEN0_AIA 0x0800000000000000
#define HSTATEEN0_CSRIND 0x1000000000000000
#define HSTATEEN0_SENVCFG 0x4000000000000000
#define HSTATEEN_SSTATEEN 0x8000000000000000

#define HSTATEEN0H_SCONTEXT 0x02000000
#define HSTATEEN0H_AIA 0x08000000
#define HSTATEEN0H_CSRIND 0x10000000
#define HSTATEEN0H_SENVCFG 0x40000000
#define HSTATEENH_SSTATEEN 0x80000000

Expand Down

0 comments on commit 9fa2695

Please sign in to comment.