aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Waterman <andrew@sifive.com>2021-01-08 16:27:13 -0800
committerAndrew Waterman <andrew@sifive.com>2021-01-08 16:27:13 -0800
commitf7f2b33f9757e8f5180f49852793905ddba625d9 (patch)
treea77a9c8dde0eab2188bea0ddb6389e32d8b917b0
parent060b9ffaeaec8a299f59868d4ea5bf714814d27a (diff)
downloadriscv-opcodes-f7f2b33f9757e8f5180f49852793905ddba625d9.zip
riscv-opcodes-f7f2b33f9757e8f5180f49852793905ddba625d9.tar.gz
riscv-opcodes-f7f2b33f9757e8f5180f49852793905ddba625d9.tar.bz2
Update mstatus/sstatus fields for hypervisor v0.6
-rw-r--r--encoding.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/encoding.h b/encoding.h
index 2e84718..fc8a8c0 100644
--- a/encoding.h
+++ b/encoding.h
@@ -9,7 +9,7 @@
#define MSTATUS_MIE 0x00000008
#define MSTATUS_UPIE 0x00000010
#define MSTATUS_SPIE 0x00000020
-#define MSTATUS_HPIE 0x00000040
+#define MSTATUS_UBE 0x00000040
#define MSTATUS_MPIE 0x00000080
#define MSTATUS_SPP 0x00000100
#define MSTATUS_VS 0x00000600
@@ -25,14 +25,20 @@
#define MSTATUS32_SD 0x80000000
#define MSTATUS_UXL 0x0000000300000000
#define MSTATUS_SXL 0x0000000C00000000
+#define MSTATUS_SBE 0x0000001000000000
+#define MSTATUS_MBE 0x0000002000000000
#define MSTATUS_GVA 0x0000004000000000
#define MSTATUS_MPV 0x0000008000000000
#define MSTATUS64_SD 0x8000000000000000
+#define MSTATUSH_SBE 0x00000010
+#define MSTATUSH_MBE 0x00000020
+
#define SSTATUS_UIE 0x00000001
#define SSTATUS_SIE 0x00000002
#define SSTATUS_UPIE 0x00000010
#define SSTATUS_SPIE 0x00000020
+#define SSTATUS_UBE 0x00000040
#define SSTATUS_SPP 0x00000100
#define SSTATUS_VS 0x00000600
#define SSTATUS_FS 0x00006000
@@ -44,7 +50,7 @@
#define SSTATUS64_SD 0x8000000000000000
#define SSTATUS_VS_MASK (SSTATUS_SIE | SSTATUS_SPIE | \
- SSTATUS_SPP | SSTATUS_SUM | \
+ SSTATUS_SPP | SSTATUS_FS | SSTATUS_SUM | \
SSTATUS_MXR | SSTATUS_UXL)
#define HSTATUS_VSXL 0x300000000