diff options
author | Edgar E. Iglesias <edgar@axis.com> | 2011-01-10 22:31:09 +0100 |
---|---|---|
committer | Edgar E. Iglesias <edgar@axis.com> | 2011-01-10 22:31:09 +0100 |
commit | b09cd072df07c63997cc81b6767f2e145d9496e5 (patch) | |
tree | 79a4f0c7d0a404f42e3ae4624ef01bdaefe67c0a /disas.c | |
parent | a7bd621d7a270645fb98426c82a0b251fdbc6000 (diff) |
cris: Support disassembly of crisv10
Signed-off-by: Edgar E. Iglesias <edgar@axis.com>
Diffstat (limited to 'disas.c')
-rw-r--r-- | disas.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -208,8 +208,13 @@ void target_disas(FILE *out, target_ulong code, target_ulong size, int flags) disasm_info.mach = bfd_mach_alpha; print_insn = print_insn_alpha; #elif defined(TARGET_CRIS) - disasm_info.mach = bfd_mach_cris_v32; - print_insn = print_insn_crisv32; + if (flags != 32) { + disasm_info.mach = bfd_mach_cris_v0_v10; + print_insn = print_insn_crisv10; + } else { + disasm_info.mach = bfd_mach_cris_v32; + print_insn = print_insn_crisv32; + } #elif defined(TARGET_MICROBLAZE) disasm_info.mach = bfd_arch_microblaze; print_insn = print_insn_microblaze; |