From patchwork Thu Mar 11 14:39:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 397518 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp392095jai; Thu, 11 Mar 2021 07:05:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJywLdcM2y+yeZ/qU+ZldWMctHFkIvzPqyTxDFLBq5lo6SL5+OllHwMm+7cpt8d5F8IOzo/y X-Received: by 2002:ac5:c0cd:: with SMTP id b13mr5214007vkk.16.1615475155084; Thu, 11 Mar 2021 07:05:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615475155; cv=none; d=google.com; s=arc-20160816; b=l2mYGrJHCi+JnOwG7isc7cfa9HKN7ZXn1Ye1aHtyqrhdCOibo6s9rb9OK2AiQAGVzN zn07+vDsFJ/dal4yOfVP5zyclM387Aw9SleeKrBTfQcaEUDBHKuf0c1i1559eTo0U0Zw AUWJmRJPvgE/+NZqJovMUtLBkTCUINoWZiKwsn+d5ATFW4lLs1QUUxJvcAoawlbODUsx Rw9NSddIGfWWljTJyaGJgOWtVNS1nxEKI7WYgbsLfXRWeycNBSYjsAxl2UX7UyqVLT74 Y2WHQ/e11v8jY111PlvCCDlPF/u68Xdflw/YA/qFaTUzuHUaB/sBRuK00Fn0tBW7Iflb 3BNw== 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=ilOhAtS9zelpMdDKUG0PWr0qr5SKb4FAty1I/qiAc2U4jBVz/x1gQwekukrheA0XLj ptMvZf1t2Y/Wzo6ETPKQOxDxqZaDTv6r6K0OE0Xk/ewAj5TS40v4sNCNeqgdnbYIRGFk CFXg4CnvQXKhxci36MBzSNo1KmQdkQxkt6nWbFTqQshHUdQrc+93gsHmZHXUgStqS3d/ 9tYfCsmEC2+x7FWuLPLPUCDN41QEnnqaxqZ5SkW/941HVTHAYeYURZgH13pJGEmRqG3V ff8brV+sE1d5eHEgi+VNsuTdbbOL54Q4cfnFJ6gWoVc8A4MAkhbXMqko0XeMHUdJXJ4X qYLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=py20Uqvx; 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 b23si466494vsh.200.2021.03.11.07.05.55 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 11 Mar 2021 07:05:55 -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=py20Uqvx; 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]:38076 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lKMss-00054k-D0 for patch@linaro.org; Thu, 11 Mar 2021 10:05:54 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40010) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKMUa-0003lc-5p for qemu-devel@nongnu.org; Thu, 11 Mar 2021 09:40:50 -0500 Received: from mail-qk1-x72f.google.com ([2607:f8b0:4864:20::72f]:34276) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lKMUS-0006bE-V4 for qemu-devel@nongnu.org; Thu, 11 Mar 2021 09:40:47 -0500 Received: by mail-qk1-x72f.google.com with SMTP id t4so20834686qkp.1 for ; Thu, 11 Mar 2021 06:40:40 -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=py20UqvxhJh+FIvFAI9mq3TUgusl0xUuCs3JDi+FVDIiVBLMS01JIpPcrT5wim3RTQ OVQgmnOoBpDItKkmOyU6l5hBdIuJTNQIxDDXhAZqXCqvtaMo4lZGXS/php3Yjpv/pje/ mLVCbhAWMNpwD2prMnyZPBnZjiT+0N1jhkVQJ1HXrmNsQzZQ2Ic/s/96Wr1Xfd8q41aX u9JPXsRWT9DF0j+Le/Ip550k8G2+ccriJZ6lfuofAzrZyitZkDFL5gdYN4KVFpdVkqZL HENfREZCUFQVmcYXDHoh6IU/CHBI+184+5k7tAJtRsGTo1m36xbI1rbTf63jwuqGdecy /DLQ== 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=RPXnJ3KP3EBILF69GeJcvFtsjwQwhdbB6PgQuoJKiN6exsNJieO7+i8efdWl+EF+0H qFZThNtfbTDys9L/tJg/3acluAXOD0MMzuVLo+aa4Phqj3fU9h4wgLnocsiOqH3eD9qz md4OmPKXCcJiAn80UXyYHTcdgbgfvaioZQQq/UQ2Uv510YzTF4qCl55HPjReBU585srm x6MmOIp24TRdXFBbkBI3lPV9nqNXQg2Ef1sU7356AviutyNVE/iuXFC/8V0EY+tXKTL/ j+f4WHXnU3G0km/4sn5hqQzL1yDmZpxCaw5IgUHQxTjKrawbRRcHzJ1SH6YKHPF/6GXr wrrg== X-Gm-Message-State: AOAM532+Sv3sOoz00I6NvYgj+QeqhxW3o19qN9/wH2uXDtKcHhxOIiWa RvvbiQbeFOvsKrDWcxgN75kTUeq7ety3/ssR X-Received: by 2002:a05:620a:798:: with SMTP id 24mr7909654qka.493.1615473640201; Thu, 11 Mar 2021 06:40:40 -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.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Mar 2021 06:40:39 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v5 28/57] tcg/tci: Split out tcg_out_op_l Date: Thu, 11 Mar 2021 08:39:29 -0600 Message-Id: <20210311143958.562625-29-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::72f; envelope-from=richard.henderson@linaro.org; helo=mail-qk1-x72f.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, 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 | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 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 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)