From b09cd072df07c63997cc81b6767f2e145d9496e5 Mon Sep 17 00:00:00 2001 From: "Edgar E. Iglesias" Date: Mon, 10 Jan 2011 22:31:09 +0100 Subject: cris: Support disassembly of crisv10 Signed-off-by: Edgar E. Iglesias --- disas.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'disas.c') 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; -- cgit v1.2.3