summaryrefslogtreecommitdiff
path: root/system/libffi/powerpc-fixes.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2023-03-31 02:14:00 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2023-04-01 21:20:03 -0500
commitca543e8ec92cd508a6d596054474a180c462842d (patch)
tree104d2f5104cdee5f71226c9b08ec0363a4d0670e /system/libffi/powerpc-fixes.patch
parent57fcbe5a86ecd7f69794520d2b2aecadb4df3417 (diff)
downloadpackages-ca543e8ec92cd508a6d596054474a180c462842d.tar.gz
packages-ca543e8ec92cd508a6d596054474a180c462842d.tar.bz2
packages-ca543e8ec92cd508a6d596054474a180c462842d.tar.xz
packages-ca543e8ec92cd508a6d596054474a180c462842d.zip
system/libffi: Update to 3.4.4
Diffstat (limited to 'system/libffi/powerpc-fixes.patch')
-rw-r--r--system/libffi/powerpc-fixes.patch79
1 files changed, 0 insertions, 79 deletions
diff --git a/system/libffi/powerpc-fixes.patch b/system/libffi/powerpc-fixes.patch
deleted file mode 100644
index e62ae32d1..000000000
--- a/system/libffi/powerpc-fixes.patch
+++ /dev/null
@@ -1,79 +0,0 @@
-From bf6946074b948540e4147154041ea244bafb38c4 Mon Sep 17 00:00:00 2001
-From: Samuel Holland <samuel@sholland.org>
-Date: Sat, 13 Oct 2018 01:14:03 +0000
-Subject: [PATCH] powerpc: Fix alignment after float structs
-
----
- src/powerpc/ffi_linux64.c | 8 +++-----
- 1 file changed, 3 insertions(+), 5 deletions(-)
-
-diff --git a/src/powerpc/ffi_linux64.c b/src/powerpc/ffi_linux64.c
-index 2534ecf3..197a270d 100644
---- a/src/powerpc/ffi_linux64.c
-+++ b/src/powerpc/ffi_linux64.c
-@@ -580,11 +580,9 @@ ffi_prep_args64 (extended_cif *ecif, unsigned long *const stack)
- fparg_count++;
- }
- while (--elnum != 0);
-- if ((next_arg.p & 3) != 0)
-- {
-- if (++next_arg.f == gpr_end.f)
-- next_arg.f = rest.f;
-- }
-+ if ((next_arg.p & 7) != 0)
-+ if (++next_arg.f == gpr_end.f)
-+ next_arg.f = rest.f;
- }
- else
- do
-From 49a1bbadfa0b5ad5c373271c8ba7a5d8911a85d9 Mon Sep 17 00:00:00 2001
-From: Samuel Holland <samuel@sholland.org>
-Date: Sat, 13 Oct 2018 01:14:20 +0000
-Subject: [PATCH] powerpc: Don't pad rvalues copied from FP regs
-
----
- src/powerpc/ffi.c | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
-diff --git a/src/powerpc/ffi.c b/src/powerpc/ffi.c
-index 7eb543e4..94a11700 100644
---- a/src/powerpc/ffi.c
-+++ b/src/powerpc/ffi.c
-@@ -121,8 +121,9 @@ ffi_call_int (ffi_cif *cif,
- # endif
- /* The SYSV ABI returns a structure of up to 8 bytes in size
- left-padded in r3/r4, and the ELFv2 ABI similarly returns a
-- structure of up to 8 bytes in size left-padded in r3. */
-- if (rsize <= 8)
-+ structure of up to 8 bytes in size left-padded in r3. But
-+ note that a structure of a single float is not paddded. */
-+ if (rsize <= 8 && (cif->flags & FLAG_RETURNS_FP) == 0)
- memcpy (rvalue, (char *) smst_buffer + 8 - rsize, rsize);
- else
- #endif
-From b0c598d5d6b653a3ea87a2d04afb6b35441e5f7e Mon Sep 17 00:00:00 2001
-From: Samuel Holland <samuel@sholland.org>
-Date: Sat, 13 Oct 2018 01:14:58 +0000
-Subject: [PATCH] powerpc: Add missing check in struct alignment
-
----
- src/powerpc/ffi_linux64.c | 6 +++++-
- 1 file changed, 5 insertions(+), 1 deletion(-)
-
-diff --git a/src/powerpc/ffi_linux64.c b/src/powerpc/ffi_linux64.c
-index 197a270d..d755c712 100644
---- a/src/powerpc/ffi_linux64.c
-+++ b/src/powerpc/ffi_linux64.c
-@@ -536,7 +536,11 @@ ffi_prep_args64 (extended_cif *ecif, unsigned long *const stack)
- if (align > 16)
- align = 16;
- if (align > 1)
-- next_arg.p = ALIGN (next_arg.p, align);
-+ {
-+ next_arg.p = ALIGN (next_arg.p, align);
-+ if (next_arg.ul == gpr_end.ul)
-+ next_arg.ul = rest.ul;
-+ }
- }
- #if _CALL_ELF == 2
- elt = discover_homogeneous_aggregate (*ptr, &elnum);