aboutsummaryrefslogtreecommitdiff
path: root/encoding.h
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@cs.berkeley.edu>2016-02-28 20:39:36 -0800
committerAndrew Waterman <waterman@cs.berkeley.edu>2016-02-28 20:39:36 -0800
commit9b7dce6108d1c1559521f1e0d8517ebb75636837 (patch)
treeec7934992e7568633d2770e1590e28b03087d8f6 /encoding.h
parentbaed88131913ae48e3c84f7fdaa5549e5a698a07 (diff)
downloadriscv-opcodes-9b7dce6108d1c1559521f1e0d8517ebb75636837.zip
riscv-opcodes-9b7dce6108d1c1559521f1e0d8517ebb75636837.tar.gz
riscv-opcodes-9b7dce6108d1c1559521f1e0d8517ebb75636837.tar.bz2
WIP on priv spec v1.9
Diffstat (limited to 'encoding.h')
-rw-r--r--encoding.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/encoding.h b/encoding.h
index dca31a5..3960252 100644
--- a/encoding.h
+++ b/encoding.h
@@ -17,7 +17,8 @@
#define MSTATUS_FS 0x00006000
#define MSTATUS_XS 0x00018000
#define MSTATUS_MPRV 0x00020000
-#define MSTATUS_VM 0x007C0000
+#define MSTATUS_PUM 0x00040000
+#define MSTATUS_VM 0x1F000000
#define MSTATUS32_SD 0x80000000
#define MSTATUS64_SD 0x8000000000000000
@@ -28,7 +29,7 @@
#define SSTATUS_SPP 0x00000100
#define SSTATUS_FS 0x00006000
#define SSTATUS_XS 0x00018000
-#define SSTATUS_VM 0x007C0000
+#define SSTATUS_PUM 0x00040000
#define SSTATUS32_SD 0x80000000
#define SSTATUS64_SD 0x8000000000000000
@@ -63,9 +64,9 @@
#define IRQ_COP 8
#define IRQ_HOST 9
-#define IMPL_ROCKET 1
-
-#define DEFAULT_MTVEC 0x100
+#define DEFAULT_RSTVEC 0x0
+#define DEFAULT_NMIVEC 0x4
+#define DEFAULT_MTVEC 0x8
// page table entry (PTE) fields
#define PTE_V 0x001 // Valid