Diff for /qemu/cris-dis.c between versions 1.1.1.4 and 1.1.1.6

version 1.1.1.4, 2018/04/24 17:34:18 version 1.1.1.6, 2018/04/24 19:17:08
Line 18 Line 18
    You should have received a copy of the GNU General Public License     You should have received a copy of the GNU General Public License
    along with this program; if not, see <http://www.gnu.org/licenses/>. */     along with this program; if not, see <http://www.gnu.org/licenses/>. */
   
   #include "qemu-common.h"
 #include "dis-asm.h"  #include "dis-asm.h"
 //#include "sysdep.h"  //#include "sysdep.h"
 #include "target-cris/opcode-cris.h"  #include "target-cris/opcode-cris.h"
 //#include "libiberty.h"  //#include "libiberty.h"
   
   
 void *qemu_malloc(size_t len); /* can't include qemu-common.h here */  
   
 #define CONST_STRNEQ(STR1,STR2) (strncmp ((STR1), (STR2), sizeof (STR2) - 1) == 0)  #define CONST_STRNEQ(STR1,STR2) (strncmp ((STR1), (STR2), sizeof (STR2) - 1) == 0)
   
Line 1398  get_opcode_entry (unsigned int insn, Line 1396  get_opcode_entry (unsigned int insn,
   /* Allocate and clear the opcode-table.  */    /* Allocate and clear the opcode-table.  */
   if (opc_table == NULL)    if (opc_table == NULL)
     {      {
       opc_table = qemu_malloc (65536 * sizeof (opc_table[0]));        opc_table = g_malloc (65536 * sizeof (opc_table[0]));
   
       memset (opc_table, 0, 65536 * sizeof (const struct cris_opcode *));        memset (opc_table, 0, 65536 * sizeof (const struct cris_opcode *));
   
       dip_prefixes        dip_prefixes
         = qemu_malloc (65536 * sizeof (const struct cris_opcode **));          = g_malloc (65536 * sizeof (const struct cris_opcode **));
   
       memset (dip_prefixes, 0, 65536 * sizeof (dip_prefixes[0]));        memset (dip_prefixes, 0, 65536 * sizeof (dip_prefixes[0]));
   
       bdapq_m1_prefixes        bdapq_m1_prefixes
         = qemu_malloc (65536 * sizeof (const struct cris_opcode **));          = g_malloc (65536 * sizeof (const struct cris_opcode **));
   
       memset (bdapq_m1_prefixes, 0, 65536 * sizeof (bdapq_m1_prefixes[0]));        memset (bdapq_m1_prefixes, 0, 65536 * sizeof (bdapq_m1_prefixes[0]));
   
       bdapq_m2_prefixes        bdapq_m2_prefixes
         = qemu_malloc (65536 * sizeof (const struct cris_opcode **));          = g_malloc (65536 * sizeof (const struct cris_opcode **));
   
       memset (bdapq_m2_prefixes, 0, 65536 * sizeof (bdapq_m2_prefixes[0]));        memset (bdapq_m2_prefixes, 0, 65536 * sizeof (bdapq_m2_prefixes[0]));
   
       bdapq_m4_prefixes        bdapq_m4_prefixes
         = qemu_malloc (65536 * sizeof (const struct cris_opcode **));          = g_malloc (65536 * sizeof (const struct cris_opcode **));
   
       memset (bdapq_m4_prefixes, 0, 65536 * sizeof (bdapq_m4_prefixes[0]));        memset (bdapq_m4_prefixes, 0, 65536 * sizeof (bdapq_m4_prefixes[0]));
   
       rest_prefixes        rest_prefixes
         = qemu_malloc (65536 * sizeof (const struct cris_opcode **));          = g_malloc (65536 * sizeof (const struct cris_opcode **));
   
       memset (rest_prefixes, 0, 65536 * sizeof (rest_prefixes[0]));        memset (rest_prefixes, 0, 65536 * sizeof (rest_prefixes[0]));
     }      }
Line 2769  print_insn_cris_generic (bfd_vma memaddr Line 2767  print_insn_cris_generic (bfd_vma memaddr
 }  }
   
 /* Disassemble, prefixing register names with `$'.  CRIS v0..v10.  */  /* Disassemble, prefixing register names with `$'.  CRIS v0..v10.  */
 #if 0  
 static int  static int
 print_insn_cris_with_register_prefix (bfd_vma vma,  print_insn_cris_with_register_prefix (bfd_vma vma,
                                       disassemble_info *info)                                        disassemble_info *info)
Line 2779  print_insn_cris_with_register_prefix (bf Line 2776  print_insn_cris_with_register_prefix (bf
     return -1;      return -1;
   return print_insn_cris_generic (vma, info, true);    return print_insn_cris_generic (vma, info, true);
 }  }
 #endif  
 /* Disassemble, prefixing register names with `$'.  CRIS v32.  */  /* Disassemble, prefixing register names with `$'.  CRIS v32.  */
   
 static int  static int
Line 2845  print_insn_crisv10_v32_without_register_ Line 2841  print_insn_crisv10_v32_without_register_
 #endif  #endif
   
 int  int
   print_insn_crisv10 (bfd_vma vma,
                       disassemble_info *info)
   {
     return print_insn_cris_with_register_prefix(vma, info);
   }
   
   int
 print_insn_crisv32 (bfd_vma vma,  print_insn_crisv32 (bfd_vma vma,
                     disassemble_info *info)                      disassemble_info *info)
 {  {

Removed from v.1.1.1.4  
changed lines
  Added in v.1.1.1.6


unix.superglobalmegacorp.com