aboutsummaryrefslogtreecommitdiffstats
path: root/src/mips
diff options
context:
space:
mode:
authorYunQiang Su <wzssyqa@gmail.com>2017-12-10 14:25:01 +0800
committerGitHub <noreply@github.com>2017-12-10 14:25:01 +0800
commit94c102aa69b04337f63498e0e6551fcdce549ae5 (patch)
tree344b097d58990c26fa0362af74c56671a7173c36 /src/mips
parent716bfd83177689e2244c4707bd513003cff92c68 (diff)
downloadplatform_external_libffi-94c102aa69b04337f63498e0e6551fcdce549ae5.tar.gz
platform_external_libffi-94c102aa69b04337f63498e0e6551fcdce549ae5.tar.bz2
platform_external_libffi-94c102aa69b04337f63498e0e6551fcdce549ae5.zip
Not set mips on mips r6
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.
Diffstat (limited to 'src/mips')
-rw-r--r--src/mips/n32.S2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mips/n32.S b/src/mips/n32.S
index edc6905..1a940b6 100644
--- a/src/mips/n32.S
+++ b/src/mips/n32.S
@@ -47,7 +47,9 @@
#ifdef __GNUC__
.abicalls
#endif
+#if !defined(__mips_isa_rev) || (__mips_isa_rev<6)
.set mips4
+#endif
.text
.align 2
.globl ffi_call_N32