diff options
author | Alan Modra <amodra@gmail.com> | 2021-07-02 17:27:31 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2021-07-02 20:48:55 +0930 |
commit | 62194b631d00112bac1f8856d3259d774df4c15e (patch) | |
tree | cd7385f4fdfbd31d5773180313cea95c3b340bdf /opcodes/nds32-asm.h | |
parent | af82b082c27eeefa261753e746fd002cc528cd1f (diff) | |
download | gdb-62194b631d00112bac1f8856d3259d774df4c15e.zip gdb-62194b631d00112bac1f8856d3259d774df4c15e.tar.gz gdb-62194b631d00112bac1f8856d3259d774df4c15e.tar.bz2 |
Re: Fix minor NDS32 renaming snafu
Some extern declarations differ in constnes to their definitions too.
Let's make sure this sort of thing doesn't happen again, but putting
the externs in a header where they belong.
gas/
* config/tc-nds32.c (nds32_keyword_gpr): Don't declare.
(md_begin): Constify k.
opcodes/
* nds32-dis.c (nds32_find_reg_keyword): Constify arg and return.
(nds32_parse_audio_ext, nds32_parse_opcode): Constify psys_reg.
(nds32_field_table, nds32_opcode_table, nds32_keyword_table),
(nds32_opcodes, nds32_operand_fields, nds32_keywords),
(nds32_keyword_gpr): Move declarations to..
* nds32-asm.h: ..here, constifying to match definitions.
Diffstat (limited to 'opcodes/nds32-asm.h')
-rw-r--r-- | opcodes/nds32-asm.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/opcodes/nds32-asm.h b/opcodes/nds32-asm.h index 11ae48f..e0ec98d 100644 --- a/opcodes/nds32-asm.h +++ b/opcodes/nds32-asm.h @@ -268,6 +268,14 @@ typedef struct nds32_field char **, int64_t *); } field_t; +extern const field_t *nds32_field_table[NDS32_CORE_COUNT]; +extern opcode_t *nds32_opcode_table[NDS32_CORE_COUNT]; +extern const keyword_t **nds32_keyword_table[NDS32_CORE_COUNT]; +extern struct nds32_opcode nds32_opcodes[]; +extern const field_t nds32_operand_fields[]; +extern const keyword_t *nds32_keywords[]; +extern const keyword_t nds32_keyword_gpr[]; + extern void nds32_assemble (nds32_asm_desc_t *, nds32_asm_insn_t *, char *); extern void nds32_asm_init (nds32_asm_desc_t *, int); |