Hi, binutils maintainers and developers,
Attached is the modified patch.
* opcodes/ChangeLog
2018-09-19 Nelson Chu <***@1990gmail.com>
* nds32-asm.c (config.h, stdlib.h, string.h): New includes.
(LEX_SET_FIELD, LEX_GET_FIELD): Update defines.
(nds32_asm_init, build_operand_hash_table, build_keyword_hash_table,
build_opcode_hash_table): New functions.
(nds32_keyword_table, nds32_keyword_count_table, nds32_field_table,
nds32_opcode_table): New.
(hw_ktabs): Declare it to a pointer rather than an array.
(build_hash_table): Removed.
* nds32-asm.h (enum): Add SYN_INPUT, SYN_OUTPUT, SYN_LOPT,
SYN_ROPT and upadte HW_GPR and HW_INT.
* nds32-dis.c (keywords): Remove const.
(match_field): New function.
(nds32_parse_opcode): Updated.
Best regards,
Nelson Ching-Yu Chu
Software R&D, Andes Technology
Post by Nelson ChuHi, binutils maintainers and developers,
Attached is the second patch,
0002-NDS32-Refactor-the-assembler-and-disassembler
Best regards,
Nelson Ching-Yu Chu
Software R&D, Andes Technology