From patchwork Mon Sep 24 21:55:50 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 186588 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id ABF372C0087 for ; Tue, 25 Sep 2012 07:56:24 +1000 (EST) Received: from localhost ([::1]:42625 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TGGda-0005XW-TO for incoming@patchwork.ozlabs.org; Mon, 24 Sep 2012 17:56:22 -0400 Received: from eggs.gnu.org ([208.118.235.92]:51625) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TGGdM-0005Pq-4J for qemu-devel@nongnu.org; Mon, 24 Sep 2012 17:56:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TGGdK-0005uy-TS for qemu-devel@nongnu.org; Mon, 24 Sep 2012 17:56:08 -0400 Received: from mail-qa0-f45.google.com ([209.85.216.45]:45367) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TGGdK-0005tZ-Q7 for qemu-devel@nongnu.org; Mon, 24 Sep 2012 17:56:06 -0400 Received: by mail-qa0-f45.google.com with SMTP id c10so3227234qad.4 for ; Mon, 24 Sep 2012 14:56:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=BYJAmZf7gButiKraWR4ekaKlv5kIRZDcrZTDLByH26I=; b=L5blMhP7gO6fdqlALnOP3kgrPSHHHhFpyRrCpMqEYEGRnbZMcB27EIKqQDKmk4Sswz T/S05BOh2izQWWwTqQwVrDa/7IlrkjFmEQb44k6Ii3ISEDbKDyUMF8XBTnV7peK7g8S1 8yB5ZwcNA+BxgE7otz3jwKme7p0eu1O17k812i0nHJLdcWX1P94ncoPlBGCL3bu0is4B qstANsT5kezx6h0mJ12Afe2GZBLdqjJE5zYFvM1bzMMVvrmRK03/xl+dOASEKjxyilEn U83R4NjuxWnOVk09vuv0IysSIirXAnVOKzc/hosWMPOQEklsqqhSSGAEPxu6wkkV3zU2 nHxQ== Received: by 10.229.252.196 with SMTP id mx4mr9044977qcb.16.1348523766524; Mon, 24 Sep 2012 14:56:06 -0700 (PDT) Received: from anchor.twiddle.home.com ([173.160.232.49]) by mx.google.com with ESMTPS id ck11sm27100748qab.17.2012.09.24.14.56.05 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 24 Sep 2012 14:56:06 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Mon, 24 Sep 2012 14:55:50 -0700 Message-Id: <1348523753-25083-5-git-send-email-rth@twiddle.net> X-Mailer: git-send-email 1.7.11.4 In-Reply-To: <1348523753-25083-1-git-send-email-rth@twiddle.net> References: <1348523753-25083-1-git-send-email-rth@twiddle.net> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.216.45 Cc: Guan Xuetao , aurelien@aurel32.net Subject: [Qemu-devel] [PATCH 4/7] target-unicore32: Call tcg_gen_debug_insn_start X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Cc: Guan Xuetao Signed-off-by: Richard Henderson Reviewed-by: Aurelien Jarno --- target-unicore32/translate.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/target-unicore32/translate.c b/target-unicore32/translate.c index b786a6b..36f4f2f 100644 --- a/target-unicore32/translate.c +++ b/target-unicore32/translate.c @@ -1861,6 +1861,10 @@ static void disas_uc32_insn(CPUUniCore32State *env, DisasContext *s) { unsigned int insn; + if (unlikely(qemu_loglevel_mask(CPU_LOG_TB_OP | CPU_LOG_TB_OP_OPT))) { + tcg_gen_debug_insn_start(s->pc); + } + insn = cpu_ldl_code(env, s->pc); s->pc += 4;