aboutsummaryrefslogtreecommitdiff
path: root/disas.c
diff options
context:
space:
mode:
authorMichael Walle <michael@walle.cc>2012-03-31 19:54:20 +0200
committerMichael Walle <michael@walle.cc>2012-04-01 20:30:23 +0200
commit79368f4984eefcbed5d714c6131e58fd71178030 (patch)
treed8803db0048545aaa9f4c9a078773bb3ad6a1e41 /disas.c
parent060544d30f4cc94bced1186e1b042960aebcdfea (diff)
target-lm32: add simple disassembler
Because binutils disassembler is based on libopcode, this is a rewrite from scratch. Signed-off-by: Michael Walle <michael@walle.cc>
Diffstat (limited to 'disas.c')
-rw-r--r--disas.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/disas.c b/disas.c
index 4945c44b9f..94858241de 100644
--- a/disas.c
+++ b/disas.c
@@ -220,6 +220,9 @@ void target_disas(FILE *out, target_ulong code, target_ulong size, int flags)
#elif defined(TARGET_MICROBLAZE)
disasm_info.mach = bfd_arch_microblaze;
print_insn = print_insn_microblaze;
+#elif defined(TARGET_LM32)
+ disasm_info.mach = bfd_mach_lm32;
+ print_insn = print_insn_lm32;
#else
fprintf(out, "0x" TARGET_FMT_lx
": Asm output not supported on this arch\n", code);
@@ -421,6 +424,9 @@ void monitor_disas(Monitor *mon, CPUArchState *env,
#elif defined(TARGET_S390X)
disasm_info.mach = bfd_mach_s390_64;
print_insn = print_insn_s390;
+#elif defined(TARGET_LM32)
+ disasm_info.mach = bfd_mach_lm32;
+ print_insn = print_insn_lm32;
#else
monitor_printf(mon, "0x" TARGET_FMT_lx
": Asm output not supported on this arch\n", pc);