Skip to content

Commit

Permalink
add srmcfg CSR
Browse files Browse the repository at this point in the history
  • Loading branch information
ved-rivos committed Dec 23, 2023
1 parent 61d2ef4 commit d5f2867
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions csrs.csv
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
0x157, "sireg6"
0x15C, "stopei"
0x180, "satp"
0x181, "srmcfg"
0x5A8, "scontext"
0x200, "vsstatus"
0x204, "vsie"
Expand Down
4 changes: 4 additions & 0 deletions encoding.h
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,10 @@

#define PTE_TABLE(PTE) (((PTE) & (PTE_V | PTE_R | PTE_W | PTE_X)) == PTE_V)

/* srmcfg CSR fields */
#define SRMCFG_RCID 0x00000FFF
#define SRMCFG_MCID 0x0FFF0000

#ifdef __riscv

#if __riscv_xlen == 64
Expand Down

0 comments on commit d5f2867

Please sign in to comment.