diff options
author | Mike Pall <mike> | 2012-07-08 22:20:11 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2012-07-08 22:20:11 +0200 |
commit | b23a7830d23b80bb3f78ec9a9416d3b8119733e7 (patch) | |
tree | 700e11037662d1356342675ebfedfeefcd8de410 /src/lj_jit.h | |
parent | c00ffcb870cd51849ee2a0f1bf1862ac965026b7 (diff) | |
download | luajit-b23a7830d23b80bb3f78ec9a9416d3b8119733e7.tar.gz luajit-b23a7830d23b80bb3f78ec9a9416d3b8119733e7.tar.bz2 luajit-b23a7830d23b80bb3f78ec9a9416d3b8119733e7.zip |
Clean up ARM capability flags. Only set highest arch version.
Diffstat (limited to '')
-rw-r--r-- | src/lj_jit.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/lj_jit.h b/src/lj_jit.h index 517b3264..1ec54fe7 100644 --- a/src/lj_jit.h +++ b/src/lj_jit.h | |||
@@ -27,13 +27,19 @@ | |||
27 | #define JIT_F_CPU_FIRST JIT_F_CMOV | 27 | #define JIT_F_CPU_FIRST JIT_F_CMOV |
28 | #define JIT_F_CPUSTRING "\4CMOV\4SSE2\4SSE3\6SSE4.1\2P4\3AMD\2K8\4ATOM" | 28 | #define JIT_F_CPUSTRING "\4CMOV\4SSE2\4SSE3\6SSE4.1\2P4\3AMD\2K8\4ATOM" |
29 | #elif LJ_TARGET_ARM | 29 | #elif LJ_TARGET_ARM |
30 | #define JIT_F_ARMV6 0x00000010 | 30 | #define JIT_F_ARMV6_ 0x00000010 |
31 | #define JIT_F_ARMV6T2 0x00000020 | 31 | #define JIT_F_ARMV6T2_ 0x00000020 |
32 | #define JIT_F_ARMV7 0x00000040 | 32 | #define JIT_F_ARMV7 0x00000040 |
33 | #define JIT_F_VFPV2 0x00000080 | ||
34 | #define JIT_F_VFPV3 0x00000100 | ||
35 | |||
36 | #define JIT_F_ARMV6 (JIT_F_ARMV6_|JIT_F_ARMV6T2_|JIT_F_ARMV7) | ||
37 | #define JIT_F_ARMV6T2 (JIT_F_ARMV6T2_|JIT_F_ARMV7) | ||
38 | #define JIT_F_VFP (JIT_F_VFPV2|JIT_F_VFPV3) | ||
33 | 39 | ||
34 | /* Names for the CPU-specific flags. Must match the order above. */ | 40 | /* Names for the CPU-specific flags. Must match the order above. */ |
35 | #define JIT_F_CPU_FIRST JIT_F_ARMV6 | 41 | #define JIT_F_CPU_FIRST JIT_F_ARMV6_ |
36 | #define JIT_F_CPUSTRING "\5ARMv6\7ARMv6T2\5ARMv7" | 42 | #define JIT_F_CPUSTRING "\5ARMv6\7ARMv6T2\5ARMv7\5VFPv2\5VFPv3" |
37 | #elif LJ_TARGET_PPC | 43 | #elif LJ_TARGET_PPC |
38 | #define JIT_F_SQRT 0x00000010 | 44 | #define JIT_F_SQRT 0x00000010 |
39 | #define JIT_F_ROUND 0x00000020 | 45 | #define JIT_F_ROUND 0x00000020 |