From 58abf3bc741dd735cb7570fb151cfc1a63eb8e33 Mon Sep 17 00:00:00 2001 From: Nils Andreas Svee Date: Tue, 19 Dec 2017 16:04:38 +0100 Subject: main/libffi: add patch fixing compilation issue with mips softfloat Taken from upstream: https://github.com/libffi/libffi/commit/7a0d2c83bf2b0422e2d0ed297f847fc1eeb88bb3 --- main/libffi/mips-softfloat.patch | 158 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 158 insertions(+) create mode 100644 main/libffi/mips-softfloat.patch (limited to 'main/libffi/mips-softfloat.patch') diff --git a/main/libffi/mips-softfloat.patch b/main/libffi/mips-softfloat.patch new file mode 100644 index 0000000000..bf2ac5d34d --- /dev/null +++ b/main/libffi/mips-softfloat.patch @@ -0,0 +1,158 @@ +diff --git a/src/mips/n32.S b/src/mips/n32.S +index b402c88c..edc6905c 100644 +--- a/src/mips/n32.S ++++ b/src/mips/n32.S +@@ -112,6 +112,16 @@ loadregs: + + REG_L t6, 3*FFI_SIZEOF_ARG($fp) # load the flags word into t6. + ++#ifdef __mips_soft_float ++ REG_L a0, 0*FFI_SIZEOF_ARG(t9) ++ REG_L a1, 1*FFI_SIZEOF_ARG(t9) ++ REG_L a2, 2*FFI_SIZEOF_ARG(t9) ++ REG_L a3, 3*FFI_SIZEOF_ARG(t9) ++ REG_L a4, 4*FFI_SIZEOF_ARG(t9) ++ REG_L a5, 5*FFI_SIZEOF_ARG(t9) ++ REG_L a6, 6*FFI_SIZEOF_ARG(t9) ++ REG_L a7, 7*FFI_SIZEOF_ARG(t9) ++#else + and t4, t6, ((1<