summaryrefslogtreecommitdiff
path: root/disas.c
diff options
context:
space:
mode:
authorEdgar E. Iglesias <edgar@axis.com>2011-01-10 22:31:09 +0100
committerEdgar E. Iglesias <edgar@axis.com>2011-01-10 22:31:09 +0100
commitb09cd072df07c63997cc81b6767f2e145d9496e5 (patch)
tree79a4f0c7d0a404f42e3ae4624ef01bdaefe67c0a /disas.c
parenta7bd621d7a270645fb98426c82a0b251fdbc6000 (diff)
cris: Support disassembly of crisv10
Signed-off-by: Edgar E. Iglesias <edgar@axis.com>
Diffstat (limited to 'disas.c')
-rw-r--r--disas.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/disas.c b/disas.c
index afe331fdb9..dd2db142d7 100644
--- a/disas.c
+++ b/disas.c
@@ -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;