aboutsummaryrefslogtreecommitdiff
path: root/encoding.h
diff options
context:
space:
mode:
Diffstat (limited to 'encoding.h')
-rw-r--r--encoding.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/encoding.h b/encoding.h
index 8c69db8..c799395 100644
--- a/encoding.h
+++ b/encoding.h
@@ -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