aboutsummaryrefslogtreecommitdiff
path: root/disas.c
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2022-11-30 16:22:09 -0800
committerRichard Henderson <richard.henderson@linaro.org>2023-01-23 15:36:36 -1000
commit2e0d91513deb9bf0e5a1b2e0f574d999df3ebd99 (patch)
tree6f88e1c8b1ceca5fc7d9d10a8fe24365cd8b0949 /disas.c
parent6aa89be5c5ff9a534280b06fad9b01604e2155cb (diff)
downloadqemu-2e0d91513deb9bf0e5a1b2e0f574d999df3ebd99.zip
qemu-2e0d91513deb9bf0e5a1b2e0f574d999df3ebd99.tar.gz
qemu-2e0d91513deb9bf0e5a1b2e0f574d999df3ebd99.tar.bz2
target/loongarch: Enable the disassembler for host tcg
Reuse the decodetree based disassembler from target/loongarch/ for tcg/loongarch64/. The generation of decode-insns.c.inc into ./libcommon.fa.p/ could eventually result in conflict, if any other host requires the same trick, but this is good enough for now. Reviewed-by: WANG Xuerui <git@xen0n.name> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'disas.c')
-rw-r--r--disas.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/disas.c b/disas.c
index 3b31315..b087c12 100644
--- a/disas.c
+++ b/disas.c
@@ -198,6 +198,8 @@ static void initialize_debug_host(CPUDebug *s)
s->info.cap_insn_split = 6;
#elif defined(__hppa__)
s->info.print_insn = print_insn_hppa;
+#elif defined(__loongarch__)
+ s->info.print_insn = print_insn_loongarch;
#endif
}