Message ID | 20210204014509.882821-76-richard.henderson@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp867989jah; Wed, 3 Feb 2021 18:53:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJz0Vu+UW/UZGBBCmZv9zfbHyaYYBeaDtqE4SA7QbU/H6W5sOYBnsmNi/RPp+5eEIfTKtPZI X-Received: by 2002:a5b:7c4:: with SMTP id t4mr8851796ybq.496.1612407183446; Wed, 03 Feb 2021 18:53:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612407183; cv=none; d=google.com; s=arc-20160816; b=tB/VolVU3tDW1/jqCCXSgLAB1oSk241N0kg1kH+XIloqnwkNeqKYXDb6j3DNZV1X6V 0YwR7z7BBoPQcU89PNQ035r0wIXzeXIfeXlciXXlyyqhTCNgw77PtOhV/RCFBUi7t9oc BNOZEi2+mIRAMVANFbj5/Q96lzr/ZyaBaqkql390aPrJmA0/wxRu1ZaERE2+rlbUak+7 KNtzD2BlRDQPcvTzlACCje+MKm1speqhe9R9JUsO7RIilVwx8xWOtNeLRRkWoWN2/Upq n5Q32eqBR4RLfLrQ9/9MbG4p67yCBq9mWjvMdqEsdSOhK127JKrHQ3CZafk33TA3INV2 8ndA== 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=p6E9LDuPBslW5lnZ+lbP25axObg1A1JUNAlm8q5oVbA=; b=b9kT/vbYsrNbekG+nwyLVYQJyDEQSBpOlWVIC0f7SBJfqHmGjD8gbIXboKrzwWPlcT ZylVGFJRQt6Dh4agKJ3V038j/IBsvOG2oXN5jV09nzb7yaSUuMRBDhyCfTltMdP+2b+T O3uoiUIodFxfH91b+KC6Uh6mGN3UcmQb/b7MN8iysUpE4bhKAL3HXQ/wEt5T4EH0hiE8 4HRoAahGkfsMDwuTWJM6Py7o4KAHOyZ25MrtogYeOtbGZD6zyUMWKjMTPopy3BXr0VKD QAr9dZl3SuphIKY3x0Ou/jNSptJdVk/lsiPL6VSGRyT65wFj9wTYaT9gDVYcnjrjH94B Wq5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XwqoYckS; 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 r141si4696131ybc.469.2021.02.03.18.53.03 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 03 Feb 2021 18:53:03 -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=XwqoYckS; 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]:46626 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 1l7UlS-0000ZP-Rf for patch@linaro.org; Wed, 03 Feb 2021 21:53:02 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:45518) 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 1l7Tk5-0006OL-9V for qemu-devel@nongnu.org; Wed, 03 Feb 2021 20:47:33 -0500 Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]:40260) 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 1l7Tjv-0004DZ-5s for qemu-devel@nongnu.org; Wed, 03 Feb 2021 20:47:33 -0500 Received: by mail-pj1-x1030.google.com with SMTP id z9so818955pjl.5 for <qemu-devel@nongnu.org>; Wed, 03 Feb 2021 17:47:21 -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=p6E9LDuPBslW5lnZ+lbP25axObg1A1JUNAlm8q5oVbA=; b=XwqoYckSabpVxvAGqV0DrFmktCk9t8RevaXgLASgoS8jTGXS56knh3iQTpNKfwZVuJ 9ekaPazK6bKUqj36k3lHPokMw5BneHN+ueeozJ7sWxNkeVYUZdMnGHvCSFoxZ/kSBnIJ nAkgPB6AJfCaSAKLpwxIc0Xce6m8n2JJqEydO/M3aSy0SNNrASKd48LxOFPbgyZXny8V J9ZgTvTFyxfGaVRWfPcBsIwcHaGS10bIQ1R2CsGy+0POjqbdqNxdRBHz7gqAa92w2HRm 4GMLF4n25H3KVGXJsGPZS+rjqJtjeX1tD77hrZik/qWrvBbTlU7LDfb2WGytQTWzKbKp Jh3A== 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=p6E9LDuPBslW5lnZ+lbP25axObg1A1JUNAlm8q5oVbA=; b=IIlTSnLLuSZZ2pwNalA/S5BuB/AKujQAYnJ9orTX7uNMwO6JT/KyZQ8LlOOJ4qCJ6a CjcOrZc/nFO9CUMFnVg+PySzUgKRfxDuuGKbqp9Yzo7br97qaftke12mVDAhmr2HJiLf nGPKi/wkT22ud3zU91UOstquc9nBD3lE4Mil5D43jRyl7bW9kzInkALk9mikC/xyi0HR uaWJj0p3KzbJXCbFeso4R4aadbHOB9M+Moxv4rdQKgWmsKPVputHJDLQdsdQjykF60yP tn/8pad6dySXLAO5Nr9a4l/GKy0nGTwC/nndhSFMmkmwsT6rmA0/GIgzrj5HZ238Thbz Blpw== X-Gm-Message-State: AOAM5337RL8bT4/kaBSPH8T0c2rS3mToAHyTNgYV4axG374kh7tv1sxm 8KlzlwjzAETehIEW7d2OW/VTCqeUa4wM9U+G X-Received: by 2002:a17:90b:4d0a:: with SMTP id mw10mr5870235pjb.217.1612403240965; Wed, 03 Feb 2021 17:47:20 -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.47.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Feb 2021 17:47:20 -0800 (PST) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Subject: [PATCH v2 75/93] tcg/tci: Split out tcg_out_op_rrcl Date: Wed, 3 Feb 2021 15:44:51 -1000 Message-Id: <20210204014509.882821-76-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::1030; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1030.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
|
diff --git a/tcg/tci/tcg-target.c.inc b/tcg/tci/tcg-target.c.inc index 6c743a8fbd..8cc63124d4 100644 --- a/tcg/tci/tcg-target.c.inc +++ b/tcg/tci/tcg-target.c.inc @@ -341,6 +341,20 @@ static void tcg_out_op_rrs(TCGContext *s, TCGOpcode op, old_code_ptr[1] = s->code_ptr - old_code_ptr; } +static void tcg_out_op_rrcl(TCGContext *s, TCGOpcode op, + TCGReg r0, TCGReg r1, TCGCond c2, TCGLabel *l3) +{ + uint8_t *old_code_ptr = s->code_ptr; + + tcg_out_op_t(s, op); + tcg_out_r(s, r0); + tcg_out_r(s, r1); + tcg_out8(s, c2); + tci_out_label(s, l3); + + old_code_ptr[1] = s->code_ptr - old_code_ptr; +} + static void tcg_out_op_rrrc(TCGContext *s, TCGOpcode op, TCGReg r0, TCGReg r1, TCGReg r2, TCGCond c3) { @@ -565,12 +579,7 @@ static void tcg_out_op(TCGContext *s, TCGOpcode opc, const TCGArg *args, break; CASE_32_64(brcond) - tcg_out_op_t(s, opc); - tcg_out_r(s, args[0]); - tcg_out_r(s, args[1]); - tcg_out8(s, args[2]); /* condition */ - tci_out_label(s, arg_label(args[3])); - old_code_ptr[1] = s->code_ptr - old_code_ptr; + tcg_out_op_rrcl(s, opc, args[0], args[1], args[2], arg_label(args[3])); break; CASE_32_64(neg) /* Optional (TCG_TARGET_HAS_neg_*). */
Signed-off-by: Richard Henderson <richard.henderson@linaro.org> --- tcg/tci/tcg-target.c.inc | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) -- 2.25.1