Message ID | 20210204014509.882821-29-richard.henderson@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a17:906:48d2:0:0:0:0 with SMTP id d18csp905958ejt; Wed, 3 Feb 2021 18:06:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJxxvo0ovowfkh+p9nltn0p5vy9m0vWXvC6uwK0YaNtM2g5ExV/Xg3GAbClvhVcF4cofU9Fi X-Received: by 2002:a25:5582:: with SMTP id j124mr8653664ybb.309.1612404418403; Wed, 03 Feb 2021 18:06:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612404418; cv=none; d=google.com; s=arc-20160816; b=dcE+96F+W3cUZbrvRL2VYYpIKZ9kt/YwyEyribkAkEaCuHqvw7+8ts02GpJkD6WOQR 1UhIEik8WCHfrYKwkPsWBTc9R38GZrsvoqKfjaAMkqHxJ4gSdUPA3UXZUrBEx4an6kt4 NPvG1msshff4XZR/iKHkHkIcb9p+RadZPCnnrbwkRfK/cwOo+xgcK3G6xTOwyAkeC5hn 2Vc1ZAHVwXtyfdlrSu6qEWmzmqKaGX5M41s3XCPrEuTWYi7nVxi+fTZc7zyI3fZX4v9T aDjcw1LInPvoerf79fCWDgK8uFJaxdUT3RzapxWSUSJ7zCGBhLX0EEYhpyhLjiAXskz5 eh5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=LkYGLsnE5odHBLHKRYujD0SaJ6+i8O1fF0r+gNXotZQ=; b=ex1crNYeOoGp91TzSfgsKm+TjEtsRGLfU2qxRb4IUPvWKtZcM6KA2y/IXtlYW0nuDO ZrMBG6qwQARmaok2TovWqb4AHjTMo6XELe7RVTz4dIznaxz3lvfwT34pJPXy6YVW/koz VdN7UYAHD5r1cy6rOmKW6vZbmXx/EURfZwMvasNKvAsXQAqjt75Diw+LetEdonFORoFL WGft0Z9hqKxZKwaQkjZjPLuuXN4ZPeh6eYgjYGel1U4J+Y0Yk6i378g0Eg4DMEVIAQRo JklvBBfqH5MR457TvWziS+rTz1yImnQlb9S62mHgiAxshVzCfNjcff9iWmJetyZGkvWc zR3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eZsQKtec; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id t12si3975097ybc.276.2021.02.03.18.06.58 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 03 Feb 2021 18:06:58 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eZsQKtec; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:36062 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1l7U2q-0005xY-AU for patch@linaro.org; Wed, 03 Feb 2021 21:06:56 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:44664) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1l7Tiq-0005C3-2o for qemu-devel@nongnu.org; Wed, 03 Feb 2021 20:46:19 -0500 Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]:46282) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1l7Tif-0003tu-DK for qemu-devel@nongnu.org; Wed, 03 Feb 2021 20:46:15 -0500 Received: by mail-pl1-x634.google.com with SMTP id u11so864851plg.13 for <qemu-devel@nongnu.org>; Wed, 03 Feb 2021 17:46:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=LkYGLsnE5odHBLHKRYujD0SaJ6+i8O1fF0r+gNXotZQ=; b=eZsQKtecqisRl1xpSbVWYv80cWI/zD78JCH1ptNNjh2+TC8Fc+Ja6NzYWeK+ZRnzaZ Q/PzfWCgMdQlmJcDKwyxIIxpDRPtaud1B4Vu/bxujwbdXvTVa1cc/LKHHVTKxF/JGyqu 6as0fNPk94jAdE/BMUok5nzGN6KV7QvEdyvEtKnMOA5T/8wRf3MNMGt1dOvQ9xLmLhxI a4LbpVvw5xTTCZ5ogHPpZqbovD1MyTvvqoPjSzs9irbvfbbucN9QRGpC9A3ihvunaxIH gGmNQz9U5wJqgwSPOP2sGnddPIE68hzk984hqcv2d/74Ry8k5QUa1ORUvWG6IFdI1/zt OxQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=LkYGLsnE5odHBLHKRYujD0SaJ6+i8O1fF0r+gNXotZQ=; b=o0YSqnxc9SfLU+TeTNNHbncqhqFg5QCRuaSN0SRqvcAomsd/DoVG2+MiZlYfF/9dT2 A7JLGrJ6HJPeuM2g9L8CYc/2pIOPaTCwjyACQ+OnbkGn5fvmFEEDK+AWPB+8vDxDki0U DM/PUJO++C5ntlJIG78nJwRKNtbF6HOGqa2diDj/l59YrRjjil9hmdKQE3krlu0kD6lA 7Fx80LFUPkbeztUqfduP2uv1fvWC4nI9CyBCDa3KiXWq9PmDmRSZlhFA3JFOpzXEXnpg RtpeTYLz1OUxPr7fcjTnhUwKcC5s1Bm3P3LphYeL9Vv8+yY94iQoHM4Ke1dDoBDryCnZ Jl1Q== X-Gm-Message-State: AOAM533n1Nd3WIn2b2CsNix4vy2Nrl4wcjXu5tYgHbZMCH9eBILjC8T2 WxM8ufa9jR9bwnaAMwVpMak6AZzjLMSgiugd X-Received: by 2002:a17:90a:43a7:: with SMTP id r36mr6029354pjg.189.1612403164202; Wed, 03 Feb 2021 17:46:04 -0800 (PST) Received: from localhost.localdomain (cpe-66-27-222-29.hawaii.res.rr.com. [66.27.222.29]) by smtp.gmail.com with ESMTPSA id q132sm3835462pfq.171.2021.02.03.17.46.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Feb 2021 17:46:03 -0800 (PST) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Subject: [PATCH v2 28/93] tcg/tci: Use bool in tcg_out_ri* Date: Wed, 3 Feb 2021 15:44:04 -1000 Message-Id: <20210204014509.882821-29-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210204014509.882821-1-richard.henderson@linaro.org> References: <20210204014509.882821-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::634; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x634.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: sw@weilnetz.de Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
TCI fixes and cleanups
|
expand
|
Richard Henderson <richard.henderson@linaro.org> writes: > This is the intended behavior. Remove the assert on > the specific value passed, which can now never be > anything besides false/true (0/1). > > Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> -- Alex Bennée
Richard Henderson <richard.henderson@linaro.org> writes: > This is the intended behavior. Remove the assert on > the specific value passed, which can now never be > anything besides false/true (0/1). > > Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> -- Alex Bennée
diff --git a/tcg/tci/tcg-target.c.inc b/tcg/tci/tcg-target.c.inc index aba7f75ad1..1b66368c94 100644 --- a/tcg/tci/tcg-target.c.inc +++ b/tcg/tci/tcg-target.c.inc @@ -295,10 +295,9 @@ static void tcg_out_r(TCGContext *s, TCGArg t0) } /* Write register or constant (native size). */ -static void tcg_out_ri(TCGContext *s, int const_arg, TCGArg arg) +static void tcg_out_ri(TCGContext *s, bool const_arg, TCGArg arg) { if (const_arg) { - tcg_debug_assert(const_arg == 1); tcg_out8(s, TCG_CONST); tcg_out_i(s, arg); } else { @@ -307,10 +306,9 @@ static void tcg_out_ri(TCGContext *s, int const_arg, TCGArg arg) } /* Write register or constant (32 bit). */ -static void tcg_out_ri32(TCGContext *s, int const_arg, TCGArg arg) +static void tcg_out_ri32(TCGContext *s, bool const_arg, TCGArg arg) { if (const_arg) { - tcg_debug_assert(const_arg == 1); tcg_out8(s, TCG_CONST); tcg_out32(s, arg); } else { @@ -320,10 +318,9 @@ static void tcg_out_ri32(TCGContext *s, int const_arg, TCGArg arg) #if TCG_TARGET_REG_BITS == 64 /* Write register or constant (64 bit). */ -static void tcg_out_ri64(TCGContext *s, int const_arg, TCGArg arg) +static void tcg_out_ri64(TCGContext *s, bool const_arg, TCGArg arg) { if (const_arg) { - tcg_debug_assert(const_arg == 1); tcg_out8(s, TCG_CONST); tcg_out64(s, arg); } else {
This is the intended behavior. Remove the assert on the specific value passed, which can now never be anything besides false/true (0/1). Signed-off-by: Richard Henderson <richard.henderson@linaro.org> --- tcg/tci/tcg-target.c.inc | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) -- 2.25.1