mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-17 07:27:20 +08:00
[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.
This commit is contained in:

committed by
Nick Clifton

parent
f8e3fe0d27
commit
f7cb161ea6
@ -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 [];
|
||||
|
Reference in New Issue
Block a user