Change msp430 emulation to msp430elf
[deliverable/binutils-gdb.git] / opcodes / nios2-dis.c
index 00ee342bbf29c8c579c96cb46333ef8866b0b282..80951f11886611c0b8a2b204284f47c1e512cfb2 100644 (file)
@@ -1,5 +1,5 @@
 /* Altera Nios II disassemble routines
-   Copyright (C) 2012-2014 Free Software Foundation, Inc.
+   Copyright (C) 2012-2015 Free Software Foundation, Inc.
    Contributed by Nigel Gray (ngray@altera.com).
    Contributed by Mentor Graphics, Inc.
 
@@ -153,9 +153,10 @@ nios2_init_opcode_hash (nios2_disassembler_state *state)
 }
 
 /* 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 *
-nios2_find_opcode_hash (unsigned long opcode)
+nios2_find_opcode_hash (unsigned long opcode,
+                       unsigned long mach ATTRIBUTE_UNUSED)
 {
   nios2_opcode_hash *entry;
   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
      the instruction and its arguments.  */
-  op = nios2_find_opcode_hash (opcode);
+  op = nios2_find_opcode_hash (opcode, info->mach);
 
   if (op != NULL)
     {
This page took 0.024376 seconds and 4 git commands to generate.