include: sbi: fix CSR define of mseccfg
authorXiang W <wxjstz@126.com>
Fri, 14 Jul 2023 10:08:34 +0000 (18:08 +0800)
committerAnup Patel <anup@brainfault.org>
Mon, 31 Jul 2023 06:21:49 +0000 (11:51 +0530)
Because the CSR names in the spec are mseccfg and mseccfgh. Remove
CSR_MSECCFG_LOWER and CSR_MSECCFG_UPPER and directly define
CSR_MSECCFG and CSR_MSECCFGH.

Signed-off-by: Xiang W <wxjstz@126.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
include/sbi/riscv_encoding.h

index 50071ad3e12e04dd4f4cdaac5d2bd4cbd054f551..776a0835792cad67e58b3c9eae0dff90514877ee 100644 (file)
 #define CSR_MHPMEVENT31H               0x73f
 
 /* Machine Security Configuration CSR (mseccfg) */
-#define CSR_MSECCFG_LOWER              0x747
-#define CSR_MSECCFG_UPPER              0x757
-#define CSR_MSECCFG                    (CSR_MSECCFG_LOWER)
+#define CSR_MSECCFG                    0x747
+#define CSR_MSECCFGH                   0x757
 
 #define MSECCFG_MML_SHIFT              (0)
 #define MSECCFG_MML                    (_UL(1) << MSECCFG_MML_SHIFT)