qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] target-xtensa: add in_asm logging
@ 2013-08-24 19:42 Max Filippov
  2013-08-26 17:44 ` Richard Henderson
  0 siblings, 1 reply; 2+ messages in thread
From: Max Filippov @ 2013-08-24 19:42 UTC (permalink / raw)
  To: qemu-devel; +Cc: Max Filippov

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
---
 target-xtensa/translate.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/target-xtensa/translate.c b/target-xtensa/translate.c
index 504cc53..c82d988 100644
--- a/target-xtensa/translate.c
+++ b/target-xtensa/translate.c
@@ -3018,6 +3018,14 @@ void gen_intermediate_code_internal(XtensaCPU *cpu,
     gen_tb_end(tb, insn_count);
     *tcg_ctx.gen_opc_ptr = INDEX_op_end;
 
+#ifdef DEBUG_DISAS
+    if (qemu_loglevel_mask(CPU_LOG_TB_IN_ASM)) {
+        qemu_log("----------------\n");
+        qemu_log("IN: %s\n", lookup_symbol(pc_start));
+        log_target_disas(env, pc_start, dc.pc - pc_start, 0);
+        qemu_log("\n");
+    }
+#endif
     if (search_pc) {
         j = tcg_ctx.gen_opc_ptr - tcg_ctx.gen_opc_buf;
         memset(tcg_ctx.gen_opc_instr_start + lj + 1, 0,
-- 
1.8.1.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] [PATCH] target-xtensa: add in_asm logging
  2013-08-24 19:42 [Qemu-devel] [PATCH] target-xtensa: add in_asm logging Max Filippov
@ 2013-08-26 17:44 ` Richard Henderson
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Henderson @ 2013-08-26 17:44 UTC (permalink / raw)
  To: Max Filippov; +Cc: qemu-devel

On 08/24/2013 12:42 PM, Max Filippov wrote:
> Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
> ---
>  target-xtensa/translate.c | 8 ++++++++
>  1 file changed, 8 insertions(+)

Reviewed-by: Richard Henderson <rth@twiddle.net>

Excellent, thanks.  That was the only target that did not call in for IN_ASM
dumping.


r~

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-08-26 17:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-24 19:42 [Qemu-devel] [PATCH] target-xtensa: add in_asm logging Max Filippov
2013-08-26 17:44 ` Richard Henderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).