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; |
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) |