Skip to content

Commit

Permalink
Merge pull request #356 from Zeno-sole/master
Browse files Browse the repository at this point in the history
add loongarch64 riscv64 Architecture support
  • Loading branch information
idealvin authored Mar 5, 2024
2 parents d7e40f5 + acb9328 commit c3d07b3
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/co/context/arch.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,19 @@
defined(__mips__)
#define ARCH_MIPS

#elif defined(loongarch) || \
defined(_loongarch) || \
defined(_loongarch64) || \
defined(__loongarch__)
#define ARCH_LOONGARCH

#elif defined(riscv) || \
defined(_riscv) || \
defined(_riscv64) || \
defined(__riscv__)
#define ARCH_RISCV


#else
#error unknown arch
#endif
Expand Down Expand Up @@ -115,6 +128,8 @@
defined(__PPC64__) || \
defined(__ppc64__) || \
defined(__powerpc64__) || \
defined(__loongarch64) || \
defined(__riscv64) || \
defined(_M_X64) || \
defined(_M_AMD64) || \
defined(_M_IA64) || \
Expand Down

0 comments on commit c3d07b3

Please sign in to comment.