aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2017-12-27 00:44:13 -0800
committerAndrew Waterman <aswaterman@gmail.com>2017-12-27 17:44:13 +0900
commit25881d8a221393cfd996ec074d8003ef31bfc5a6 (patch)
tree635bbb44eac971fce8ac731256a75479dcc8169f
parent7c3db437d8d3b6961f8eb2931792eaea1c469ff3 (diff)
downloadriscv-opcodes-25881d8a221393cfd996ec074d8003ef31bfc5a6.zip
riscv-opcodes-25881d8a221393cfd996ec074d8003ef31bfc5a6.tar.gz
riscv-opcodes-25881d8a221393cfd996ec074d8003ef31bfc5a6.tar.bz2
Use old C style comments. (#18)
This improves the chance we can use this file with older, pickier compilers. Also it makes the OpenOCD patch check script happier.
-rw-r--r--encoding.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/encoding.h b/encoding.h
index c688983..a65ca6e 100644
--- a/encoding.h
+++ b/encoding.h
@@ -1,4 +1,4 @@
-// See LICENSE for license details.
+/* See LICENSE for license details. */
#ifndef RISCV_CSR_ENCODING_H
#define RISCV_CSR_ENCODING_H
@@ -156,16 +156,16 @@
#define EXT_IO_BASE 0x40000000
#define DRAM_BASE 0x80000000
-// page table entry (PTE) fields
-#define PTE_V 0x001 // Valid
-#define PTE_R 0x002 // Read
-#define PTE_W 0x004 // Write
-#define PTE_X 0x008 // Execute
-#define PTE_U 0x010 // User
-#define PTE_G 0x020 // Global
-#define PTE_A 0x040 // Accessed
-#define PTE_D 0x080 // Dirty
-#define PTE_SOFT 0x300 // Reserved for Software
+/* page table entry (PTE) fields */
+#define PTE_V 0x001 /* Valid */
+#define PTE_R 0x002 /* Read */
+#define PTE_W 0x004 /* Write */
+#define PTE_X 0x008 /* Execute */
+#define PTE_U 0x010 /* User */
+#define PTE_G 0x020 /* Global */
+#define PTE_A 0x040 /* Accessed */
+#define PTE_D 0x080 /* Dirty */
+#define PTE_SOFT 0x300 /* Reserved for Software */
#define PTE_PPN_SHIFT 10