Skip to content

Commit c709689

Browse files
XeonacidAlexPeshkoff
authored andcommitted
Add riscv64 define for cds
1 parent 058983c commit c709689

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

extern/libcds/cds/compiler/gcc/compiler_macro.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,11 @@
132132
# define CDS_PROCESSOR__NAME "LOONGARCH"
133133
# define CDS_PROCESSOR__NICK "loongarch"
134134
# define CDS_BUILD_BITS 64
135+
#elif defined(__riscv) && __riscv_xlen == 64
136+
# define CDS_PROCESSOR_ARCH CDS_PROCESSOR_RISCV64
137+
# define CDS_PROCESSOR__NAME "RISC-V64"
138+
# define CDS_PROCESSOR__NICK "riscv64"
139+
# define CDS_BUILD_BITS 64
135140
#else
136141
# if defined(CDS_USE_LIBCDS_ATOMIC)
137142
# error "Libcds does not support atomic implementation for the processor architecture. Try to use C++11-compatible compiler and remove CDS_USE_LIBCDS_ATOMIC flag from compiler command line"

0 commit comments

Comments
 (0)