From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JzE9u-0000J9-Va for qemu-devel@nongnu.org; Thu, 22 May 2008 13:00:55 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JzE9t-0000IN-SI for qemu-devel@nongnu.org; Thu, 22 May 2008 13:00:53 -0400 Received: from [199.232.76.173] (port=41890 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JzE9s-0000Ho-Qn for qemu-devel@nongnu.org; Thu, 22 May 2008 13:00:52 -0400 Received: from savannah.gnu.org ([199.232.41.3]:53296 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JzE9s-0002gr-KD for qemu-devel@nongnu.org; Thu, 22 May 2008 13:00:52 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1JzE9q-00085v-BU for qemu-devel@nongnu.org; Thu, 22 May 2008 17:00:50 +0000 Received: from bellard by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1JzE9p-00085r-RA for qemu-devel@nongnu.org; Thu, 22 May 2008 17:00:50 +0000 MIME-Version: 1.0 Errors-To: bellard Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Fabrice Bellard Message-Id: Date: Thu, 22 May 2008 17:00:49 +0000 Subject: [Qemu-devel] [4532] use debug_insn_start to have nicer debug traces Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 4532 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4532 Author: bellard Date: 2008-05-22 17:00:49 +0000 (Thu, 22 May 2008) Log Message: ----------- use debug_insn_start to have nicer debug traces Modified Paths: -------------- trunk/target-i386/translate.c Modified: trunk/target-i386/translate.c =================================================================== --- trunk/target-i386/translate.c 2008-05-22 16:56:05 UTC (rev 4531) +++ trunk/target-i386/translate.c 2008-05-22 17:00:49 UTC (rev 4532) @@ -3586,6 +3586,8 @@ target_ulong next_eip, tval; int rex_w, rex_r; + if (unlikely(loglevel & CPU_LOG_TB_OP)) + tcg_gen_debug_insn_start(pc_start); s->pc = pc_start; prefixes = 0; aflag = s->code32; @@ -7233,11 +7235,6 @@ disas_flags = !dc->code32; target_disas(logfile, pc_start, pc_ptr - pc_start, disas_flags); fprintf(logfile, "\n"); - if (loglevel & CPU_LOG_TB_OP_OPT) { - fprintf(logfile, "OP before opt:\n"); - tcg_dump_ops(&tcg_ctx, logfile); - fprintf(logfile, "\n"); - } } #endif