From 29b1539538f5f285e017adbc64b8d72b45c104a8 Mon Sep 17 00:00:00 2001 From: Matthew Wahab Date: Tue, 15 Dec 2015 16:37:38 +0000 Subject: [PATCH] [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 * 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 | 6 ++++++ include/opcode/arm.h | 8 +++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/include/opcode/ChangeLog b/include/opcode/ChangeLog index 7ccd62e3baf..ca7492b3de2 100644 --- a/include/opcode/ChangeLog +++ b/include/opcode/ChangeLog @@ -1,3 +1,9 @@ +2015-12-15 Matthew Wahab + + * 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 * aarch64.h (enum aarch64_opnd_qualifier): Add diff --git a/include/opcode/arm.h b/include/opcode/arm.h index 5e7d6837958..0814d806a5b 100644 --- a/include/opcode/arm.h +++ b/include/opcode/arm.h @@ -251,9 +251,11 @@ #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) -- 2.30.2