From 485cfc1b4850cce1b6fe7d3d8ac10aedec25d573 Mon Sep 17 00:00:00 2001 From: Moritz Imfeld Date: Sun, 14 Jul 2024 11:12:59 +0200 Subject: [PATCH] Fix MSTATUS_VS encoding Co-authored-by: Vincenzo Maisto Signed-off-by: Moritz Imfeld --- include/sbi/riscv_encoding.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/sbi/riscv_encoding.h b/include/sbi/riscv_encoding.h index e1d0b463c6..ae82a7732e 100644 --- a/include/sbi/riscv_encoding.h +++ b/include/sbi/riscv_encoding.h @@ -25,7 +25,7 @@ #define MSTATUS_MPP (_UL(3) << MSTATUS_MPP_SHIFT) #define MSTATUS_FS _UL(0x00006000) #define MSTATUS_XS _UL(0x00018000) -#define MSTATUS_VS _UL(0x01800000) +#define MSTATUS_VS _UL(0x00000600) #define MSTATUS_MPRV _UL(0x00020000) #define MSTATUS_SUM _UL(0x00040000) #define MSTATUS_MXR _UL(0x00080000)