qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] disas: Add LoongArch support


From: Richard Henderson
Subject: Re: [PATCH] disas: Add LoongArch support
Date: Thu, 4 Aug 2022 11:23:32 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0

On 8/4/22 10:29, Qi Hu wrote:
Signed-off-by: Qi Hu <huqi@loongson.cn>
---
  disas.c | 2 ++
  1 file changed, 2 insertions(+)

diff --git a/disas.c b/disas.c
index e31438f349..d44feeee46 100644
--- a/disas.c
+++ b/disas.c
@@ -176,6 +176,8 @@ static void initialize_debug_host(CPUDebug *s)
  #else
  #error unsupported RISC-V ABI
  #endif
+#elif defined(__loongarch__)
+    s->info.print_insn = print_insn_loongarch;

This is very much insufficient.  Try --target-list=i386-softmmu and watch it 
fail to link.
You need to modify the build rules to make certain that the loongarch disassembler is built for loongarch host.


r~




reply via email to

[Prev in Thread] Current Thread [Next in Thread]