diff options
author | Tim Newsome <tim@sifive.com> | 2017-12-27 00:44:13 -0800 |
---|---|---|
committer | Andrew Waterman <aswaterman@gmail.com> | 2017-12-27 17:44:13 +0900 |
commit | 25881d8a221393cfd996ec074d8003ef31bfc5a6 (patch) | |
tree | 635bbb44eac971fce8ac731256a75479dcc8169f /encoding.h | |
parent | 7c3db437d8d3b6961f8eb2931792eaea1c469ff3 (diff) | |
download | riscv-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.
Diffstat (limited to 'encoding.h')
-rw-r--r-- | encoding.h | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -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 |