From f985c2512aee1c4440998db62d6aea98c737b3ef Mon Sep 17 00:00:00 2001 From: srinath Date: Thu, 2 Nov 2023 13:04:20 +0000 Subject: aarch64: Add support for GCS extension. This patch adds for Guarded Control Stack Extension (GCS) extension. GCS feature is optional from Armv9.4-A architecture and enabled by passing +gcs option to -march (eg: -march=armv9.4-a+gcs) or using ".arch_extension gcs" directive in the assembly file. Also this patch adds support for GCS instructions gcspushx, gcspopcx, gcspopx, gcsss1, gcsss2, gcspushm, gcspopm, gcsstr and gcssttr. --- include/opcode/aarch64.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/opcode/aarch64.h b/include/opcode/aarch64.h index a60965c..9d0b553 100644 --- a/include/opcode/aarch64.h +++ b/include/opcode/aarch64.h @@ -161,9 +161,10 @@ enum aarch64_feature_bit { AARCH64_FEATURE_V8_9A, /* Check Feature Status Extension. */ AARCH64_FEATURE_CHK, + /* Guarded Control Stack. */ + AARCH64_FEATURE_GCS, /* SME2. */ AARCH64_FEATURE_SME2, - DUMMY2, AARCH64_NUM_FEATURES }; @@ -895,6 +896,7 @@ enum aarch64_insn_class dotproduct, bfloat16, cssc, + gcs, }; /* Opcode enumerators. */ -- cgit v1.1