Skip to content

Commit

Permalink
Add support for sw_64
Browse files Browse the repository at this point in the history
  • Loading branch information
wangling12 committed Dec 25, 2023
1 parent 059f19e commit be75687
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/tbox/prefix/arch.h
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,9 @@
# else
# error unknown version of LoongArch, please feedback to us.
# endif
#elif defined(__sw_64)
# define TB_ARCH_SW_64
# define TB_ARCH_STRING "sw_64"
#elif defined(__riscv)
# define TB_ARCH_RISCV
# if defined(__riscv_xlen) && __riscv_xlen == 64
Expand Down
1 change: 1 addition & 0 deletions src/tbox/prefix/cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
|| defined(__PPC64__) \
|| defined(__ppc64__) \
|| defined(__powerpc64__) \
|| defined(__sw_64) \
|| defined(__loongarch64) \
|| defined(_M_X64) \
|| defined(_M_AMD64) \
Expand Down

0 comments on commit be75687

Please sign in to comment.