mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-17 16:05:56 +08:00
Add mach parameter to nios2_find_opcode_hash.
2014-11-06 Sandra Loosemore <sandra@codesourcery.com> include/opcode/ * nios2.h (nios2_find_opcode_hash): Add mach parameter to declaration. Fix obsolete comment. opcodes/ * nios2-dis.c (nios2_find_opcode_hash): Add mach parameter. (nios2_disassemble): Adjust call to nios2_find_opcode_hash. gas/ * config/tc-nios2.c (nios2_diagnose_overflow): Adjust call to nios2_find_opcode_hash.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
|
||||||
|
|
||||||
|
* config/tc-nios2.c (nios2_diagnose_overflow): Adjust call to
|
||||||
|
nios2_find_opcode_hash.
|
||||||
|
|
||||||
2014-11-05 Matthew Fortune <matthew.fortune@imgtec.com>
|
2014-11-05 Matthew Fortune <matthew.fortune@imgtec.com>
|
||||||
|
|
||||||
* config/tc-mips.c (mips_elf_final_processing): Add INSN_ISA32R6
|
* config/tc-mips.c (mips_elf_final_processing): Add INSN_ISA32R6
|
||||||
|
@ -1033,7 +1033,7 @@ nios2_diagnose_overflow (valueT fixup, reloc_howto_type *howto,
|
|||||||
unsigned int range_max;
|
unsigned int range_max;
|
||||||
unsigned int address;
|
unsigned int address;
|
||||||
|
|
||||||
opcode = nios2_find_opcode_hash (value);
|
opcode = nios2_find_opcode_hash (value, bfd_get_mach (stdoutput));
|
||||||
gas_assert (opcode);
|
gas_assert (opcode);
|
||||||
gas_assert (fixP->fx_size == opcode->size);
|
gas_assert (fixP->fx_size == opcode->size);
|
||||||
overflow_msg_type = opcode->overflow_msg;
|
overflow_msg_type = opcode->overflow_msg;
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
|
||||||
|
|
||||||
|
* nios2.h (nios2_find_opcode_hash): Add mach parameter to
|
||||||
|
declaration. Fix obsolete comment.
|
||||||
|
|
||||||
2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
|
2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
|
||||||
|
|
||||||
* nios2.h (enum iw_format_type): New.
|
* nios2.h (enum iw_format_type): New.
|
||||||
|
@ -154,8 +154,8 @@ extern struct nios2_reg *nios2_regs;
|
|||||||
extern const int nios2_num_builtin_regs;
|
extern const int nios2_num_builtin_regs;
|
||||||
extern int nios2_num_regs;
|
extern int nios2_num_regs;
|
||||||
|
|
||||||
/* This is made extern so that the assembler can use it to find out
|
/* Return the opcode descriptor for a single instruction. */
|
||||||
what instruction caused an error. */
|
extern const struct nios2_opcode *
|
||||||
extern const struct nios2_opcode *nios2_find_opcode_hash (unsigned long);
|
nios2_find_opcode_hash (unsigned long, unsigned long);
|
||||||
|
|
||||||
#endif /* _NIOS2_H */
|
#endif /* _NIOS2_H */
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
|
||||||
|
|
||||||
|
* nios2-dis.c (nios2_find_opcode_hash): Add mach parameter.
|
||||||
|
(nios2_disassemble): Adjust call to nios2_find_opcode_hash.
|
||||||
|
|
||||||
2014-11-03 Nick Clifton <nickc@redhat.com>
|
2014-11-03 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
* po/fi.po: Updated Finnish translation.
|
* po/fi.po: Updated Finnish translation.
|
||||||
|
@ -153,9 +153,10 @@ nios2_init_opcode_hash (nios2_disassembler_state *state)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Return a pointer to an nios2_opcode struct for a given instruction
|
/* Return a pointer to an nios2_opcode struct for a given instruction
|
||||||
opcode, or NULL if there is an error. */
|
word OPCODE for bfd machine MACH, or NULL if there is an error. */
|
||||||
const struct nios2_opcode *
|
const struct nios2_opcode *
|
||||||
nios2_find_opcode_hash (unsigned long opcode)
|
nios2_find_opcode_hash (unsigned long opcode,
|
||||||
|
unsigned long mach ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
nios2_opcode_hash *entry;
|
nios2_opcode_hash *entry;
|
||||||
nios2_disassembler_state *state;
|
nios2_disassembler_state *state;
|
||||||
@ -459,7 +460,7 @@ nios2_disassemble (bfd_vma address, unsigned long opcode,
|
|||||||
|
|
||||||
/* Find the major opcode and use this to disassemble
|
/* Find the major opcode and use this to disassemble
|
||||||
the instruction and its arguments. */
|
the instruction and its arguments. */
|
||||||
op = nios2_find_opcode_hash (opcode);
|
op = nios2_find_opcode_hash (opcode, info->mach);
|
||||||
|
|
||||||
if (op != NULL)
|
if (op != NULL)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user