<feed xmlns='http://www.w3.org/2005/Atom'>
<title>platform_external_libffi/src/mips, branch master</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_external_libffi/'/>
<entry>
<title>Various MIPS Fixes (#425)</title>
<updated>2018-04-19T00:28:23+00:00</updated>
<author>
<name>James Cowgill</name>
<email>jcowgill@users.noreply.github.com</email>
</author>
<published>2018-04-19T00:28:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_external_libffi/commit/?id=159b94e5fd4aa2d88e1b5b389092cefd9472a741'/>
<id>159b94e5fd4aa2d88e1b5b389092cefd9472a741</id>
<content type='text'>
* mips: simplify closure #defines

This commit should have no visible effect.

* mips: add special handling of variadic functions

MIPS requires special handling of variadic functions which pass floating
point arguments:
* In the o32 ABI, all float arguments are passed in integer registers.
* In the n32/n64 ABIs, float arguments after the ellipsis are passed in
  integer registers.

Implement this in libffi. To support this in n32/n64 closures, we need to add
a new mips_nfixedargs field to ffi_cif which will break the libffi ABI.

This fixes the libffi.call/cls_longdouble_va.c test which was failing on
64-bit MIPS.

* mips: align argn for all 64-bit types in o32 closure handler

Ensure that argn is pre-aligned for all 64-bit argument types (including
doubles) and not just integer types.

This fixes closures of the form "f(float, double, &lt;some integer args&gt;)".
Previously the first integer argument would be read from a2 which is garbage
at this point (the float arguments have already "consumed" a0-a3). After
this commit, argn is correctly padded between the "float" and "double"
arguments so that the first integer argument is read from the stack.

Fixes "double f(float,double,int)" test in #371

* mips: do not read from floating point register if returning a struct

In the o32 ABI, the pointer passed in a0 used to return structures
indirectly is treated as the first argument for argument allocation purposes.
This means that it should inhibit floating point registers the same way that
other integer arguments do.

Fixes "Double f(float,Double,double)" test in #371

* mips: fix pointer cast warnings

Fix two pointer cast warnings when compiled on 64-bit mips by casting
through uintptr_t.

Fixes mips64el part of #404
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* mips: simplify closure #defines

This commit should have no visible effect.

* mips: add special handling of variadic functions

MIPS requires special handling of variadic functions which pass floating
point arguments:
* In the o32 ABI, all float arguments are passed in integer registers.
* In the n32/n64 ABIs, float arguments after the ellipsis are passed in
  integer registers.

Implement this in libffi. To support this in n32/n64 closures, we need to add
a new mips_nfixedargs field to ffi_cif which will break the libffi ABI.

This fixes the libffi.call/cls_longdouble_va.c test which was failing on
64-bit MIPS.

* mips: align argn for all 64-bit types in o32 closure handler

Ensure that argn is pre-aligned for all 64-bit argument types (including
doubles) and not just integer types.

This fixes closures of the form "f(float, double, &lt;some integer args&gt;)".
Previously the first integer argument would be read from a2 which is garbage
at this point (the float arguments have already "consumed" a0-a3). After
this commit, argn is correctly padded between the "float" and "double"
arguments so that the first integer argument is read from the stack.

Fixes "double f(float,double,int)" test in #371

* mips: do not read from floating point register if returning a struct

In the o32 ABI, the pointer passed in a0 used to return structures
indirectly is treated as the first argument for argument allocation purposes.
This means that it should inhibit floating point registers the same way that
other integer arguments do.

Fixes "Double f(float,Double,double)" test in #371

* mips: fix pointer cast warnings

Fix two pointer cast warnings when compiled on 64-bit mips by casting
through uintptr_t.

Fixes mips64el part of #404
</pre>
</div>
</content>
</entry>
<entry>
<title>mips/ffi.c: fix encoding for jr on r6</title>
<updated>2018-01-03T02:07:41+00:00</updated>
<author>
<name>YunQiang Su</name>
<email>wzssyqa@gmail.com</email>
</author>
<published>2018-01-03T02:07:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_external_libffi/commit/?id=746dbe3a6a79a41931c03b51df2972be4d5e5028'/>
<id>746dbe3a6a79a41931c03b51df2972be4d5e5028</id>
<content type='text'>
mips/ffi.c: instruction jr has a different encoding for r6</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
mips/ffi.c: instruction jr has a different encoding for r6</pre>
</div>
</content>
</entry>
<entry>
<title>Not set mips on mips r6</title>
<updated>2017-12-10T06:25:01+00:00</updated>
<author>
<name>YunQiang Su</name>
<email>wzssyqa@gmail.com</email>
</author>
<published>2017-12-10T06:25:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_external_libffi/commit/?id=94c102aa69b04337f63498e0e6551fcdce549ae5'/>
<id>94c102aa69b04337f63498e0e6551fcdce549ae5</id>
<content type='text'>
MIPS release changed encodes of some instructions, include ll/sc etc.

if .set mips4 on mips r6, as will generate some wrong encode of some instructions.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
MIPS release changed encodes of some instructions, include ll/sc etc.

if .set mips4 on mips r6, as will generate some wrong encode of some instructions.</pre>
</div>
</content>
</entry>
<entry>
<title>Fix linux detection (closes #303)</title>
<updated>2017-10-27T08:12:56+00:00</updated>
<author>
<name>Yen Chi Hsuan</name>
<email>yan12125@gmail.com</email>
</author>
<published>2017-10-27T08:12:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_external_libffi/commit/?id=9fc9dc535ee7af28f49f86a8ecacb7f575c46ba4'/>
<id>9fc9dc535ee7af28f49f86a8ecacb7f575c46ba4</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Prefix ALIGN macros with FFI_</title>
<updated>2017-04-27T11:22:28+00:00</updated>
<author>
<name>Gregory Pakosz</name>
<email>gregory.pakosz@gmail.com</email>
</author>
<published>2017-04-27T11:20:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_external_libffi/commit/?id=bd72848c7af9302df50a7a11652c77166d17caa8'/>
<id>bd72848c7af9302df50a7a11652c77166d17caa8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>mips: fix MIPS softfloat build issue</title>
<updated>2016-08-15T07:14:54+00:00</updated>
<author>
<name>Yousong Zhou</name>
<email>yszhou4tech@gmail.com</email>
</author>
<published>2016-08-15T07:00:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_external_libffi/commit/?id=7a0d2c83bf2b0422e2d0ed297f847fc1eeb88bb3'/>
<id>7a0d2c83bf2b0422e2d0ed297f847fc1eeb88bb3</id>
<content type='text'>
The patch for o32.S is taken from OpenWrt packages repo 3a7a4bf "libffi:
fix MIPS softfloat build issue with current binutils"

Signed-off-by: Felix Fietkau &lt;nbd@openwrt.org&gt;
Signed-off-by: Yousong Zhou &lt;yszhou4tech@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The patch for o32.S is taken from OpenWrt packages repo 3a7a4bf "libffi:
fix MIPS softfloat build issue with current binutils"

Signed-off-by: Felix Fietkau &lt;nbd@openwrt.org&gt;
Signed-off-by: Yousong Zhou &lt;yszhou4tech@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>fix type error in unwind code</title>
<updated>2015-08-26T01:57:10+00:00</updated>
<author>
<name>Zhang Fuxin</name>
<email>zhangfx@lemote.com</email>
</author>
<published>2015-08-26T01:57:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_external_libffi/commit/?id=505346e18fe20eee7eb69a23a48f6951858c5267'/>
<id>505346e18fe20eee7eb69a23a48f6951858c5267</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>add unwind infor for *go_closure;</title>
<updated>2015-08-20T12:28:13+00:00</updated>
<author>
<name>foxsen</name>
<email>2503799872@qq.com</email>
</author>
<published>2015-08-20T12:28:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_external_libffi/commit/?id=5953c66bd7510b048b332b4e7450f3fb8d687f8b'/>
<id>5953c66bd7510b048b332b4e7450f3fb8d687f8b</id>
<content type='text'>
reorder the labels to make thing more clear
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
reorder the labels to make thing more clear
</pre>
</div>
</content>
</entry>
<entry>
<title>fix O32 stack unwind code</title>
<updated>2015-08-11T04:47:36+00:00</updated>
<author>
<name>Zhang Fuxin</name>
<email>zhangfx@lemote.com</email>
</author>
<published>2015-08-11T04:47:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_external_libffi/commit/?id=f0ecd5d40397d4616ba0bf3e2521da2663b5bd97'/>
<id>f0ecd5d40397d4616ba0bf3e2521da2663b5bd97</id>
<content type='text'>
add missing 1: label
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
add missing 1: label
</pre>
</div>
</content>
</entry>
<entry>
<title>various fixes for go closure support. Now all n64 tests passed.</title>
<updated>2015-08-04T10:25:34+00:00</updated>
<author>
<name>foxsen</name>
<email>2503799872@qq.com</email>
</author>
<published>2015-08-04T10:25:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/mirrors/AOSP/platform_external_libffi/commit/?id=6f0201c803a9a1f0f9b6fd226a42fb8daa223928'/>
<id>6f0201c803a9a1f0f9b6fd226a42fb8daa223928</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
