From af1bd771fc1e719df4c834f9f2d12b879a9de712 Mon Sep 17 00:00:00 2001 From: Przemyslaw Wirkus Date: Fri, 6 Nov 2020 13:09:51 +0000 Subject: aarch64: Extract Pointer Authentication feature from Armv8.3-A Extract PAC (Pointer Authentication) feature from Armv8.3-A. Please note that PAC stays a Armv8.3-A feature but now can be assigned to other architectures or CPUs. --- include/ChangeLog | 5 +++++ include/opcode/aarch64.h | 2 ++ 2 files changed, 7 insertions(+) (limited to 'include') diff --git a/include/ChangeLog b/include/ChangeLog index 252b494..846b3d1 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,8 @@ +2020-11-06 Przemyslaw Wirkus + + * opcode/aarch64.h (AARCH64_FEATURE_PAC): Add new feature. + (AARCH64_ARCH_V8_3): Add back PAC to Armv8.3-A. + 2020-11-04 Przemyslaw Wirkus * opcode/aarch64.h (AARCH64_ARCH_V8): Add RAS to Armv8-A. diff --git a/include/opcode/aarch64.h b/include/opcode/aarch64.h index efa2657..ffde1ba 100644 --- a/include/opcode/aarch64.h +++ b/include/opcode/aarch64.h @@ -53,6 +53,7 @@ typedef uint32_t aarch64_insn; #define AARCH64_FEATURE_V8_7 (1ULL << 13) /* Armv8.7 processors. */ #define AARCH64_FEATURE_CSRE (1ULL << 14) /* CSRE feature. */ #define AARCH64_FEATURE_LS64 (1ULL << 15) /* Atomic 64-byte load/store. */ +#define AARCH64_FEATURE_PAC (1ULL << 16) /* v8.3 Pointer Authentication. */ #define AARCH64_FEATURE_FP (1ULL << 17) /* FP instructions. */ #define AARCH64_FEATURE_SIMD (1ULL << 18) /* SIMD instructions. */ #define AARCH64_FEATURE_CRC (1ULL << 19) /* CRC instructions. */ @@ -110,6 +111,7 @@ typedef uint32_t aarch64_insn; AARCH64_FEATURE_V8_2) #define AARCH64_ARCH_V8_3 AARCH64_FEATURE (AARCH64_ARCH_V8_2, \ AARCH64_FEATURE_V8_3 \ + | AARCH64_FEATURE_PAC \ | AARCH64_FEATURE_RCPC \ | AARCH64_FEATURE_COMPNUM) #define AARCH64_ARCH_V8_4 AARCH64_FEATURE (AARCH64_ARCH_V8_3, \ -- cgit v1.1