MIPS soft-float, part 1: Add soft-float support to interpreter.

Contributed by Djordje Kovacevic and Stefan Pejic from RT-RK.com.
Sponsored by Cisco Systems, Inc.
This commit is contained in:
Mike Pall
2015-12-17 22:42:20 +01:00
parent 126e55d416
commit 3f5c72421e
6 changed files with 1191 additions and 226 deletions

View File

@@ -218,6 +218,7 @@ enum { LJ_CONT_TAILCALL, LJ_CONT_FFI_CALLBACK }; /* Special continuations. */
#define CFRAME_SHIFT_MULTRES 3
#endif
#elif LJ_TARGET_MIPS
#if LJ_ARCH_HASFPU
#define CFRAME_OFS_ERRF 124
#define CFRAME_OFS_NRES 120
#define CFRAME_OFS_PREV 116
@@ -227,6 +228,16 @@ enum { LJ_CONT_TAILCALL, LJ_CONT_FFI_CALLBACK }; /* Special continuations. */
#define CFRAME_SIZE 112
#define CFRAME_SHIFT_MULTRES 3
#else
#define CFRAME_OFS_ERRF 100
#define CFRAME_OFS_NRES 96
#define CFRAME_OFS_PREV 92
#define CFRAME_OFS_L 88
#define CFRAME_OFS_PC 44
#define CFRAME_OFS_MULTRES 16
#define CFRAME_SIZE 88
#define CFRAME_SHIFT_MULTRES 3
#endif
#else
#error "Missing CFRAME_* definitions for this architecture"
#endif