diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2022-11-30 16:22:09 -0800 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2023-01-23 15:36:36 -1000 |
commit | 2e0d91513deb9bf0e5a1b2e0f574d999df3ebd99 (patch) | |
tree | 6f88e1c8b1ceca5fc7d9d10a8fe24365cd8b0949 /disas.c | |
parent | 6aa89be5c5ff9a534280b06fad9b01604e2155cb (diff) |
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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 } |