diff options
author | Przemyslaw Wirkus <przemyslaw.wirkus@arm.com> | 2020-08-10 16:20:17 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2020-08-10 16:20:17 +0100 |
commit | f7cb161ea6ffee167de3126023b2ce0fffd84076 (patch) | |
tree | 9dc058c4d67de093d16167ae1cc16930daa240bb /include/opcode/aarch64.h | |
parent | f8e3fe0d2764e2976fec6a0ac48921893dc62bbf (diff) | |
download | gdb-f7cb161ea6ffee167de3126023b2ce0fffd84076.zip gdb-f7cb161ea6ffee167de3126023b2ce0fffd84076.tar.gz gdb-f7cb161ea6ffee167de3126023b2ce0fffd84076.tar.bz2 |
[aarch64] GAS doesn't validate the architecture version for any tlbi registers. Fixed with this patch.
* gas/config/tc-aarch64.c (parse_sys_reg): Call to
aarch64_sys_ins_reg_supported_p instead of aarch64_sys_reg_supported_p.
(parse_sys_ins_reg): Add aarch64_sys_reg_deprecated_p check.
* include/opcode/aarch64.h (aarch64_sys_reg_deprecated_p): Functions
paramaters changed.
(aarch64_sys_reg_supported_p): Function removed.
(aarch64_sys_ins_reg_supported_p): Functions paramaters changed.
* opcodes/aarch64-opc.c (aarch64_print_operand):
(aarch64_sys_reg_deprecated_p): Functions paramaters changed.
(aarch64_sys_reg_supported_p): Function removed.
(aarch64_sys_ins_reg_supported_p): Functions paramaters changed.
(aarch64_sys_ins_reg_supported_p): Merged aarch64_sys_reg_supported_p
into this function.
* gas/testsuite/gas/aarch64/illegal-sysreg-5.d: New test.
* gas/testsuite/gas/aarch64/illegal-sysreg-5.l: New test.
* gas/testsuite/gas/aarch64/sysreg-5.s: New test.
Diffstat (limited to 'include/opcode/aarch64.h')
-rw-r--r-- | include/opcode/aarch64.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/include/opcode/aarch64.h b/include/opcode/aarch64.h index 1e6ea19..4b71f93 100644 --- a/include/opcode/aarch64.h +++ b/include/opcode/aarch64.h @@ -956,9 +956,7 @@ typedef struct extern const aarch64_sys_reg aarch64_sys_regs []; extern const aarch64_sys_reg aarch64_pstatefields []; -extern bfd_boolean aarch64_sys_reg_deprecated_p (const aarch64_sys_reg *); -extern bfd_boolean aarch64_sys_reg_supported_p (const aarch64_feature_set, - const aarch64_sys_reg *); +extern bfd_boolean aarch64_sys_reg_deprecated_p (const uint32_t); extern bfd_boolean aarch64_pstatefield_supported_p (const aarch64_feature_set, const aarch64_sys_reg *); @@ -971,8 +969,8 @@ typedef struct extern bfd_boolean aarch64_sys_ins_reg_has_xt (const aarch64_sys_ins_reg *); extern bfd_boolean -aarch64_sys_ins_reg_supported_p (const aarch64_feature_set, - const aarch64_sys_ins_reg *); +aarch64_sys_ins_reg_supported_p (const aarch64_feature_set, aarch64_insn, + uint32_t, aarch64_feature_set); extern const aarch64_sys_ins_reg aarch64_sys_regs_ic []; extern const aarch64_sys_ins_reg aarch64_sys_regs_dc []; |