From nobody Fri Oct 24 20:22:35 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1518664620619971.2328923057131; Wed, 14 Feb 2018 19:17:00 -0800 (PST) Received: from localhost ([::1]:60123 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1emA2b-0005Wt-GS for importer@patchew.org; Wed, 14 Feb 2018 22:16:57 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43272) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1emA0E-00049P-K6 for qemu-devel@nongnu.org; Wed, 14 Feb 2018 22:14:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1emA09-0000dJ-Ph for qemu-devel@nongnu.org; Wed, 14 Feb 2018 22:14:30 -0500 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:59041) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1emA09-0000ck-L1; Wed, 14 Feb 2018 22:14:25 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 5BE11209A1; Wed, 14 Feb 2018 22:14:25 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute4.internal (MEProxy); Wed, 14 Feb 2018 22:14:25 -0500 Received: from localhost (flamenco.cs.columbia.edu [128.59.20.216]) by mail.messagingengine.com (Postfix) with ESMTPA id 11FE27E3E0; Wed, 14 Feb 2018 22:14:25 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=braap.org; h=cc :date:from:in-reply-to:message-id:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=mesmtp; bh=hvPOvveXqbM4uf qfRXybCT7KwcVT5mWZ9YMbmEpdDw0=; b=uz6RNQKCeouvirbdOiMyT5BAduuCL5 jmbe20FUy1cGlWJxpOS8SjKfkMxlCuhNBLE/bPwpguhwYJeLukd/ecOjmTe68U7t z6IG0x1LvcB8YDhJ06S8pnBgiDbVmuUz9jMSzghFFQ6g3/MIpinZ9iGtnim/Px9o m1hbRVRBWL2WI= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=hvPOvveXqbM4ufqfRXybCT7KwcVT5mWZ9YMbmEpdDw0=; b=ZIwcpv4u zSUSN9YnQNrqV2ByXkTymWIhlAK+BXo78u72sJs1lbhzrvTN49N5en9A0X8ZOvJ7 /Mr6ZReW3FgeO0+dkhoRBWh8ITPGnL4Teae0Z57zz1FlPEXLGIMOq24BLNzCxINn SRUekR0TdKw1YFfVPdLnpdMfVmnEysRkerxmy50y2ZZgG27urXJlllgoKnR4Ni4m v8WbLciltRfJjHeXXxd2uP4xzNY509VCjZTTpyjbMCPCRuI5euvcthpSW+nyXexI 8aM70Qy4TX+rDUh4McabTVTMBzyH+sMxYXKF00ya0ThfBrQz08jN9xIFTL/F6VqL N9bOZonAuU124Q== X-ME-Sender: From: "Emilio G. Cota" To: qemu-devel@nongnu.org Date: Wed, 14 Feb 2018 22:14:20 -0500 Message-Id: <1518664462-2960-2-git-send-email-cota@braap.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1518664462-2960-1-git-send-email-cota@braap.org> References: <1518664462-2960-1-git-send-email-cota@braap.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 66.111.4.29 Subject: [Qemu-devel] [PATCH 1/3] translator: add retcode to translator_loop_temp_check X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Gibson , qemu-ppc@nongnu.org, Alexander Graf , Richard Henderson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" This will allow us to print further info from target code. Signed-off-by: Emilio G. Cota --- accel/tcg/translator.c | 4 +++- include/exec/translator.h | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/accel/tcg/translator.c b/accel/tcg/translator.c index 23c6602..f409a95 100644 --- a/accel/tcg/translator.c +++ b/accel/tcg/translator.c @@ -23,12 +23,14 @@ (1) the target is sufficiently clean to support reporting, (2) as and when all temporaries are known to be consumed. For most targets, (2) is at the end of translate_insn. */ -void translator_loop_temp_check(DisasContextBase *db) +int translator_loop_temp_check(DisasContextBase *db) { if (tcg_check_temp_count()) { qemu_log("warning: TCG temporary leaks before " TARGET_FMT_lx "\n", db->pc_next); + return 1; } + return 0; } =20 void translator_loop(const TranslatorOps *ops, DisasContextBase *db, diff --git a/include/exec/translator.h b/include/exec/translator.h index e2dc2a0..8833340 100644 --- a/include/exec/translator.h +++ b/include/exec/translator.h @@ -139,6 +139,6 @@ typedef struct TranslatorOps { void translator_loop(const TranslatorOps *ops, DisasContextBase *db, CPUState *cpu, TranslationBlock *tb); =20 -void translator_loop_temp_check(DisasContextBase *db); +int translator_loop_temp_check(DisasContextBase *db); =20 #endif /* EXEC__TRANSLATOR_H */ --=20 2.7.4