From patchwork Mon Feb 8 02:37:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 378489 Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp4332405jah; Sun, 7 Feb 2021 19:29:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJyng7gP3YaUUGAc7o2j+12r/aGW2w6bSAJ3Jg6r/nJJUH9YI5KsyIiCsGW1iXn1s18oTZNn X-Received: by 2002:a25:949:: with SMTP id u9mr21110450ybm.72.1612754976342; Sun, 07 Feb 2021 19:29:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612754976; cv=none; d=google.com; s=arc-20160816; b=Xale0ywfauu56/eWVWSRiSr8t7Y+fx9Zkx/cLc7FcGSToPDuSuKoCOLwpWI1Jo4uNg H3672TTDrDO1/mr5d5CPrVXGLhD6r2uFFlQ94H6kzmJlKyDphLDbDt3n1XT94H7V/bPx qJEnDiBKcx8stHpxVjf0h++efL45dx5GxywWLK5PznDmc4WL5kPh1eoSYFh7Lu2vy3LV Ch1YLshuN9dnEgzI7Pp3pUMq2wpgdT4VXh/Lc/RyspX5vL7bhjKzElXbok4HwZ6EeH6e KhZjU/Q28VIDmxN3A5sXM1PwUH/chQxu+22tbNFqbiTNGgFoLqsWe92O4/jvE+aIZXA4 r1lg== 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=U6vgy+eZbPYyG1jAWy7EgBcy8osb27MNz8CXtTHCWWU2a8NiVdkSVc2D/dLK60QBIj YTzt9nb1lYINoCuPLay+dbbvBeG77HCZrzgkljLS351C5NHpKl84GYMTsMLWq6WbHpIx 9+Y0Rd3FUPCNhpzFCF7XZz/HU5fR5apclrwGwXJq1D+rJi3leCCnOM5dHziuRnP5quLu sQbTKzW71MBD1m87tmdIAdR7ppMPhDRugBolyPgGuS/xLm39C5Iqd61MaL3gX9hn/yP7 D85GkKL2/alovn2scbi1h2yxmyA+h7eBv0svkscHP2qClwCmIIK6MhzUitIW7rp3VlYW trIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jjwViyRr; 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: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 4si16141676ybu.389.2021.02.07.19.29.36 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 07 Feb 2021 19:29:36 -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=jjwViyRr; 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]:54830 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l8xF1-0002gE-Qo for patch@linaro.org; Sun, 07 Feb 2021 22:29:35 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58340) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l8wSU-0002YR-Ei for qemu-devel@nongnu.org; Sun, 07 Feb 2021 21:39:26 -0500 Received: from mail-pj1-x102f.google.com ([2607:f8b0:4864:20::102f]:37575) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l8wSS-00068a-Pp for qemu-devel@nongnu.org; Sun, 07 Feb 2021 21:39:26 -0500 Received: by mail-pj1-x102f.google.com with SMTP id t2so2760208pjq.2 for ; Sun, 07 Feb 2021 18:39:24 -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=jjwViyRrNl58tmryjYGRcWOvjbYFlTUAjjBMKPwitjRs02MEbJPWqu8vlhmTDPplOo wA4mHWi1Mk6EeytJGOpR319PJY/Jur7IsGwJCPGAF21Q3ODL7tnJyCgD0AbD/L9HEjbf sFPmTOxb7A6+IqDqrmptUQ2ZZT3+S/MKkwCeWje8/oLnbKMBbnfbf7k+kvwqsNVHEF6i pDBvot/AaibRxKUfELBOa5URnKXiHI7TSswza/yp42rKajA9/oPu/CTcSzNjypXfm7/I aJ/HfcbEKAQ9/V1eElnqOmbQZJkWY8g/Bpthe04UAEP/5eNnVRqu4LLbTifZKOt7vqEt 6CnQ== 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=PTGK7zqfHfbStEOCs+hHblO2i+UA1ONayQdA0tQW0/GmQQWUMB34wX65WXD2USa2NB DmqKjIxw2qPqx/kFVj+Par/8mq5aWzb+zWexZwZl+Cfuu65y5MtHJk1lBizbRe5uQrL1 qWQWgD+PQJR4yvAZasaH0Zd2gF+FIGu1xIiPDE14KCgTQGE/cePnAONT7vHL27g/ZfxB x+1EnRgkkeEaRqvqMiOkf2zMWwSYV3fWuGiEBrqb2Ptzc5wNL0QLft/BbQKU7XJ/riTb 3CWCDfTOJ8nhiUDcNh+CZXTHo3moCarnj4ZgUOiorp4uCT+gFuqaahr2MZzEQZktr5ps ELOA== X-Gm-Message-State: AOAM530dJ/C2fn9uV8zroAdE9/HLOxYuXBPp1Zh3Yj2isezEVYM+6I9r oqKIoKyS8L3rsqcyVg3tpgJYNPhdpDwL1g== X-Received: by 2002:a17:90a:f302:: with SMTP id ca2mr15188455pjb.233.1612751963443; Sun, 07 Feb 2021 18:39:23 -0800 (PST) Received: from localhost.localdomain (174-21-150-71.tukw.qwest.net. [174.21.150.71]) by smtp.gmail.com with ESMTPSA id 74sm650954pfw.53.2021.02.07.18.39.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Feb 2021 18:39:22 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v3 49/70] tcg/tci: Split out tcg_out_op_rrrbb Date: Sun, 7 Feb 2021 18:37:31 -0800 Message-Id: <20210208023752.270606-50-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210208023752.270606-1-richard.henderson@linaro.org> References: <20210208023752.270606-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::102f; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x102f.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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: sw@weilnetz.de 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 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)