Skip to content

Commit

Permalink
Add pointer masking related CSR fields
Browse files Browse the repository at this point in the history
  • Loading branch information
YenHaoChen committed Jul 2, 2024
1 parent 984aced commit c55d30f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions encoding.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
#define HSTATUS_SPV 0x00000080
#define HSTATUS_GVA 0x00000040
#define HSTATUS_VSBE 0x00000020
#define HSTATUS_HUPMM 0x0003000000000000

#define USTATUS_UIE 0x00000001
#define USTATUS_UPIE 0x00000010
Expand Down Expand Up @@ -166,6 +167,7 @@
#define MENVCFG_CBIE 0x00000030
#define MENVCFG_CBCFE 0x00000040
#define MENVCFG_CBZE 0x00000080
#define MENVCFG_PMM 0x0000000300000000
#define MENVCFG_DTE 0x0800000000000000
#define MENVCFG_ADUE 0x2000000000000000
#define MENVCFG_PBMTE 0x4000000000000000
Expand Down Expand Up @@ -215,6 +217,7 @@
#define HENVCFG_CBIE 0x00000030
#define HENVCFG_CBCFE 0x00000040
#define HENVCFG_CBZE 0x00000080
#define HENVCFG_PMM 0x0000000300000000
#define HENVCFG_DTE 0x0800000000000000
#define HENVCFG_ADUE 0x2000000000000000
#define HENVCFG_PBMTE 0x4000000000000000
Expand Down Expand Up @@ -260,6 +263,7 @@
#define SENVCFG_CBIE 0x00000030
#define SENVCFG_CBCFE 0x00000040
#define SENVCFG_CBZE 0x00000080
#define SENVCFG_PMM 0x0000000300000000

#define SSTATEEN0_CS 0x00000001
#define SSTATEEN0_FCSR 0x00000002
Expand All @@ -271,6 +275,7 @@
#define MSECCFG_USEED 0x00000100
#define MSECCFG_SSEED 0x00000200
#define MSECCFG_MLPE 0x00000400
#define MSECCFG_PMM 0x0000000300000000

/* jvt fields */
#define JVT_MODE 0x3F
Expand Down

0 comments on commit c55d30f

Please sign in to comment.