[PATCH v2 0/5] Add support for LoongArch32
Andreas K. Huettel
dilfridge@gentoo.org
Mon Dec 29 17:31:46 GMT 2025
So, after skimming also the threads on gcc and binutils, I'm not really fundamentally
opposed to still adding LoongArch32 in 2.43. But- we still need patch review (R-B).
My suggestion would be:
* If you manage to get a complete review before we start the machine testing (planned
4/January), let's still add it.
* Otherwise, let's delay it until after the release and add it to master afterwards.
Am Montag, 29. Dezember 2025, 15:25:34 Mitteleuropäische Normalzeit schrieb Adhemerval Zanella Netto:
> 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
> >>>
> >
>
>
--
Andreas K. Hüttel
dilfridge@gentoo.org
Gentoo Linux developer
(council, comrel, toolchain, base-system, perl, libreoffice)
https://wiki.gentoo.org/wiki/User:Dilfridge
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 870 bytes
Desc: This is a digitally signed message part.
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20251229/e57e1c40/attachment.sig>
More information about the Libc-alpha
mailing list