From 5a1b31e1e1cee6e9f1c92abff59cdcfff0dddf30 Mon Sep 17 00:00:00 2001 From: Nelson Chu Date: Fri, 20 Nov 2020 15:35:17 +0800 Subject: RISC-V: Add zifencei and prefixed h class extensions. bfd/ * elfxx-riscv.c (riscv_parse_std_ext): Stop parsing standard extensions when parsed h keyword. (riscv_get_prefix_class): Support prefixed h class. (riscv_std_h_ext_strtab): Likewise. (riscv_ext_h_valid_p): Likewise. (parse_config): Likewise. (riscv_std_z_ext_strtab): Add zifencei. * elfxx-riscv.h (riscv_isa_ext_class): Add RV_ISA_CLASS_H. gas/ * testsuite/gas/riscv/march-fail-order-z.d: New testcase, check orders of prefixed z extensions. * testsuite/gas/riscv/march-fail-order-z.l: Likewise. * testsuite/gas/riscv/march-fail-single-char-h.d: New testcase. * testsuite/gas/riscv/march-fail-single-char.l: Updated. * testsuite/gas/riscv/march-fail-unknown-h.d: New testcase. * testsuite/gas/riscv/march-fail-unknown.l: Updated. opcodes/ * riscv-opc.c (riscv_ext_version_table): Add zifencei. --- opcodes/ChangeLog | 4 ++++ opcodes/riscv-opc.c | 3 +++ 2 files changed, 7 insertions(+) (limited to 'opcodes') diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 02fd2f5..4f6160d 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,7 @@ +2020-12-01 Nelson Chu + + * riscv-opc.c (riscv_ext_version_table): Add zifencei. + 2020-11-28 Borislav Petkov * i386-dis.c (print_insn): Set active_seg_prefix for branch hint insns diff --git a/opcodes/riscv-opc.c b/opcodes/riscv-opc.c index 03e3bd7..121f3fe 100644 --- a/opcodes/riscv-opc.c +++ b/opcodes/riscv-opc.c @@ -935,6 +935,9 @@ const struct riscv_ext_version riscv_ext_version_table[] = {"zicsr", ISA_SPEC_CLASS_20191213, 2, 0}, {"zicsr", ISA_SPEC_CLASS_20190608, 2, 0}, +{"zifencei", ISA_SPEC_CLASS_20191213, 2, 0}, +{"zifencei", ISA_SPEC_CLASS_20190608, 2, 0}, + /* Terminate the list. */ {NULL, 0, 0, 0} }; -- cgit v1.1