aboutsummaryrefslogtreecommitdiff
path: root/include/opcode
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2019-12-05 08:44:22 +0100
committerJan Beulich <jbeulich@suse.com>2019-12-05 08:44:22 +0100
commit2dc4b12fcd647b883223efeb308c277e629b369c (patch)
treea53555350d80f650adc883e20e423f17208fc3e4 /include/opcode
parentd4340f89eccb0b0a0811e142ce365efc48beb064 (diff)
downloadgdb-2dc4b12fcd647b883223efeb308c277e629b369c.zip
gdb-2dc4b12fcd647b883223efeb308c277e629b369c.tar.gz
gdb-2dc4b12fcd647b883223efeb308c277e629b369c.tar.bz2
Arm64: simplify Crypto arch extension handling
This, at the assembler level, is just a "brace" feature covering both AES and SHA2. Hence there's no need for it to have a separate feature flag, freeing up a bit for future re-use. Along these lines there are also a number of dead definitions/variables in the opcode table file.
Diffstat (limited to 'include/opcode')
-rw-r--r--include/opcode/aarch64.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/opcode/aarch64.h b/include/opcode/aarch64.h
index d9f3d09..5d1aabf 100644
--- a/include/opcode/aarch64.h
+++ b/include/opcode/aarch64.h
@@ -45,7 +45,6 @@ typedef uint32_t aarch64_insn;
#define AARCH64_FEATURE_V8 0x00000001 /* All processors. */
#define AARCH64_FEATURE_V8_2 0x00000020 /* ARMv8.2 processors. */
#define AARCH64_FEATURE_V8_3 0x00000040 /* ARMv8.3 processors. */
-#define AARCH64_FEATURE_CRYPTO 0x00010000 /* Crypto instructions. */
#define AARCH64_FEATURE_FP 0x00020000 /* FP instructions. */
#define AARCH64_FEATURE_SIMD 0x00040000 /* SIMD instructions. */
#define AARCH64_FEATURE_CRC 0x00080000 /* CRC instructions. */
@@ -103,6 +102,9 @@ typedef uint32_t aarch64_insn;
#define AARCH64_FEATURE_SVE2_SM4 0x000000200
#define AARCH64_FEATURE_SVE2_SHA3 0x000000400
+/* Crypto instructions are the combination of AES and SHA2. */
+#define AARCH64_FEATURE_CRYPTO (AARCH64_FEATURE_SHA2 | AARCH64_FEATURE_AES)
+
/* Architectures are the sum of the base and extensions. */
#define AARCH64_ARCH_V8 AARCH64_FEATURE (AARCH64_FEATURE_V8, \
AARCH64_FEATURE_FP \