Browse Source

Merge pull request #2559 from liuxiang88/master

Add support for LoongArch.
master
Sami Vaarala 9 months ago
committed by GitHub
parent
commit
50af773b1b
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      AUTHORS.rst
  2. 4
      config/architectures.yaml
  3. 3
      config/architectures/architecture_loongarch64.h.in
  4. 4
      config/helper-snippets/DUK_F_LOONGARCH.h.in

1
AUTHORS.rst

@ -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 <jonne@yyny.dev>
* Liu Xiang <liuxiang@loongson.cn>
Other contributions
===================

4
config/architectures.yaml

@ -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

3
config/architectures/architecture_loongarch64.h.in

@ -0,0 +1,3 @@
#define DUK_USE_ARCH_STRING "loongarch64"
#define DUK_USE_BYTEORDER 1
#undef DUK_USE_PACKED_TVAL

4
config/helper-snippets/DUK_F_LOONGARCH.h.in

@ -0,0 +1,4 @@
/* LOONGARCH64, https://loongson.github.io/LoongArch-Documentation/LoongArch-ELF-ABI-EN.html */
#if defined(__loongarch64)
#define DUK_F_LOONGARCH64
#endif
Loading…
Cancel
Save