target/sh4: Use lookup_symbol in sh4_tr_disas_log
authorRichard Henderson <richard.henderson@linaro.org>
Wed, 29 Sep 2021 13:03:16 +0000 (09:03 -0400)
committerLaurent Vivier <laurent@vivier.eu>
Mon, 4 Oct 2021 07:47:26 +0000 (09:47 +0200)
The correct thing to do has been present but commented
out since the initial commit of the sh4 translator.

Fixes: fdf9b3e831e
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20210929130316.121330-1-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
target/sh4/translate.c

index cf5fe9243d6c8a0d750e88214ab4fb3380db7709..d3630502724074df50499471d07f729cf73e27d8 100644 (file)
@@ -2344,7 +2344,7 @@ static void sh4_tr_tb_stop(DisasContextBase *dcbase, CPUState *cs)
 
 static void sh4_tr_disas_log(const DisasContextBase *dcbase, CPUState *cs)
 {
-    qemu_log("IN:\n");  /* , lookup_symbol(dcbase->pc_first)); */
+    qemu_log("IN: %s\n", lookup_symbol(dcbase->pc_first));
     log_target_disas(cs, dcbase->pc_first, dcbase->tb->size);
 }