Skip to content

Commit 0e35537

Browse files
author
Jim Wilson
committed
RISC-V: Add .insn support.
gas/ChangeLog 2018-03-07 Kito Cheng <[email protected]> * config/tc-riscv.c (opcode_name_list): New. (opcode_names_hash): Likewise. (init_opcode_names_hash): Likewise. (opcode_name_lookup): Likewise. (validate_riscv_insn): New argument length, and add new format which used in .insn directive. (md_begin): Refine hash table initialization logic into init_opcode_hash. (init_opcode_hash): New. (my_getOpcodeExpression): Parse opcode name for .insn. (riscv_ip): New argument hash, able to handle .insn directive. (s_riscv_insn): Handler for .insn directive. (riscv_pseudo_table): New entry for .insn. * doc/c-riscv.texi: Add documentation for .insn directive. * testsuite/gas/riscv/insn.d: Add testcase for .insn directive. * testsuite/gas/riscv/insn.s: Likewise. include/ChangeLog 2018-03-07 Kito Cheng <[email protected]> * opcode/riscv.h (OP_MASK_FUNCT3): New. (OP_SH_FUNCT3): Likewise. (OP_MASK_FUNCT7): Likewise. (OP_SH_FUNCT7): Likewise. (OP_MASK_OP2): Likewise. (OP_SH_OP2): Likewise. (OP_MASK_CFUNCT4): Likewise. (OP_SH_CFUNCT4): Likewise. (OP_MASK_CFUNCT3): Likewise. (OP_SH_CFUNCT3): Likewise. (riscv_insn_types): Likewise. opcodes/ChangeLog 2018-03-07 Kito Cheng <[email protected]> * riscv-opc.c (riscv_insn_types): New.
1 parent 3ae9ce5 commit 0e35537

File tree

7 files changed

+786
-27
lines changed

7 files changed

+786
-27
lines changed

gas/ChangeLog

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
2018-03-14 Kito Cheng <[email protected]>
2+
3+
* config/tc-riscv.c (opcode_name_list): New.
4+
(opcode_names_hash): Likewise.
5+
(init_opcode_names_hash): Likewise.
6+
(opcode_name_lookup): Likewise.
7+
(validate_riscv_insn): New argument length, and add new format
8+
which used in .insn directive.
9+
(md_begin): Refine hash table initialization logic into
10+
init_opcode_hash.
11+
(init_opcode_hash): New.
12+
(my_getOpcodeExpression): Parse opcode name for .insn.
13+
(riscv_ip): New argument hash, able to handle .insn directive.
14+
(s_riscv_insn): Handler for .insn directive.
15+
(riscv_pseudo_table): New entry for .insn.
16+
* doc/c-riscv.texi: Add documentation for .insn directive.
17+
* testsuite/gas/riscv/insn.d: Add testcase for .insn directive.
18+
* testsuite/gas/riscv/insn.s: Likewise.
19+
120
2018-03-13 Nick Clifton <[email protected]>
221

322
* po/ru.po: Updated Russian translation.

0 commit comments

Comments
 (0)