Make encoding.h pass style guide.
There's a manual step in commenting this out, but this file changes very rarely. Change-Id: I332d6490940ecc81e18c3b112a7ba415331b9c86riscv-compliance-dev
parent
b5dae238a1
commit
ba2174249d
|
@ -191,6 +191,7 @@
|
|||
|
||||
#ifdef __GNUC__
|
||||
|
||||
/*
|
||||
#define read_csr(reg) ({ unsigned long __tmp; \
|
||||
asm volatile ("csrr %0, " #reg : "=r"(__tmp)); \
|
||||
__tmp; })
|
||||
|
@ -209,6 +210,7 @@
|
|||
#define clear_csr(reg, bit) ({ unsigned long __tmp; \
|
||||
asm volatile ("csrrc %0, " #reg ", %1" : "=r"(__tmp) : "rK"(bit)); \
|
||||
__tmp; })
|
||||
*/
|
||||
|
||||
#define rdtime() read_csr(time)
|
||||
#define rdcycle() read_csr(cycle)
|
||||
|
|
Loading…
Reference in New Issue