From patchwork Thu Mar 11 14:39:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 397517 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp392084jai; Thu, 11 Mar 2021 07:05:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJxT/1+lxbEXIc8TcbP4XA6KLDhVX3PhGxmsq7KURVwGimA7al7Q7rpB8DaEtt6cwknAfQL6 X-Received: by 2002:a67:6786:: with SMTP id b128mr5600244vsc.9.1615475154290; Thu, 11 Mar 2021 07:05:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615475154; cv=none; d=google.com; s=arc-20160816; b=NV6jZpOvZXemDuDitmYEH09D9C2y/NWL6s5WwrkFZmR2F1phQC588BSzOhf734eO2I bjMTFWT9/IxRQNsH9Iv9vKprXaxZ+TtaB8p3dZEeT3cLjWigpFfJX7EbLwqGFsR0Li7b aw20WIj3BigwF38UrhVGjxyL/vJq14Z/ErCra5muqIM2PC26o9qRXAGNuBXEMLy8BKhq c+rQBtnf8x080vDsTnlxlqMgjDMVo0XEMddQKCBLoEDsFs2XHzYDzOfPgvvHkPtaWw+w whnF3a36oO4NnByqkIWZJXmEmFKXTIbB9r6TsD2DL3Nhz5H8GgaITs0w1iINmkviGlY5 XeHA== 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=6fN3MzHzuWIrC3R6bdCZxAnV3xyNnPemffGo42IAOp8=; b=lX8hCd3zoTrvm1F/qGXtxAOSCi5l0MuaDyMHgCjO2AqmGt8ol8W01flVpg4PDQOr3F 4ErXbeG7vMgdVyNg28jrWiKCGzsnuZGLtrwyr8tDAd7KpwTjmg0cAd0wBfkHiRsZfxqA MGRNOnuz/xXUQk92eYsxYrX6XDdFnmqqt/uQlPgZ3bzDzFoovRN07bOsT9ThxjmOsN90 X+yiZ8kpZU37GUbD21drALyYSaDEapuAndy+W7wuekbtWaSy6X6XKy3DwO60irq0nSUz a/reorxMRkOGT7vodL3FWoxJC3RAZHNAbI5ENS48boCH7WziKKW2YUOSDL33Y16ySsQs 9dcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=MTuNQ9gC; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id n8si615719uaq.99.2021.03.11.07.05.54 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 11 Mar 2021 07:05:54 -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=fail header.i=@linaro.org header.s=google header.b=MTuNQ9gC; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:37966 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lKMsr-00052C-KJ for patch@linaro.org; Thu, 11 Mar 2021 10:05:53 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40124) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKMUn-0003p6-6W for qemu-devel@nongnu.org; Thu, 11 Mar 2021 09:41:01 -0500 Received: from mail-qk1-x734.google.com ([2607:f8b0:4864:20::734]:41582) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lKMUa-0006dA-K3 for qemu-devel@nongnu.org; Thu, 11 Mar 2021 09:41:00 -0500 Received: by mail-qk1-x734.google.com with SMTP id x10so20777340qkm.8 for ; Thu, 11 Mar 2021 06:40:48 -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=6fN3MzHzuWIrC3R6bdCZxAnV3xyNnPemffGo42IAOp8=; b=MTuNQ9gCeohA47mvBzZsQSGXrYhGucs931Q4ICP2ABA9h1qVtFMIeiq3yy8NaR9Pwa 4p1d5UzhgFWaHWHMyU0EwunBaLa7BjwWjcRlTQZtpTYBcIajbwOG02+u1mvgACxs7Of5 LdyFMHIQCtXIaFb4U0jrLmhxlXrQ32fypgF+va+KTwnIv3uWZ8bFquWfqxXEneSALOCD dlBpYR6W4KHmY9o5fDGoVbCBRGv9dUml7kAY69gk1H9J0FGpAPd09zhkwnqL/KUS1Jwu TLtfj5fqOcRWUQcFol3E3wycQ6vh/LPTe2VTZgIqxZlHRIX4CeaAq0uXC76rAM5JCuj4 HtIg== 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=6fN3MzHzuWIrC3R6bdCZxAnV3xyNnPemffGo42IAOp8=; b=g0Zf4NJWnJZh4YYuhVECprgq7NMTalYLhJ9z0OpWU4srWptRsctlF2UlbuhiApiGaS qD03cz6mVvTQ7d2OGwnifwRJZcrf+RVq3FwD/0smntBlxji1QSIg+n5s/0+xCoYrD1Xy aUrwrSXtBoTa+5Uq7h/mVTck9faxNlf2OmbQ8adbvXeoi09MeAot37pR2xHGRFiE/L1M KH7dybSF7oCY93pZJ/wreTyA/3q1c9noiYPeIKovXRw2tZYBCnbw3JrkSTqXFv/sNfIw 1IFPZ0Dw1e/BQHC2m2xNca1VfY0OdXXrDQdzB4bh/z/Pvtw8aEE17MLBqps3RM9rsBoy yiKg== X-Gm-Message-State: AOAM530GzVbIkjWNtmVIcg3CEctGiM2wDrTIRNtSZtKSh7+2/Qkq5/+e kVk91TAHKvKW7GvCmaWtQXBUO/zMip3v/iS4 X-Received: by 2002:a05:620a:1593:: with SMTP id d19mr7562971qkk.83.1615473647471; Thu, 11 Mar 2021 06:40:47 -0800 (PST) Received: from localhost.localdomain (fixed-187-189-51-144.totalplay.net. [187.189.51.144]) by smtp.gmail.com with ESMTPSA id d84sm2070324qke.53.2021.03.11.06.40.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Mar 2021 06:40:47 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v5 34/57] tcg/tci: Split out tcg_out_op_rrrbb Date: Thu, 11 Mar 2021 08:39:35 -0600 Message-Id: <20210311143958.562625-35-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210311143958.562625-1-richard.henderson@linaro.org> References: <20210311143958.562625-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::734; envelope-from=richard.henderson@linaro.org; helo=mail-qk1-x734.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=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: sw@weilnetz.de, alex.bennee@linaro.org, f4bug@amsat.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Richard Henderson --- tcg/tci/tcg-target.c.inc | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) -- 2.25.1 Reviewed-by: Philippe Mathieu-Daudé diff --git a/tcg/tci/tcg-target.c.inc b/tcg/tci/tcg-target.c.inc index 8eda159dde..6c743a8fbd 100644 --- a/tcg/tci/tcg-target.c.inc +++ b/tcg/tci/tcg-target.c.inc @@ -355,6 +355,21 @@ static void tcg_out_op_rrrc(TCGContext *s, TCGOpcode op, old_code_ptr[1] = s->code_ptr - old_code_ptr; } +static void tcg_out_op_rrrbb(TCGContext *s, TCGOpcode op, TCGReg r0, + TCGReg r1, TCGReg r2, uint8_t b3, uint8_t b4) +{ + 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_out_r(s, r2); + tcg_out8(s, b3); + tcg_out8(s, b4); + + old_code_ptr[1] = s->code_ptr - old_code_ptr; +} + #if TCG_TARGET_REG_BITS == 32 static void tcg_out_op_rrrrrc(TCGContext *s, TCGOpcode op, TCGReg r0, TCGReg r1, TCGReg r2, @@ -538,7 +553,6 @@ static void tcg_out_op(TCGContext *s, TCGOpcode opc, const TCGArg *args, break; CASE_32_64(deposit) /* Optional (TCG_TARGET_HAS_deposit_*). */ - tcg_out_op_t(s, opc); { TCGArg pos = args[3], len = args[4]; TCGArg max = opc == INDEX_op_deposit_i32 ? 32 : 64; @@ -546,13 +560,8 @@ static void tcg_out_op(TCGContext *s, TCGOpcode opc, const TCGArg *args, tcg_debug_assert(pos < max); tcg_debug_assert(pos + len <= max); - tcg_out_r(s, args[0]); - tcg_out_r(s, args[1]); - tcg_out_r(s, args[2]); - tcg_out8(s, pos); - tcg_out8(s, len); + tcg_out_op_rrrbb(s, opc, args[0], args[1], args[2], pos, len); } - old_code_ptr[1] = s->code_ptr - old_code_ptr; break; CASE_32_64(brcond)