Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 1 | From 14e2e74682db3bfcf057688f738fdd842a02ff2d Mon Sep 17 00:00:00 2001 |
Brad Bishop | 79641f2 | 2019-09-10 07:20:22 -0400 | [diff] [blame] | 2 | From: Carl Hurd <carl@Carls-MacBook-Pro.local> |
| 3 | Date: Wed, 18 Jul 2018 09:04:32 -0400 |
| 4 | Subject: [PATCH] Fixed missed #ifndef for __mips_soft_float |
| 5 | |
| 6 | Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> |
Brad Bishop | 79641f2 | 2019-09-10 07:20:22 -0400 | [diff] [blame] | 7 | Upstream-Status: Submitted [https://github.com/libffi/libffi/pull/442] |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 8 | --- |
Brad Bishop | 79641f2 | 2019-09-10 07:20:22 -0400 | [diff] [blame] | 9 | src/mips/o32.S | 2 ++ |
| 10 | 1 file changed, 2 insertions(+) |
| 11 | |
| 12 | diff --git a/src/mips/o32.S b/src/mips/o32.S |
| 13 | index 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 |