summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiang W <[email protected]>2023-07-14 18:08:34 +0800
committerAnup Patel <[email protected]>2023-07-31 11:51:49 +0530
commit5e20d25f19472e98e53f24fe9183ded6de04bce9 (patch)
tree1513f5b2c83ced1146a1de17e24862b5412b9b98
parente05a9cfefcf33e9fffb04f091ed371df525f594c (diff)
include: sbi: fix CSR define of mseccfg
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 <[email protected]> Reviewed-by: Anup Patel <[email protected]>
-rw-r--r--include/sbi/riscv_encoding.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/sbi/riscv_encoding.h b/include/sbi/riscv_encoding.h
index 50071ad3..776a0835 100644
--- a/include/sbi/riscv_encoding.h
+++ b/include/sbi/riscv_encoding.h
@@ -664,9 +664,8 @@
#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)