ARM: Add CPU detection.
This commit is contained in:
@@ -26,6 +26,14 @@
|
||||
/* Names for the CPU-specific flags. Must match the order above. */
|
||||
#define JIT_F_CPU_FIRST JIT_F_CMOV
|
||||
#define JIT_F_CPUSTRING "\4CMOV\4SSE2\4SSE3\6SSE4.1\2P4\3AMD\2K8\4ATOM"
|
||||
#elif LJ_TARGET_ARM
|
||||
#define JIT_F_ARMV6 0x00000010
|
||||
#define JIT_F_ARMV6T2 0x00000020
|
||||
#define JIT_F_ARMV7 0x00000040
|
||||
|
||||
/* Names for the CPU-specific flags. Must match the order above. */
|
||||
#define JIT_F_CPU_FIRST JIT_F_ARMV6
|
||||
#define JIT_F_CPUSTRING "\5ARMv6\7ARMv6T2\5ARMv7"
|
||||
#else
|
||||
#define JIT_F_CPU_FIRST 0
|
||||
#define JIT_F_CPUSTRING ""
|
||||
|
||||
Reference in New Issue
Block a user