On Sun, Dec 13, 2020 at 04:23:23PM +0100, Philippe Mathieu-Daudé wrote: > I noticed GCC merged your patch,
By the way, the fairly new -mfix-r5900 option (implied with mipsr5900el) is required for the R5900 hardware short loop erratum[1]. I've made a simple tool to scan ELF objects for problems[2], as it can be tedious to find and analyse everything manually. QEMU doesn't emulate this bug, though. Code built for the R5900 and most other MIPS implementations were previously mutually exclusive, but can nowadays be generic.[3] > and Gentoo too. Did you proceed with your RFC patches "docker: Add gentoo-mipsr5900el-cross image"[4]? There are two new guides on how to build an R5900 cross-compiler on the R5900 Linux wiki: with Gentoo[5] and from sources[6]. Any GNU C library (or any other) patches for n32 etc. can easily be applied onto the standard Gentoo packages, if you want to.[7][8] Fredrik References: [1] https://github.com/frno7/linux/wiki/R5900-short-loop-erratum [2] https://github.com/frno7/linux/tree/ps2-v5.4/tools/r5900check [3] https://lists.nongnu.org/archive/html/qemu-devel/2018-11/msg03661.html [4] https://lists.nongnu.org/archive/html/qemu-devel/2018-11/msg03511.html [5] https://github.com/frno7/linux/wiki/Building-an-R5900-cross-compiler-using-Gentoo-Linux [6] https://github.com/frno7/linux/wiki/Building-an-R5900-cross-compiler-from-sources [7] https://lists.gnu.org/archive/html/qemu-devel/2018-09/msg03944.html [8] https://wiki.gentoo.org/wiki//etc/portage/patches