From f7f2b33f9757e8f5180f49852793905ddba625d9 Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Fri, 8 Jan 2021 16:27:13 -0800 Subject: Update mstatus/sstatus fields for hypervisor v0.6 --- encoding.h | 10 ++++++++-- 1 file 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 -- cgit v1.1