summaryrefslogtreecommitdiff
path: root/src/lj_arch.h
diff options
context:
space:
mode:
authorMike Pall <mike>2015-12-17 22:42:20 +0100
committerMike Pall <mike>2015-12-17 22:42:20 +0100
commit3f5c72421e282a2a4d8614064f13097678b80be1 (patch)
treeca2ddfad89bad2085b2c0660d5eed67a8d218c8d /src/lj_arch.h
parent126e55d416ad10dc9265593b73b9f322dbf9d658 (diff)
downloadluajit-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_arch.h')
-rw-r--r--src/lj_arch.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/lj_arch.h b/src/lj_arch.h
index c66a11c8..a114bdda 100644
--- a/src/lj_arch.h
+++ b/src/lj_arch.h
@@ -304,6 +304,13 @@
304#define LJ_TARGET_UNIFYROT 2 /* Want only IR_BROR. */ 304#define LJ_TARGET_UNIFYROT 2 /* Want only IR_BROR. */
305#define LJ_ARCH_NUMMODE LJ_NUMMODE_SINGLE 305#define LJ_ARCH_NUMMODE LJ_NUMMODE_SINGLE
306 306
307#if !defined(LJ_ARCH_HASFPU) && defined(__mips_soft_float)
308#define LJ_ARCH_HASFPU 0
309#endif
310#if !defined(LJ_ABI_SOFTFP) && defined(__mips_soft_float)
311#define LJ_ABI_SOFTFP 1
312#endif
313
307#if _MIPS_ARCH_MIPS32R2 314#if _MIPS_ARCH_MIPS32R2
308#define LJ_ARCH_VERSION 20 315#define LJ_ARCH_VERSION 20
309#else 316#else
@@ -386,9 +393,6 @@
386#error "No support for PPC/e500 anymore (use LuaJIT 2.0)" 393#error "No support for PPC/e500 anymore (use LuaJIT 2.0)"
387#endif 394#endif
388#elif LJ_TARGET_MIPS 395#elif LJ_TARGET_MIPS
389#if defined(__mips_soft_float)
390#error "No support for MIPS CPUs without FPU"
391#endif
392#if defined(_LP64) 396#if defined(_LP64)
393#error "No support for MIPS64" 397#error "No support for MIPS64"
394#endif 398#endif