diff options
author | Mike Pall <mike> | 2012-01-23 22:20:28 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2012-01-23 22:24:11 +0100 |
commit | 5bed11e6b4c2bbf0cbec0f00efe998289236b217 (patch) | |
tree | 5ed76367d5157df37b358a5874d34a21dc7d60b0 /src/lj_ccall.h | |
parent | 7d2774e4c5ee7c649ccb41f75bfbbb1e7f370a96 (diff) | |
download | luajit-5bed11e6b4c2bbf0cbec0f00efe998289236b217.tar.gz luajit-5bed11e6b4c2bbf0cbec0f00efe998289236b217.tar.bz2 luajit-5bed11e6b4c2bbf0cbec0f00efe998289236b217.zip |
MIPS: Add interpreter. Enable MIPS build rules.
Diffstat (limited to 'src/lj_ccall.h')
-rw-r--r-- | src/lj_ccall.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/lj_ccall.h b/src/lj_ccall.h index 0641625f..c94b6193 100644 --- a/src/lj_ccall.h +++ b/src/lj_ccall.h | |||
@@ -80,6 +80,21 @@ typedef double FPRArg; | |||
80 | 80 | ||
81 | typedef intptr_t GPRArg; | 81 | typedef intptr_t GPRArg; |
82 | 82 | ||
83 | #elif LJ_TARGET_MIPS | ||
84 | |||
85 | #define CCALL_NARG_GPR 4 | ||
86 | #define CCALL_NARG_FPR 2 | ||
87 | #define CCALL_NRET_GPR 2 | ||
88 | #define CCALL_NRET_FPR 2 | ||
89 | #define CCALL_SPS_EXTRA 7 | ||
90 | #define CCALL_SPS_FREE 1 | ||
91 | |||
92 | typedef intptr_t GPRArg; | ||
93 | typedef union FPRArg { | ||
94 | double d; | ||
95 | struct { LJ_ENDIAN_LOHI(float f; , float g;) }; | ||
96 | } FPRArg; | ||
97 | |||
83 | #else | 98 | #else |
84 | #error "Missing calling convention definitions for this architecture" | 99 | #error "Missing calling convention definitions for this architecture" |
85 | #endif | 100 | #endif |