Add support for ARMv8/ARM64 to qprocessordetection.h
As used by the upcoming iPhone 5S' A7 SoC. Change-Id: I276dc739c2565bce23fb1a12c9470dcd311e67ba Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>bb10
parent
15c384f82f
commit
410e9cd5b1
|
|
@ -90,14 +90,24 @@
|
|||
// Q_BYTE_ORDER not defined, use endianness auto-detection
|
||||
|
||||
/*
|
||||
ARM family, known revisions: V5, V6, and V7
|
||||
ARM family, known revisions: V5, V6, V7, V8
|
||||
|
||||
ARM is bi-endian, detect using __ARMEL__ or __ARMEB__, falling back to
|
||||
auto-detection implemented below.
|
||||
*/
|
||||
#if defined(__arm__) || defined(__TARGET_ARCH_ARM) || defined(_M_ARM)
|
||||
#if defined(__arm__) || defined(__TARGET_ARCH_ARM) || defined(_M_ARM) || defined(__arm64__)
|
||||
# define Q_PROCESSOR_ARM
|
||||
# if defined(__ARM_ARCH_7__) \
|
||||
# if defined(__arm64__)
|
||||
# define Q_PROCESSOR_ARM_64
|
||||
# else
|
||||
# define Q_PROCESSOR_ARM_32
|
||||
# endif
|
||||
# if defined(__ARM64_ARCH_8__)
|
||||
# define Q_PROCESSOR_ARM_V8
|
||||
# define Q_PROCESSOR_ARM_V7
|
||||
# define Q_PROCESSOR_ARM_V6
|
||||
# define Q_PROCESSOR_ARM_V5
|
||||
# elif defined(__ARM_ARCH_7__) \
|
||||
|| defined(__ARM_ARCH_7A__) \
|
||||
|| defined(__ARM_ARCH_7R__) \
|
||||
|| defined(__ARM_ARCH_7M__) \
|
||||
|
|
|
|||
Loading…
Reference in New Issue