blob: 397194bc930a951c3f07e5d615bc13e3a641ee84 [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -05001From 14e2e74682db3bfcf057688f738fdd842a02ff2d Mon Sep 17 00:00:00 2001
Brad Bishop79641f22019-09-10 07:20:22 -04002From: Carl Hurd <carl@Carls-MacBook-Pro.local>
3Date: Wed, 18 Jul 2018 09:04:32 -0400
4Subject: [PATCH] Fixed missed #ifndef for __mips_soft_float
5
6Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Brad Bishop79641f22019-09-10 07:20:22 -04007Upstream-Status: Submitted [https://github.com/libffi/libffi/pull/442]
Andrew Geissler82c905d2020-04-13 13:39:40 -05008---
Brad Bishop79641f22019-09-10 07:20:22 -04009 src/mips/o32.S | 2 ++
10 1 file changed, 2 insertions(+)
11
12diff --git a/src/mips/o32.S b/src/mips/o32.S
13index 44e74cb..799139b 100644
14--- a/src/mips/o32.S
15+++ b/src/mips/o32.S
16@@ -282,9 +282,11 @@ $LCFI12:
17 li $13, 1 # FFI_O32
18 bne $16, $13, 1f # Skip fp save if FFI_O32_SOFT_FLOAT
19
20+#ifndef __mips_soft_float
21 # Store all possible float/double registers.
22 s.d $f12, FA_0_0_OFF2($fp)
23 s.d $f14, FA_1_0_OFF2($fp)
24+#endif
25 1:
26 # prepare arguments for ffi_closure_mips_inner_O32
27 REG_L a0, 4($15) # cif