Skip to content

Commit

Permalink
s390x: Enable disassembler for s390x
Browse files Browse the repository at this point in the history
This patch enables the instruction disassembler when using an
S390x target.

Signed-off-by: Ulrich Hecht <uli@suse.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
  • Loading branch information
Ulrich Hecht authored and aurel32 committed Apr 3, 2011
1 parent 6be9b41 commit db50060
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions disas.c
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,9 @@ void target_disas(FILE *out, target_ulong code, target_ulong size, int flags)
disasm_info.mach = bfd_mach_cris_v32;
print_insn = print_insn_crisv32;
}
#elif defined(TARGET_S390X)
disasm_info.mach = bfd_mach_s390_64;
print_insn = print_insn_s390;
#elif defined(TARGET_MICROBLAZE)
disasm_info.mach = bfd_arch_microblaze;
print_insn = print_insn_microblaze;
Expand Down Expand Up @@ -414,6 +417,9 @@ void monitor_disas(Monitor *mon, CPUState *env,
#elif defined(TARGET_SH4)
disasm_info.mach = bfd_mach_sh4;
print_insn = print_insn_sh;
#elif defined(TARGET_S390X)
disasm_info.mach = bfd_mach_s390_64;
print_insn = print_insn_s390;
#else
monitor_printf(mon, "0x" TARGET_FMT_lx
": Asm output not supported on this arch\n", pc);
Expand Down

0 comments on commit db50060

Please sign in to comment.