Message ID | 20210311143958.562625-33-richard.henderson@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp389076jai; Thu, 11 Mar 2021 07:02:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJxL4Dq+lBT6tmnYS4BsTd360Xfoxe6d+XwQpu3VaY4qoYQqmI8DqEdFfxTBak1CNGKGjIwh X-Received: by 2002:ac2:4857:: with SMTP id 23mr2567064lfy.136.1615474977700; Thu, 11 Mar 2021 07:02:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615474977; cv=none; d=google.com; s=arc-20160816; b=L0Zlr6/M5F7p8yphsWVKlHaVz8Dfb99gJT49eOvBBJkOAI0HB+LrOT439CW+pvS0Pw priUJWiv/xVKtlNMjet7rSoZ8FjOgdFEcLNfpea5cbK59OmEdRDvtcLBIxddBpkAzJ3h 7ZKXF/gSCdiksk/pejaeOvOlvDjwKPzmNEbo9s+Bg/pR6aNj5YN5VuwEY1xmwKA7iRvD A7YoMZKnXa4KebPTnc0ExIYhfdNZoAINfLdDd4MLq6Xh+US5CwH3pjQZ1yihLPzIisjm wJ/ZvHjzI932DyC92oggoHkFU4jJdSjEh8f0E90w7fwjYhMO9vgjg4DshBTf+lAuFKsV qg2Q== 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=QUs6bZlAERttu34ccVgcqABRUHJrBFMHH0LXLYX1oZo=; b=IsHFsbQi/EJbERjdjy8ebI9PWHaz1mk/prwZQjt/r+0pjdoUi1Iz6J4sn3NZaZa91B HWC6wLTfsWgjAsWfogq22rMDo616t3qrAqjeH7a4ySRxUUCX8akfEG3jKqKe3mKcyP1M DxTP0f3Kv4PUdGD+PUi3B+R67q/YQYx+6JIwSfwb8yGqCgMImOyLAELWquVvOPKW85pM 67b4t9Lnlzb87sLPviigWQFZ6i/1pLOw1HlHozGw7H+6oSPO6C3IPFO1Z2GGMKCw5qhT uEoMbeWQt16ZW3NIAKdFXKvwHshQMUqGPmSn190bCywxRnyqU08dH55lfR/MG1i0HMKU tcpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b="cL+/kNiE"; 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: <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 n5si3335265lfh.549.2021.03.11.07.02.57 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 11 Mar 2021 07:02:57 -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="cL+/kNiE"; 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]:57706 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 1lKMq0-0001DK-Gi for patch@linaro.org; Thu, 11 Mar 2021 10:02:56 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40056) 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 1lKMUd-0003ml-7z for qemu-devel@nongnu.org; Thu, 11 Mar 2021 09:40:51 -0500 Received: from mail-qk1-x72e.google.com ([2607:f8b0:4864:20::72e]:35043) 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 1lKMUZ-0006cx-Ss for qemu-devel@nongnu.org; Thu, 11 Mar 2021 09:40:51 -0500 Received: by mail-qk1-x72e.google.com with SMTP id d20so20806331qkc.2 for <qemu-devel@nongnu.org>; Thu, 11 Mar 2021 06:40:45 -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=QUs6bZlAERttu34ccVgcqABRUHJrBFMHH0LXLYX1oZo=; b=cL+/kNiEGB49mzbGLi58RnhBMxPfn+1KKr5kYd62mCe9EP5UvP3xr6xZqN94o5y0xc 7YaFhJF3MYQtAacTWLzVV7Ap5yYZDLXHuHSEelZm7bqIZW6+fRoX6y4Lv69ly12UqiRC OmAfOdy9WdYMexZ0hnOwxv8gAJ8HGpP6zPVIIspWBrrGdTOncWGkU8j2ZxWRIiycW0Gz 2SGxLOmNpEY/nyW/USvXoo0RGB2QJiKgHCO6pLwU1gz3aKIYpui5j27eTBb+l73/zyox GEIk2vmrAasNGRbQ9fgSEcXCSr4UdyIDUEnK+k0qUv7+WFdM+TcJDLT1CbP5CEN/Wa99 9+6g== 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=QUs6bZlAERttu34ccVgcqABRUHJrBFMHH0LXLYX1oZo=; b=Fo/yAcIuXLRVCDoi139wPFXnFie91B+vKN7eZBu3hd+niosAbrpivS73ANXDibPH9+ KV72FU/J8Ze5xG4ILzXWBEk/dR7vYOduyOmPwh+bkopQxoUx9KnCukdtTj7zCOKXOcpa GKesi7IBVy4Uxw3mCuSAfoF99peFAXlw2ehp4MvWH61tYm5uLetCWyeHEO+rdAM7rtz5 PKMqu9+TKGtJhf/fJkDgHD/d4ayAQjASB4ae77KbXRpND3rl4kpLeYGXUydHxpl60+n3 rUC5WBxZskvXNhQPW33P8Q/Bz6Ms+56udHJJG9gFuYX4rGu5RsUGwWvMR3b+q0Ef1eJc mkRw== X-Gm-Message-State: AOAM53187ICSO7oH8E4fkIFHi8Bv8q3YsoacV5nNuR3fEJGTto6aDoDw 4unszltKMfty2Jxqj4jlfMecyLuhvwrrKVE/ X-Received: by 2002:a37:a9cf:: with SMTP id s198mr7487943qke.143.1615473645062; Thu, 11 Mar 2021 06:40:45 -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.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Mar 2021 06:40:44 -0800 (PST) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Subject: [PATCH v5 32/57] tcg/tci: Split out tcg_out_op_rrrc Date: Thu, 11 Mar 2021 08:39:33 -0600 Message-Id: <20210311143958.562625-33-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 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::72e; envelope-from=richard.henderson@linaro.org; helo=mail-qk1-x72e.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, alex.bennee@linaro.org, f4bug@amsat.org 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
|
On 3/11/21 3:39 PM, Richard Henderson wrote: > Signed-off-by: Richard Henderson <richard.henderson@linaro.org> > --- > tcg/tci/tcg-target.c.inc | 21 +++++++++++++++------ > 1 file changed, 15 insertions(+), 6 deletions(-) Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
diff --git a/tcg/tci/tcg-target.c.inc b/tcg/tci/tcg-target.c.inc index 546424c2bd..5848779208 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_rrrc(TCGContext *s, TCGOpcode op, + TCGReg r0, TCGReg r1, TCGReg r2, TCGCond c3) +{ + 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, c3); + + old_code_ptr[1] = s->code_ptr - old_code_ptr; +} + static void tcg_out_ld(TCGContext *s, TCGType type, TCGReg val, TCGReg base, intptr_t offset) { @@ -454,12 +468,7 @@ static void tcg_out_op(TCGContext *s, TCGOpcode opc, const TCGArg *args, break; CASE_32_64(setcond) - tcg_out_op_t(s, opc); - tcg_out_r(s, args[0]); - tcg_out_r(s, args[1]); - tcg_out_r(s, args[2]); - tcg_out8(s, args[3]); /* condition */ - old_code_ptr[1] = s->code_ptr - old_code_ptr; + tcg_out_op_rrrc(s, opc, args[0], args[1], args[2], args[3]); break; #if TCG_TARGET_REG_BITS == 32
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