aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Carlotti <andrew.carlotti@arm.com>2024-01-15 11:19:48 +0000
committerNick Clifton <nickc@redhat.com>2024-01-15 12:42:30 +0000
commit6344535387740d9954c8c2358295e55c0a821fc0 (patch)
tree286fb3c6c5a44a2e291c030e27651d61cfb4efc4 /include
parentfad00902c24e11186cc795b3579017074a39e670 (diff)
downloadgdb-6344535387740d9954c8c2358295e55c0a821fc0.zip
gdb-6344535387740d9954c8c2358295e55c0a821fc0.tar.gz
gdb-6344535387740d9954c8c2358295e55c0a821fc0.tar.bz2
aarch64: Refactor aarch64_sys_ins_reg_supported_p
Add an aarch64_feature_set field to aarch64_sys_ins_reg, and use this for feature checks instead of testing against a list of operand codes.
Diffstat (limited to 'include')
-rw-r--r--include/opcode/aarch64.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/opcode/aarch64.h b/include/opcode/aarch64.h
index 5ea0f32..6f86a98 100644
--- a/include/opcode/aarch64.h
+++ b/include/opcode/aarch64.h
@@ -1389,12 +1389,16 @@ typedef struct
const char *name;
uint32_t value;
uint32_t flags ;
+
+ /* A set of features, all of which are required for this system instruction to be
+ available. */
+ aarch64_feature_set features;
} aarch64_sys_ins_reg;
extern bool aarch64_sys_ins_reg_has_xt (const aarch64_sys_ins_reg *);
extern bool
aarch64_sys_ins_reg_supported_p (const aarch64_feature_set,
- const char *reg_name, aarch64_insn,
+ const char *reg_name,
uint32_t, const aarch64_feature_set *);
extern const aarch64_sys_ins_reg aarch64_sys_regs_ic [];