diff options
author | Nelson Chu <nelson.chu@sifive.com> | 2020-11-20 15:35:17 +0800 |
---|---|---|
committer | Nelson Chu <nelson.chu@sifive.com> | 2020-12-01 15:11:30 +0800 |
commit | 5a1b31e1e1cee6e9f1c92abff59cdcfff0dddf30 (patch) | |
tree | d531eba64273f93e572e27c610ddab9013bd0389 /opcodes | |
parent | e8d4709e6a5f4e3fad8479b8069c52294be54488 (diff) | |
download | gdb-5a1b31e1e1cee6e9f1c92abff59cdcfff0dddf30.zip gdb-5a1b31e1e1cee6e9f1c92abff59cdcfff0dddf30.tar.gz gdb-5a1b31e1e1cee6e9f1c92abff59cdcfff0dddf30.tar.bz2 |
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.
Diffstat (limited to 'opcodes')
-rw-r--r-- | opcodes/ChangeLog | 4 | ||||
-rw-r--r-- | opcodes/riscv-opc.c | 3 |
2 files changed, 7 insertions, 0 deletions
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 <nelson.chu@sifive.com> + + * riscv-opc.c (riscv_ext_version_table): Add zifencei. + 2020-11-28 Borislav Petkov <bp@suse.de> * 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} }; |