• Bug#1067890: luajit: Add support for LoongArch64 (1/10)

    From Xiaolin Zhao@21:1/5 to All on Thu Mar 28 14:10:01 2024
    This is a multi-part message in MIME format.
    Package: luajit
    Version: 2.1.0+openresty20231117-2
    Severity: wishlist
    Tags: patch
    User: debian-loongarch@lists.debian.org
    Usertags: loong64


    Hi,

    We added support for the LoongArch64 architecture in luajit-2.1.0,

    which passed the LuaJIT-test-cleanup test set and was successfully used
    in openresty, sysbench and other softwares.

    --
    thanks,
    Xiaolin Zhao


    From 231ff652c227f4ae08a51b8feba0364553c2cbde Mon Sep 17 00:00:00 2001
    From: Xiaolin Zhao <zhaoxiaolin@loongson.cn>
    Date: Thu, 28 Mar 2024 07:37:07 +0000
    Subject: [PATCH] Add support for LoongArch64

    ---
    Makefile | 1 +
    dynasm/dasm_loongarch64.h | 443 ++++
    dynasm/dasm_loongarch64.lua | 979 ++++++++
    src/Makefile | 10 +-
    src/host/buildvm.c | 2 +
    src/host/buildvm_asm.c | 9 +
    src/jit/bcsave.lua | 1 +
    src/jit/dis_loongarch64.lua | 697 ++++++
    src/lib_jit.c | 2 +
    src/lj_arch.h | 32 +
    src/lj_asm.c | 4 +
    src/lj_asm_loongarch64.h | 1990 +++++++++++++++
    src/lj_ccall.c | 152 +-
    src/lj_ccall.h | 17 +-
    src/lj_ccallback.c | 58 +-
    src/lj_emit_loongarch64.h | 306 +++
    src/lj_frame.h | 9 +
    src/lj_gdbjit.c | 12 +
    src/lj_jit.h | 15 +-
    src/lj_target.h | 4 +-
    src/lj_target_loongarch64.h | 313 +++
    src/lj_trace.c | 6 +-
    src/lj_vmmath.c | 3 +-
    src/vm_loongarch64.dasc | 4625 +++++++++++++++++++++++++++++++++++
    24 file