aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRamana Radhakrishnan <ramana.radhakrishnan@arm.com>2015-12-17 10:55:54 +0000
committerRamana Radhakrishnan <ramana.radhakrishnan@arm.com>2015-12-17 11:34:39 +0000
commit10c9892b66d56de0aab3fbaec3d59a0304dc0a21 (patch)
tree21bce0e00935ef662b7085b86b240d021d816ac2 /include
parent0bef0414267e22a1ba581b001836fc800b6370e1 (diff)
downloadgdb-10c9892b66d56de0aab3fbaec3d59a0304dc0a21.zip
gdb-10c9892b66d56de0aab3fbaec3d59a0304dc0a21.tar.gz
gdb-10c9892b66d56de0aab3fbaec3d59a0304dc0a21.tar.bz2
[Patch ARM] Fix build attributes for armv8-a in case of assembler files that contain no directives.
There is currently a problem in the way in which we produce build attributes for simple assembler files that have armv8-a instructions. In these case we need to generate TAG_ISA_THUMB_Use to be Thumb-2 and set the architecture profile to be 'A' rather than not setting architecture profile to be 'A' and setting TAG_ISA_THUMB_Use to be Thumb-1. This is a pre-requisite for any v8-m patches that have been posted. arm-none-eabi gas testsuite run. no regressions. 2015-12-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> * gas/config/tc-arm.c (aeabi_set_public_attributes): Adjust TAG_ARCH_profile for armv8-a. * gas/testsuite/gas/arm/armv8a-automatic-hlt.d: New test. * gas/testsuite/gas/arm/armv8a-automatic-hlt.s: New test. * gas/testsuite/gas/arm/armv8a-automatic-lda.d: New test. * gas/testsuite/gas/arm/armv8a-automatic-lda.s: New test.
Diffstat (limited to 'include')
-rw-r--r--include/opcode/arm.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/opcode/arm.h b/include/opcode/arm.h
index 0814d80..daeb626 100644
--- a/include/opcode/arm.h
+++ b/include/opcode/arm.h
@@ -263,9 +263,10 @@
#define ARM_ANY ARM_FEATURE (-1, -1, 0) /* Any basic core. */
#define ARM_FEATURE_ALL ARM_FEATURE (-1, -1, -1)/* All CPU and FPU features. */
#define FPU_ANY_HARD ARM_FEATURE_COPROC (FPU_FPA | FPU_VFP_HARD | FPU_MAVERICK)
-#define ARM_ARCH_THUMB2 ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2 | ARM_EXT_V7 \
+#define ARM_ARCH_THUMB2 ARM_FEATURE_CORE_LOW (ARM_EXT_V6T2 | ARM_EXT_V7 \
| ARM_EXT_V7A | ARM_EXT_V7R \
- | ARM_EXT_V7M | ARM_EXT_DIV)
+ | ARM_EXT_V7M | ARM_EXT_DIV \
+ | ARM_EXT_V8)
/* v7-a+sec. */
#define ARM_ARCH_V7A_SEC ARM_FEATURE_CORE_LOW (ARM_AEXT_V7A | ARM_EXT_SEC)
/* v7-a+mp+sec. */