diff options
author | Mike Pall <mike> | 2016-05-28 05:10:55 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2016-05-28 05:10:55 +0200 |
commit | d9986fbadb6c50b826e39e5f690bcf0b4cd6a20b (patch) | |
tree | c89961a1a8949c19872aa39269c2408dd6595733 /src/lj_jit.h | |
parent | e3c4c9af0f07a114fb754fed6ac358a102f49e2f (diff) | |
download | luajit-d9986fbadb6c50b826e39e5f690bcf0b4cd6a20b.tar.gz luajit-d9986fbadb6c50b826e39e5f690bcf0b4cd6a20b.tar.bz2 luajit-d9986fbadb6c50b826e39e5f690bcf0b4cd6a20b.zip |
MIPS64, part 1: Add MIPS64 support to interpreter.
Contributed by Djordje Kovacevic and Stefan Pejic from RT-RK.com.
Sponsored by Cisco Systems, Inc.
Diffstat (limited to 'src/lj_jit.h')
-rw-r--r-- | src/lj_jit.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lj_jit.h b/src/lj_jit.h index f460a0ab..3505c63f 100644 --- a/src/lj_jit.h +++ b/src/lj_jit.h | |||
@@ -46,12 +46,16 @@ | |||
46 | #define JIT_F_CPU_FIRST JIT_F_SQRT | 46 | #define JIT_F_CPU_FIRST JIT_F_SQRT |
47 | #define JIT_F_CPUSTRING "\4SQRT\5ROUND" | 47 | #define JIT_F_CPUSTRING "\4SQRT\5ROUND" |
48 | #elif LJ_TARGET_MIPS | 48 | #elif LJ_TARGET_MIPS |
49 | #define JIT_F_MIPS32R2 0x00000010 | 49 | #define JIT_F_MIPSXXR2 0x00000010 |
50 | 50 | ||
51 | /* Names for the CPU-specific flags. Must match the order above. */ | 51 | /* Names for the CPU-specific flags. Must match the order above. */ |
52 | #define JIT_F_CPU_FIRST JIT_F_MIPS32R2 | 52 | #define JIT_F_CPU_FIRST JIT_F_MIPSXXR2 |
53 | #if LJ_TARGET_MIPS32 | ||
53 | #define JIT_F_CPUSTRING "\010MIPS32R2" | 54 | #define JIT_F_CPUSTRING "\010MIPS32R2" |
54 | #else | 55 | #else |
56 | #define JIT_F_CPUSTRING "\010MIPS64R2" | ||
57 | #endif | ||
58 | #else | ||
55 | #define JIT_F_CPU_FIRST 0 | 59 | #define JIT_F_CPU_FIRST 0 |
56 | #define JIT_F_CPUSTRING "" | 60 | #define JIT_F_CPUSTRING "" |
57 | #endif | 61 | #endif |