[ARM] Enable CRC by default for ARMv8.1 and later.
authorMatthew Wahab <matthew.wahab@arm.com>
Tue, 15 Dec 2015 16:37:38 +0000 (16:37 +0000)
committerMatthew Wahab <matthew.wahab@arm.com>
Tue, 15 Dec 2015 16:38:58 +0000 (16:38 +0000)
ARMv8.1 includes CRC as a required extension but the +crc feature isn't
enabled by -march=armv8.1-a as it should be. This patch fixes that.

opcode/include
2015-12-15  Matthew Wahab  <matthew.wahab@arm.com>

* arm.h (ARM_ARCH_V8_1A): Add the CRC_EXT_ARMV8 co-processor
feature macro.
(ARM_ARCH_V8_2A): Likewise.

Change-Id: Id1fe0e6fa51dede19d61e1fd08e68628ea1b1e9e

include/opcode/ChangeLog
include/opcode/arm.h

index 7ccd62e3baf8a73c7fb74704e10806edfae868bd..ca7492b3de29d72ba90ad4ed4cdd7c8d7b108ac5 100644 (file)
@@ -1,3 +1,9 @@
+2015-12-15  Matthew Wahab  <matthew.wahab@arm.com>
+
+       * arm.h (ARM_ARCH_V8_1A): Add the CRC_EXT_ARMV8 co-processor
+       feature macro.
+       (ARM_ARCH_V8_2A): Likewise.
+
 2015-12-14  Matthew Wahab  <matthew.wahab@arm.com>
 
        * aarch64.h (enum aarch64_opnd_qualifier): Add
index 5e7d6837958b122bb9d62eeb22c4c739baee8167..0814d806a5b2cf90fc86d36a499950364c063ab5 100644 (file)
 #define ARM_ARCH_V7M   ARM_FEATURE_CORE_LOW (ARM_AEXT_V7M)
 #define ARM_ARCH_V7EM  ARM_FEATURE_CORE_LOW (ARM_AEXT_V7EM)
 #define ARM_ARCH_V8A   ARM_FEATURE_CORE_LOW (ARM_AEXT_V8A)
-#define ARM_ARCH_V8_1A ARM_FEATURE_CORE (ARM_AEXT_V8A, ARM_EXT2_PAN)
-#define ARM_ARCH_V8_2A ARM_FEATURE_CORE (ARM_AEXT_V8A, \
-                                         ARM_EXT2_PAN | ARM_EXT2_V8_2A)
+#define ARM_ARCH_V8_1A ARM_FEATURE (ARM_AEXT_V8A, ARM_EXT2_PAN, \
+                                    CRC_EXT_ARMV8)
+#define ARM_ARCH_V8_2A ARM_FEATURE (ARM_AEXT_V8A, \
+                                    ARM_EXT2_PAN | ARM_EXT2_V8_2A,     \
+                                    CRC_EXT_ARMV8)
 
 /* Some useful combinations:  */
 #define ARM_ARCH_NONE  ARM_FEATURE_LOW (0, 0)