[PATCH v2 0/5] Add support for LoongArch32
Adhemerval Zanella Netto
adhemerval.zanella@linaro.org
Mon Dec 29 14:25:34 GMT 2025
I think it was sent too late, considering the last version (v4). The patchset
is not large, most of the additions is the abilist files; so I think it should
be feasible to review (assuming some would take this work for 2.43).
Andreas, do you prefer to postpone to 2.44 or should it be ok for 2.43?
On 25/12/25 05:06, mengqinggang wrote:
> I send a v4 patch series for LoongArch32.
> The binutils, gcc and kernel upstream master branch have add LoongArch32 support.
> Do we need to wait for them release a new version?
>
>
> 在 2025/12/22 20:22, Andreas K. Huettel 写道:
>> Am Donnerstag, 18. Dezember 2025, 13:30:06 Mitteleuropäische Normalzeit schrieb mengqinggang:
>>> Add support for LoongArch32(LA32) with ilp32d abi and
>>> LoongArch32 Reduced(LA32R) with ilp32s abi.
>> Do you intend to have this included in 2.43 ?
>>
>> I would personally rather recommend we add it at earliest immediately after
>> the realease.
>>
>>> The gcc and binutils master branch have added LA32 support.
>>>
>>> The kernel has added basic LA32 support[6]. But build infrastructures
>>> of LoongArch32 are not enabled yet, because we need to adjust
>>> irqchip drivers and wait for GNU toolchain be upstream first.
>>>
>>> You can build toolchains by script/build-many-glibcs.py:
>>> LA32 ilp32d abi:
>>> build-many-glibcs.py -j128 --keep all . compilers loongarch32-linux-gnu
>>> LA32R ilp32s abi:
>>> build-many-glibcs.py -j128 --keep all . compilers loongarch32-linux-gnusf
>>>
>>> LA32 tested by qemu-user and qemu-system. Most testcases passed except for several
>>> about gdb and math-fenv on soft float abi.
>>> Tested on LA64 with no regression.
>>>
>>> These patches are based on Jiajie Chen's previous work[1].
>>> A Chinese LA32R instruction set manual is here[2].
>>> There is currently no separate LA32 instruction set manual.
>>> The LA64 instruction set manual[3] specifies the instructions available in LA32.
>>> A LA32 linux system based on qemu user is here[4].
>>> A LA32 linux system based on qemu system is here[5].
>>>
>>> [1] https://github.com/jiegec/glibc/tree/loongarch32
>>> [2] https://www.loongson.cn/uploads/images/2025032109211238668.%E9%BE%99%E6%9E%B6%E6%9E%8432%E4%BD%8D%E7%B2%BE%E7%AE%80%E7%89%88%E5%8F%82%E8%80%83%E6%89%8B%E5%86%8C_r1p04.pdf
>>> [3] https://github.com/loongson/LoongArch-Documentation/blob/main/docs/LoongArch-Vol1-EN/basic-integer-instructions/overview-of-basic-integer-instructions.adoc
>>> [4] https://github.com/sunhaiyong1978/CLFS-for-LoongArch32/blob/main/Qemu_For_LoongArch32-Simple.md
>>> [5] https://github.com/sunhaiyong1978/CLFS-for-LoongArch32/blob/main/Qemu_System_For_LoongArch32-Simple.md
>>> [6] https://lore.kernel.org/loongarch/176559874944.2388135.2320307195215147125.pr-tracker-bot@kernel.org/T/#t
>>>
>
More information about the Libc-alpha
mailing list