Mercurial > pub > dyncall > dyncall
diff dyncallback/dyncall_args_mips.h @ 104:dbca6763f2be
- complete, working mips o32 callback (using hardware fp); fixes error from last commit, which ignored first 2 float args
* currently tested on little endian, only
* todo update, manual update, cleanups
author | cslag |
---|---|
date | Thu, 09 Jun 2016 15:13:53 +0200 |
parents | b7a9b524f0c3 |
children | 9e677d4c0b6b |
line wrap: on
line diff
--- a/dyncallback/dyncall_args_mips.h Wed Jun 08 02:27:12 2016 +0200 +++ b/dyncallback/dyncall_args_mips.h Thu Jun 09 15:13:53 2016 +0200 @@ -29,16 +29,13 @@ #include "dyncall_args.h" -#if !defined(DC__ABI_MIPS_O32) -# define DCARGS_MIPS_PARAM_REGS 4 -#else -# define DCARGS_MIPS_PARAM_REGS 8 -#endif - struct DCArgs { /* Don't change order! */ -#if !defined(DC__ABI_MIPS_O32) +#if defined(DC__ABI_MIPS_O32) + int freg_count; +#else +# define DCARGS_MIPS_PARAM_REGS 8 struct { int i; float f; } reg_data[DCARGS_MIPS_PARAM_REGS]; struct { int i; int f; } reg_count; #endif