1From 48bc37fabbc685b1e3293055bd33ca66c619305e Mon Sep 17 00:00:00 2001
2From: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
3Date: Wed, 13 Jan 2016 14:49:59 +0000
4Subject: [PATCH] libffi: enable hardfloat in the MIPS assembly code
5
6This way it will be possible to build it for soft-float. This is only a
7temporary fix. The package needs to be fixed properly.
8
9Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
10[Update for 3.3-rc0]
11Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
12---
13 src/mips/n32.S | 1 +
14 src/mips/o32.S | 1 +
15 2 files changed, 2 insertions(+)
16
17diff --git a/src/mips/n32.S b/src/mips/n32.S
18index c6985d3..dc842d5 100644
19--- a/src/mips/n32.S
20+++ b/src/mips/n32.S
21@@ -44,6 +44,7 @@
22 #endif
23 #if !defined(__mips_isa_rev) || (__mips_isa_rev<6)
24 	.set mips4
25 #endif
26+	.set hardfloat
27 	.text
28 	.align	2
29 	.globl	ffi_call_N32
30diff --git a/src/mips/o32.S b/src/mips/o32.S
31index eb27981..b653daf 100644
32--- a/src/mips/o32.S
33+++ b/src/mips/o32.S
34@@ -42,6 +42,7 @@
35 #define RA_OFF		(SIZEOF_FRAME - 1 * FFI_SIZEOF_ARG)
36
37 	.abicalls
38+	.set hardfloat
39 	.text
40 	.align	2
41 	.globl	ffi_call_O32
42--
432.4.10
44
45