Diff for /qemu/sh4-dis.c between versions 1.1.1.4 and 1.1.1.5

version 1.1.1.4, 2018/04/24 17:21:21 version 1.1.1.5, 2018/04/24 17:35:02
Line 1164  const sh_opcode_info sh_table[] = Line 1164  const sh_opcode_info sh_table[] =
 #endif  #endif
   
 static void print_movxy  static void print_movxy
   PARAMS ((const sh_opcode_info *, int, int, fprintf_ftype, void *));    (const sh_opcode_info *, int, int, fprintf_ftype, void *);
 static void print_insn_ddt PARAMS ((int, struct disassemble_info *));  static void print_insn_ddt (int, struct disassemble_info *);
 static void print_dsp_reg PARAMS ((int, fprintf_ftype, void *));  static void print_dsp_reg (int, fprintf_ftype, void *);
 static void print_insn_ppi PARAMS ((int, struct disassemble_info *));  static void print_insn_ppi (int, struct disassemble_info *);
   
 static void  static void
 print_movxy (op, rn, rm, fprintf_fn, stream)  print_movxy (const sh_opcode_info *op, int rn, int rm,
      const sh_opcode_info *op;               fprintf_ftype fprintf_fn, void *stream)
      int rn, rm;  
      fprintf_ftype fprintf_fn;  
      void *stream;  
 {  {
   int n;    int n;
   
Line 1248  print_movxy (op, rn, rm, fprintf_fn, str Line 1245  print_movxy (op, rn, rm, fprintf_fn, str
    Return nonzero if a field b of a parallel processing insns follows.  */     Return nonzero if a field b of a parallel processing insns follows.  */
   
 static void  static void
 print_insn_ddt (insn, info)  print_insn_ddt (int insn, struct disassemble_info *info)
      int insn;  
      struct disassemble_info *info;  
 {  {
   fprintf_ftype fprintf_fn = info->fprintf_func;    fprintf_ftype fprintf_fn = info->fprintf_func;
   void *stream = info->stream;    void *stream = info->stream;
Line 1337  print_insn_ddt (insn, info) Line 1332  print_insn_ddt (insn, info)
 }  }
   
 static void  static void
 print_dsp_reg (rm, fprintf_fn, stream)  print_dsp_reg (int rm, fprintf_ftype fprintf_fn, void *stream)
      int rm;  
      fprintf_ftype fprintf_fn;  
      void *stream;  
 {  {
   switch (rm)    switch (rm)
     {      {
Line 1381  print_dsp_reg (rm, fprintf_fn, stream) Line 1373  print_dsp_reg (rm, fprintf_fn, stream)
 }  }
   
 static void  static void
 print_insn_ppi (field_b, info)  print_insn_ppi (int field_b, struct disassemble_info *info)
      int field_b;  
      struct disassemble_info *info;  
 {  {
   static const char *sx_tab[] = { "x0", "x1", "a0", "a1" };    static const char *sx_tab[] = { "x0", "x1", "a0", "a1" };
   static const char *sy_tab[] = { "y0", "y1", "m0", "m1" };    static const char *sy_tab[] = { "y0", "y1", "m0", "m1" };
Line 1528  print_insn_ppi (field_b, info) Line 1518  print_insn_ppi (field_b, info)
 /* FIXME mvs: movx insns print as ".word 0x%03x", insn & 0xfff  /* FIXME mvs: movx insns print as ".word 0x%03x", insn & 0xfff
    (ie. the upper nibble is missing).  */     (ie. the upper nibble is missing).  */
 int  int
 print_insn_sh (memaddr, info)  print_insn_sh (bfd_vma memaddr, struct disassemble_info *info)
      bfd_vma memaddr;  
      struct disassemble_info *info;  
 {  {
   fprintf_ftype fprintf_fn = info->fprintf_func;    fprintf_ftype fprintf_fn = info->fprintf_func;
   void *stream = info->stream;    void *stream = info->stream;
Line 2077  print_insn_sh (memaddr, info) Line 2065  print_insn_sh (memaddr, info)
                 }                  }
               if ((*info->symbol_at_address_func) (val, info))                if ((*info->symbol_at_address_func) (val, info))
                 {                  {
                   fprintf_fn (stream, "\t! 0x");                    fprintf_fn (stream, "\t! ");
                   (*info->print_address_func) (val, info);                    (*info->print_address_func) (val, info);
                 }                  }
               else                else

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


unix.superglobalmegacorp.com