From patchwork Mon Feb 8 02:37:25 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 378465 Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp4324734jah; Sun, 7 Feb 2021 19:14:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJxdr7HUFML79M5GRrdTIFBCdv6Sk9nhn0Ggshci3cWq4c2+kl9dhbjEs13d3C4ydhtmCRAz X-Received: by 2002:a25:2389:: with SMTP id j131mr4115278ybj.67.1612754059701; Sun, 07 Feb 2021 19:14:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612754059; cv=none; d=google.com; s=arc-20160816; b=it0JbM9Y73T1w7Tg+3cPLECXfEVVEQcIR0bGQB19IRL4TZbCi00ermQZs6oI04tEKw tLxRPZlf0mJz9dHRhGgBvAMYUbo6eHWap5ODeYviwBVkPaszBvvulm+n9Diza8d/fOcs FPCjpAEXZV6NarA52ZuLMtIwxiLn6xJXTikOOb7s/H3z4pwCCXO1BZbpxv6/Q11KYVCk ZfjhTQWRPrZlDlrVxZpnQYr4BIMrhFu/CIL5ndbpXj7Nj8ApFy+m+1RBzZuP+wkppMIt XOgpcCVOLQhFKS3k7usr/+53EEJsircjnh5fnnRMGGoLBQeNHtYCwLIjxZR3m2ciFXGe gEow== 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=EsUj7sq9+NLQtwJZ+3yHUWsYmpE8j3VuEo3uruSYCgE=; b=yIsQ+qRhLdzNT8+MhqDrTjqKnjehSsUviV985KhiZ28P0Y4sdzJC5Y29SGT+E7rSPX yx0G7BcIb4Aoj3y0LAjU7mK8OilKxb7nf8MwvS91Ca88s6dPtcvb8RIhP9EfrBvH4WOv FwLzx5LijheOXWXDE08n+ORgilgS6mMxvopLsFM2HBxuyZm5XVD5dpyzWthlPOs8+L95 ULHG/IHyqmNcHnIitaRMT88fUx+n+AfB12pxLIrbhktvxQA96zPOLtvarPviD5F9F0v0 Vn++rM3Qk0OIrA7C7G0ervxMt6sIZSMhxffoBBbr8MDhAbu/M0fqsz/0mqxyFeVvQyY2 xu+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=I3RV6yxD; 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 k142si7452884ybf.236.2021.02.07.19.14.19 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 07 Feb 2021 19:14:19 -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=I3RV6yxD; 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]:56426 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l8x0E-0005RS-TJ for patch@linaro.org; Sun, 07 Feb 2021 22:14:18 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58240) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l8wSO-0002M8-0B for qemu-devel@nongnu.org; Sun, 07 Feb 2021 21:39:20 -0500 Received: from mail-pf1-x430.google.com ([2607:f8b0:4864:20::430]:40507) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l8wSM-00066X-CJ for qemu-devel@nongnu.org; Sun, 07 Feb 2021 21:39:19 -0500 Received: by mail-pf1-x430.google.com with SMTP id u143so2537821pfc.7 for ; Sun, 07 Feb 2021 18:39:17 -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=EsUj7sq9+NLQtwJZ+3yHUWsYmpE8j3VuEo3uruSYCgE=; b=I3RV6yxDpiEVIMpvKFvk2sYBjgHDvIWhj2ujjU57XlxVfOcqzedb7zos3gtfXB4gU0 moYbWN22Fov2ee5dvKyzvv/Zgt+bVzCXhcINuyTUD9UHjTa5IzmTeKCy2t2i4+ML1sDl 9l38JFaOs4CR55chaTqF5L8Y+NfCuBaKKpD4x5cz+y8JZqPqVDLxHurPJc8ED08sQ7eq 3GBHG2GhckiAgQAXCNMR6d+rF0ovXHTDoj+v9FJNayC+xVUQEW+sVnXcrZ6XqBCzMRZB Rs0itDtNth72GkT2XwBEA1lsfO6eWTslrjnt0guOR9lnQku0kF+tuGFM4sBXqrzpG4+j cLsg== 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=EsUj7sq9+NLQtwJZ+3yHUWsYmpE8j3VuEo3uruSYCgE=; b=FPk89TcArZGVHGyh/9Dm6X1vB/d5z5sX26+dCp7m9m2d2G/dH8fK64LiJ543+SK8xI 2sMuMp0hEru1AQw5NBD8Pqkfm3+N7j0BNm+bi3ztCC7jqm7/1MtS8PkzJD4Yok10U5Jq PYUjf5TVCJK/iXpRox0SEFTb6pUz1LAWb2DPkB5zh5eKWut1lKRTUbYYOhbFm1ficrok Ma4zyOqT1BZVIarikFojuZMBxZIMn8SuqO4/lG3KlYYS7tAkdZ3sDIuJSK95DQDq/r6M 8ndRYOLhh8dZgamHYW4ZOIRxgjZxmslwah7Z3MaR7ELy7lbN2rhTAzin0qTlKrPxyxWg OfQg== X-Gm-Message-State: AOAM533rXsokADi1k7+Q+m7lAD/2LKBl+LQI2BnzpTR6/pAyvW/dEHkT o2RbmAo7oPB/rmk0DHcBvMD8znDQ3yAu0A== X-Received: by 2002:aa7:93ac:0:b029:1dd:9d:2587 with SMTP id x12-20020aa793ac0000b02901dd009d2587mr3578196pff.48.1612751957092; Sun, 07 Feb 2021 18:39:17 -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.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Feb 2021 18:39:16 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v3 43/70] tcg/tci: Split out tcg_out_op_l Date: Sun, 7 Feb 2021 18:37:25 -0800 Message-Id: <20210208023752.270606-44-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::430; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x430.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 | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) -- 2.25.1 diff --git a/tcg/tci/tcg-target.c.inc b/tcg/tci/tcg-target.c.inc index 707f801099..1e3f2c4049 100644 --- a/tcg/tci/tcg-target.c.inc +++ b/tcg/tci/tcg-target.c.inc @@ -283,6 +283,16 @@ static void stack_bounds_check(TCGReg base, target_long offset) } } +static void tcg_out_op_l(TCGContext *s, TCGOpcode op, TCGLabel *l0) +{ + uint8_t *old_code_ptr = s->code_ptr; + + tcg_out_op_t(s, op); + tci_out_label(s, l0); + + old_code_ptr[1] = s->code_ptr - old_code_ptr; +} + static void tcg_out_op_rrs(TCGContext *s, TCGOpcode op, TCGReg r0, TCGReg r1, intptr_t i2) { @@ -408,9 +418,7 @@ static void tcg_out_op(TCGContext *s, TCGOpcode opc, const TCGArg *args, break; case INDEX_op_br: - tcg_out_op_t(s, opc); - tci_out_label(s, arg_label(args[0])); - old_code_ptr[1] = s->code_ptr - old_code_ptr; + tcg_out_op_l(s, opc, arg_label(args[0])); break; CASE_32_64(setcond)