[PATCH 4/5] include: sbi: Few cosmetic changes in riscv_encoding.h
Anup Patel
anup.patel at wdc.com
Sat Aug 22 01:13:09 EDT 2020
This patch does few cosmentic changes to riscv_encoding.h:
1. Place CSR_CYCLE define close to CSR_HPMCOUNTERx defines
2. Rename CSR_HCOUNTERNEN to CSR_HCOUNTEREN
Signed-off-by: Anup Patel <anup.patel at wdc.com>
---
include/sbi/riscv_encoding.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/sbi/riscv_encoding.h b/include/sbi/riscv_encoding.h
index 073261f..bb7eb88 100644
--- a/include/sbi/riscv_encoding.h
+++ b/include/sbi/riscv_encoding.h
@@ -175,7 +175,6 @@
#define CSR_FFLAGS 0x1
#define CSR_FRM 0x2
#define CSR_FCSR 0x3
-#define CSR_CYCLE 0xc00
#define CSR_UIE 0x4
#define CSR_UTVEC 0x5
#define CSR_USCRATCH 0x40
@@ -183,6 +182,7 @@
#define CSR_UCAUSE 0x42
#define CSR_UTVAL 0x43
#define CSR_UIP 0x44
+#define CSR_CYCLE 0xc00
#define CSR_TIME 0xc01
#define CSR_INSTRET 0xc02
#define CSR_HPMCOUNTER3 0xc03
@@ -231,7 +231,7 @@
#define CSR_HIE 0x604
#define CSR_HTIMEDELTA 0x605
#define CSR_HTIMEDELTAH 0x615
-#define CSR_HCOUNTERNEN 0x606
+#define CSR_HCOUNTEREN 0x606
#define CSR_HGEIE 0x607
#define CSR_HTVAL 0x643
#define CSR_HIP 0x644
--
2.25.1
More information about the opensbi
mailing list