[strace/strace] [RFC] Add 64-bit LoongArch support (PR #205)

WÁNG Xuěruì notifications at github.com
Sun Dec 26 07:59:28 UTC 2021


This is based on the WIP Linux port still under review, but the port is
re-using asm-generic syscall numbers and parameters, so breakage should
be minimal when the port is eventually merged, if at all.

Currently only the LP64* ABI are implemented in the toolchains, so only
support the host type "loongarch64".

* NEWS: Mention this.
* configure.ac [$host_cpu == loongarch64]: Define LOONGARCH64.
* src/Makefile.am (EXTRA_DIST): Add the new files.
* src/linux/loongarch64/arch_defs_.h: New file.
* src/linux/loongarch64/arch_regs.c: Likewise.
* src/linux/loongarch64/get_error.c: Likewise.
* src/linux/loongarch64/get_scno.c: Likewise.
* src/linux/loongarch64/get_syscall_args.c: Likewise.
* src/linux/loongarch64/ioctls_arch0.h: Likewise.
* src/linux/loongarch64/ioctls_inc0.h: Likewise.
* src/linux/loongarch64/raw_syscall.h: Likewise.
* src/linux/loongarch64/set_error.c: Likewise.
* src/linux/loongarch64/set_scno.c: Likewise.
* src/linux/loongarch64/syscallent.h: Likewise.
* src/xlat/elf_em.in: Add EM_LOONGARCH.
You can view, comment on, or merge this pull request online at:

  https://github.com/strace/strace/pull/205

-- Commit Summary --

  * Add 64-bit LoongArch support

-- File Changes --

    M NEWS (1)
    M configure.ac (5)
    M src/Makefile.am (10)
    A src/linux/loongarch64/arch_defs_.h (8)
    A src/linux/loongarch64/arch_regs.c (11)
    A src/linux/loongarch64/get_error.c (19)
    A src/linux/loongarch64/get_scno.c (14)
    A src/linux/loongarch64/get_syscall_args.c (19)
    A src/linux/loongarch64/ioctls_arch0.h (1)
    A src/linux/loongarch64/ioctls_inc0.h (1)
    A src/linux/loongarch64/raw_syscall.h (29)
    A src/linux/loongarch64/set_error.c (20)
    A src/linux/loongarch64/set_scno.c (15)
    A src/linux/loongarch64/syscallent.h (8)
    M src/xlat/elf_em.in (1)

-- Patch Links --

https://github.com/strace/strace/pull/205.patch
https://github.com/strace/strace/pull/205.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/strace/strace/pull/205
You are receiving this because you are subscribed to this thread.

Message ID: <strace/strace/pull/205 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20211225/519fb188/attachment.htm>


More information about the Strace-devel mailing list