From 40927bd3e1e7c6007025ba10854fd8a0664e47df Mon Sep 17 00:00:00 2001 From: Heiher Date: Tue, 21 Jan 2014 23:18:27 +0800 Subject: [PATCH] Fix call floating point va function I'm not sure floating-point arguments in GPR or FPR before calling variable number arguments function. so, load all arguments to GPR and FPR. --- ChangeLog | 4 ++++ src/mips/n32.S | 32 ++++++++------------------------ 2 files changed, 12 insertions(+), 24 deletions(-) diff --git a/ChangeLog b/ChangeLog index 277deedd..877199b0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2014-02-09 Heiher + + * src/mips/n32.S: Fix call floating point va function. + 2013-11-21 Anthony Green * configure, Makefile.in, include/Makefile.in, include/ffi.h.in, diff --git a/src/mips/n32.S b/src/mips/n32.S index ff4bbce1..c6985d30 100644 --- a/src/mips/n32.S +++ b/src/mips/n32.S @@ -108,10 +108,8 @@ loadregs: REG_L t6, 3*FFI_SIZEOF_ARG($fp) # load the flags word into t6. and t4, t6, ((1<