修訂 | 29b1539538f5f285e017adbc64b8d72b45c104a8 (tree) |
---|---|
時間 | 2015-12-16 01:38:58 |
作者 | Matthew Wahab <matthew.wahab@arm....> |
Commiter | Matthew Wahab |
[ARM] Enable CRC by default for ARMv8.1 and later.
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
@@ -1,3 +1,9 @@ | ||
1 | +2015-12-15 Matthew Wahab <matthew.wahab@arm.com> | |
2 | + | |
3 | + * arm.h (ARM_ARCH_V8_1A): Add the CRC_EXT_ARMV8 co-processor | |
4 | + feature macro. | |
5 | + (ARM_ARCH_V8_2A): Likewise. | |
6 | + | |
1 | 7 | 2015-12-14 Matthew Wahab <matthew.wahab@arm.com> |
2 | 8 | |
3 | 9 | * aarch64.h (enum aarch64_opnd_qualifier): Add |
@@ -251,9 +251,11 @@ | ||
251 | 251 | #define ARM_ARCH_V7M ARM_FEATURE_CORE_LOW (ARM_AEXT_V7M) |
252 | 252 | #define ARM_ARCH_V7EM ARM_FEATURE_CORE_LOW (ARM_AEXT_V7EM) |
253 | 253 | #define ARM_ARCH_V8A ARM_FEATURE_CORE_LOW (ARM_AEXT_V8A) |
254 | -#define ARM_ARCH_V8_1A ARM_FEATURE_CORE (ARM_AEXT_V8A, ARM_EXT2_PAN) | |
255 | -#define ARM_ARCH_V8_2A ARM_FEATURE_CORE (ARM_AEXT_V8A, \ | |
256 | - ARM_EXT2_PAN | ARM_EXT2_V8_2A) | |
254 | +#define ARM_ARCH_V8_1A ARM_FEATURE (ARM_AEXT_V8A, ARM_EXT2_PAN, \ | |
255 | + CRC_EXT_ARMV8) | |
256 | +#define ARM_ARCH_V8_2A ARM_FEATURE (ARM_AEXT_V8A, \ | |
257 | + ARM_EXT2_PAN | ARM_EXT2_V8_2A, \ | |
258 | + CRC_EXT_ARMV8) | |
257 | 259 | |
258 | 260 | /* Some useful combinations: */ |
259 | 261 | #define ARM_ARCH_NONE ARM_FEATURE_LOW (0, 0) |