0003-libffi-enable-hardfloat-in-the-MIPS-assembly-code.patch 1.1 KB

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