8319440: RISC-V: jdk can't be built with clang due to register keyword
Reviewed-by: fyang
This commit is contained in:
parent
524da141e7
commit
a4bd9e4d0b
@ -74,7 +74,7 @@
|
||||
|
||||
#define read_csr(csr) \
|
||||
({ \
|
||||
register unsigned long __v; \
|
||||
unsigned long __v; \
|
||||
__asm__ __volatile__ ("csrr %0, %1" \
|
||||
: "=r" (__v) \
|
||||
: "i" (csr) \
|
||||
|
Loading…
Reference in New Issue
Block a user