Skip to content

Commit

Permalink
Merge pull request #2559 from liuxiang88/master
Browse files Browse the repository at this point in the history
Add support for LoongArch.
  • Loading branch information
svaarala authored Jan 29, 2024
2 parents 0b9d7bc + 2d528f5 commit 50af773
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions AUTHORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ and agreed to irrevocably license their contributions under the Duktape
* tinywrkb (https://github.com/tinywrkb)
* Christoph Kaser (https://github.com/ChristophKaser)
* Jonne Ransijn <[email protected]>
* Liu Xiang <[email protected]>

Other contributions
===================
Expand Down
4 changes: 4 additions & 0 deletions config/architectures.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ autodetect:
name: RISC-V 64-bit
check: DUK_F_RISCV64
include: architecture_riscv64.h.in
-
name: LOONGARCH 64-bit
check: DUK_F_LOONGARCH64
include: architecture_loongarch64.h.in
-
name: SuperH
check: DUK_F_SUPERH
Expand Down
3 changes: 3 additions & 0 deletions config/architectures/architecture_loongarch64.h.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#define DUK_USE_ARCH_STRING "loongarch64"
#define DUK_USE_BYTEORDER 1
#undef DUK_USE_PACKED_TVAL
4 changes: 4 additions & 0 deletions config/helper-snippets/DUK_F_LOONGARCH.h.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/* LOONGARCH64, https://loongson.github.io/LoongArch-Documentation/LoongArch-ELF-ABI-EN.html */
#if defined(__loongarch64)
#define DUK_F_LOONGARCH64
#endif

0 comments on commit 50af773

Please sign in to comment.