diff options
author | Mike Pall <mike> | 2012-03-30 01:34:17 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2012-03-30 01:34:17 +0200 |
commit | 2225c9aafc9245e12b22d34b68be8017c42febd8 (patch) | |
tree | 7bbd093737535404e793384014c1f7d11df5e542 /src/lj_jit.h | |
parent | aaaf0e0f5fe573e7c089ece1bd491a8f8b8b3e9a (diff) | |
download | luajit-2225c9aafc9245e12b22d34b68be8017c42febd8.tar.gz luajit-2225c9aafc9245e12b22d34b68be8017c42febd8.tar.bz2 luajit-2225c9aafc9245e12b22d34b68be8017c42febd8.zip |
MIPS: Add MIPS32R2 compile-time/runtime CPU detection.
Diffstat (limited to '')
-rw-r--r-- | src/lj_jit.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lj_jit.h b/src/lj_jit.h index 1033e792..dd0c08d8 100644 --- a/src/lj_jit.h +++ b/src/lj_jit.h | |||
@@ -34,6 +34,12 @@ | |||
34 | /* Names for the CPU-specific flags. Must match the order above. */ | 34 | /* Names for the CPU-specific flags. Must match the order above. */ |
35 | #define JIT_F_CPU_FIRST JIT_F_ARMV6 | 35 | #define JIT_F_CPU_FIRST JIT_F_ARMV6 |
36 | #define JIT_F_CPUSTRING "\5ARMv6\7ARMv6T2\5ARMv7" | 36 | #define JIT_F_CPUSTRING "\5ARMv6\7ARMv6T2\5ARMv7" |
37 | #elif LJ_TARGET_MIPS | ||
38 | #define JIT_F_MIPS32R2 0x00000010 | ||
39 | |||
40 | /* Names for the CPU-specific flags. Must match the order above. */ | ||
41 | #define JIT_F_CPU_FIRST JIT_F_MIPS32R2 | ||
42 | #define JIT_F_CPUSTRING "\010MIPS32R2" | ||
37 | #else | 43 | #else |
38 | #define JIT_F_CPU_FIRST 0 | 44 | #define JIT_F_CPU_FIRST 0 |
39 | #define JIT_F_CPUSTRING "" | 45 | #define JIT_F_CPUSTRING "" |