void-packages/srcpkgs/libffi/patches/mips-soft-float.patch

16 lines
440 B
Diff

--- src/mips/o32.S 2019-10-31 15:49:54.000000000 +0100
+++ src/mips/o32.S 2020-03-24 19:38:35.794316204 +0100
@@ -281,10 +281,11 @@
li $13, 1 # FFI_O32
bne $16, $13, 1f # Skip fp save if FFI_O32_SOFT_FLOAT
-
+#ifndef __mips_soft_float
# Store all possible float/double registers.
s.d $f12, FA_0_0_OFF2($fp)
s.d $f14, FA_1_0_OFF2($fp)
+#endif
1:
# prepare arguments for ffi_closure_mips_inner_O32
REG_L a0, 4($15) # cif