diff options
author | Mike Pall <mike> | 2015-12-17 22:42:20 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2015-12-17 22:42:20 +0100 |
commit | 3f5c72421e282a2a4d8614064f13097678b80be1 (patch) | |
tree | ca2ddfad89bad2085b2c0660d5eed67a8d218c8d /src/lj_frame.h | |
parent | 126e55d416ad10dc9265593b73b9f322dbf9d658 (diff) | |
download | luajit-3f5c72421e282a2a4d8614064f13097678b80be1.tar.gz luajit-3f5c72421e282a2a4d8614064f13097678b80be1.tar.bz2 luajit-3f5c72421e282a2a4d8614064f13097678b80be1.zip |
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.
Diffstat (limited to 'src/lj_frame.h')
-rw-r--r-- | src/lj_frame.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lj_frame.h b/src/lj_frame.h index a86c36be..aa3ab20b 100644 --- a/src/lj_frame.h +++ b/src/lj_frame.h | |||
@@ -218,6 +218,7 @@ enum { LJ_CONT_TAILCALL, LJ_CONT_FFI_CALLBACK }; /* Special continuations. */ | |||
218 | #define CFRAME_SHIFT_MULTRES 3 | 218 | #define CFRAME_SHIFT_MULTRES 3 |
219 | #endif | 219 | #endif |
220 | #elif LJ_TARGET_MIPS | 220 | #elif LJ_TARGET_MIPS |
221 | #if LJ_ARCH_HASFPU | ||
221 | #define CFRAME_OFS_ERRF 124 | 222 | #define CFRAME_OFS_ERRF 124 |
222 | #define CFRAME_OFS_NRES 120 | 223 | #define CFRAME_OFS_NRES 120 |
223 | #define CFRAME_OFS_PREV 116 | 224 | #define CFRAME_OFS_PREV 116 |
@@ -227,6 +228,16 @@ enum { LJ_CONT_TAILCALL, LJ_CONT_FFI_CALLBACK }; /* Special continuations. */ | |||
227 | #define CFRAME_SIZE 112 | 228 | #define CFRAME_SIZE 112 |
228 | #define CFRAME_SHIFT_MULTRES 3 | 229 | #define CFRAME_SHIFT_MULTRES 3 |
229 | #else | 230 | #else |
231 | #define CFRAME_OFS_ERRF 100 | ||
232 | #define CFRAME_OFS_NRES 96 | ||
233 | #define CFRAME_OFS_PREV 92 | ||
234 | #define CFRAME_OFS_L 88 | ||
235 | #define CFRAME_OFS_PC 44 | ||
236 | #define CFRAME_OFS_MULTRES 16 | ||
237 | #define CFRAME_SIZE 88 | ||
238 | #define CFRAME_SHIFT_MULTRES 3 | ||
239 | #endif | ||
240 | #else | ||
230 | #error "Missing CFRAME_* definitions for this architecture" | 241 | #error "Missing CFRAME_* definitions for this architecture" |
231 | #endif | 242 | #endif |
232 | 243 | ||