[PATCH] mips: implement __udivdi3

2023-11-06 Thread Sachsensolar GmbH
From: Linus Walleij Squashfs wasn't compiling because the lldiv() directives turn into __udivdi3 and we are using private libgcc. After this squashfs compiles for MIPS. Signed-off-by: Linus Walleij Signed-off-by: Daniel Schwierzeck --- Linus, this is the updated and optimized version of your

[PATCH] mips: fix change_k0_cca()

2023-11-06 Thread Sachsensolar GmbH
From: Daniel Schwierzeck The intention of change_k0_cca() is to read the C0.Config register into register $t0, update $t0 with the new cache coherency mode passed in $a0 and write back $t0 to C0.Config. With MIPS32 R2 or later instruction sets, this can be achieved with a single instruction with