diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2019-10-23 17:53:14 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2019-10-23 17:53:14 +0000 |
commit | 53265afff0dd5ba32642c444583e7d2bb25ca2e9 (patch) | |
tree | 62c6dca85a7f7ec8c3adb959c8d512cb140b705a /runtime/src/kmp_platform.h | |
parent | 1756886afc900127720de68088f9adff3108ef61 (diff) |
Notes
Diffstat (limited to 'runtime/src/kmp_platform.h')
-rw-r--r-- | runtime/src/kmp_platform.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/runtime/src/kmp_platform.h b/runtime/src/kmp_platform.h index e4f2e06b962ce..3238deafc01be 100644 --- a/runtime/src/kmp_platform.h +++ b/runtime/src/kmp_platform.h @@ -98,6 +98,7 @@ #define KMP_ARCH_PPC64 (KMP_ARCH_PPC64_LE || KMP_ARCH_PPC64_BE) #define KMP_ARCH_MIPS 0 #define KMP_ARCH_MIPS64 0 +#define KMP_ARCH_RISCV64 0 #if KMP_OS_WINDOWS #if defined(_M_AMD64) || defined(__x86_64) @@ -135,6 +136,9 @@ #undef KMP_ARCH_MIPS #define KMP_ARCH_MIPS 1 #endif +#elif defined __riscv && __riscv_xlen == 64 +#undef KMP_ARCH_RISCV64 +#define KMP_ARCH_RISCV64 1 #endif #endif @@ -199,7 +203,7 @@ // TODO: Fixme - This is clever, but really fugly #if (1 != \ KMP_ARCH_X86 + KMP_ARCH_X86_64 + KMP_ARCH_ARM + KMP_ARCH_PPC64 + \ - KMP_ARCH_AARCH64 + KMP_ARCH_MIPS + KMP_ARCH_MIPS64) + KMP_ARCH_AARCH64 + KMP_ARCH_MIPS + KMP_ARCH_MIPS64 + KMP_ARCH_RISCV64) #error Unknown or unsupported architecture #endif |