/[qemu]/qemu/disas.c
ViewVC logotype

Diff of /qemu/disas.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.21 by bellard, Sat Apr 23 18:16:07 2005 UTC revision 1.22 by bellard, Wed Apr 27 20:15:00 2005 UTC
# Line 108  bfd_vma bfd_getb32 (const bfd_byte *addr Line 108  bfd_vma bfd_getb32 (const bfd_byte *addr
108    return (bfd_vma) v;    return (bfd_vma) v;
109  }  }
110    
111  /* Disassemble this for me please... (debugging). 'flags' is only used  #ifdef TARGET_ARM
112     for i386: non zero means 16 bit code */  static int
113    print_insn_thumb1(bfd_vma pc, disassemble_info *info)
114    {
115      return print_insn_arm(pc | 1, info);
116    }
117    #endif
118    
119    /* Disassemble this for me please... (debugging). 'flags' has teh following
120       values:
121        i386 - nonzero means 16 bit code
122        arm  - nonzero means thumb code
123        other targets - unused
124     */
125  void target_disas(FILE *out, target_ulong code, target_ulong size, int flags)  void target_disas(FILE *out, target_ulong code, target_ulong size, int flags)
126  {  {
127      target_ulong pc;      target_ulong pc;
# Line 137  void target_disas(FILE *out, target_ulon Line 149  void target_disas(FILE *out, target_ulon
149          disasm_info.mach = bfd_mach_i386_i386;          disasm_info.mach = bfd_mach_i386_i386;
150      print_insn = print_insn_i386;      print_insn = print_insn_i386;
151  #elif defined(TARGET_ARM)  #elif defined(TARGET_ARM)
152      print_insn = print_insn_arm;      if (flags)
153            print_insn = print_insn_thumb1;
154        else
155            print_insn = print_insn_arm;
156  #elif defined(TARGET_SPARC)  #elif defined(TARGET_SPARC)
157      print_insn = print_insn_sparc;      print_insn = print_insn_sparc;
158  #elif defined(TARGET_PPC)  #elif defined(TARGET_PPC)

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26