From patchwork Sun Oct 29 21:08:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 739071 Delivered-To: patch@linaro.org Received: by 2002:a5d:4c47:0:b0:32d:baff:b0ca with SMTP id n7csp846136wrt; Sun, 29 Oct 2023 14:10:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEJ0W/+zoKlHyfTvUNmSsHRjV688gPbzP3U+pP7iDvfHCHudpdK4bLhvcKe6jGfLML2QlvR X-Received: by 2002:a05:620a:172c:b0:778:96fb:736a with SMTP id az44-20020a05620a172c00b0077896fb736amr9360560qkb.57.1698613805704; Sun, 29 Oct 2023 14:10:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698613805; cv=none; d=google.com; s=arc-20160816; b=IK7x4+Ww3/6Oe4ov2yWEsJyF/fMMv9wWmqk1hlzls7hQTtITx+GoB0WfkEUzkaPq8u ebsL+cwYBYzkCMn797hsarYgsUkrM7H0aVNhZlAtbD5ahj23oCm/Tozgh02e8/rgcnwv 1mpeeSsZpnhXl42hfbtkiR626LhpKWeDLuW3liYlPDztYw/KJ8pjltDQ16E5v3e8KqNx 5v8a3N6Vjv7Y+hWWH2HCb+ewTZKb6lSWzrDEc0sokqCamJwuuVA1ap6hipEoZDrkYlQ+ WAbxjIdQ+1+GiAyYGIWGXuf+FTIlFVmGyaCliMXwo2iSo2jLea9vc/MX/3QUvHW0dv4k OdSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to: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=rBNU5zatbfNZ+9sFWvaKxmcKtFnGExknbp1MC3+RSvA=; fh=PnYt+qEB9tAfMKoqBm2xjKOFpYyFFGPudh5cVIoieJM=; b=k+ZrCuv91UsfbVziifuVwziUklF70t6VqAwb0OLbK/2lVRDM46zo9lSgKuhYDAa8PE yny/7COXWROmMWL8Q6joRUxYJzVQ40/xELNbw38aAmBM2Uqbl7ZG9bN2Nr7vkuTWxkbu EC4SHkhv9xNEYVh2WjXST07PgIrcRTSj6u97xzNEvWwvQKtLBWMdxtWaVT+qfupA0dSU 7LK8ikQKWFPP9hjOcYeQOPowAmhSE4yOLyjyH3G8xQHz4Y38Nl1Jz0noZZNlXMC46z4x 8ZiS1TgQhtb1/m1AgUrVH2vYzO0GzEIP1G7v2jtQpH8MvoC3cNdOd3yGTzQoTKIgqdxY vGJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=as5HsRu4; 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 x3-20020a05620a098300b0076da7802c1csi4478341qkx.59.2023.10.29.14.10.05 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 29 Oct 2023 14:10:05 -0700 (PDT) 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=as5HsRu4; 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] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qxD1p-0002g6-2i; Sun, 29 Oct 2023 17:09:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qxD1n-0002f6-1M for qemu-devel@nongnu.org; Sun, 29 Oct 2023 17:08:59 -0400 Received: from mail-il1-x134.google.com ([2607:f8b0:4864:20::134]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qxD1k-0005Do-5q for qemu-devel@nongnu.org; Sun, 29 Oct 2023 17:08:58 -0400 Received: by mail-il1-x134.google.com with SMTP id e9e14a558f8ab-357f59f76e6so13431265ab.0 for ; Sun, 29 Oct 2023 14:08:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698613733; x=1699218533; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=rBNU5zatbfNZ+9sFWvaKxmcKtFnGExknbp1MC3+RSvA=; b=as5HsRu4xiaucKfwWMXdLf151RSqo1yS2JCf/CIhPmOkRKgxNkk8qC9jlGKJGuzU09 +L/dA6V4FplEAVaBRL68MsWrD4dS/CLh1jFjvqm3MKbk+P3Z8Jj4UWAy1BWirclxoJmO WWAHyB64m9dIFk41dtXv59qE8K8PQKhj9YsvMhldhEFBX4ESbGGIHCi5D9334m6R0Cji F7jW8dzueabxqCjTj+qv5N6CI27h+trXmiPuK4p1+eK+qF3394Mmf22IvY0qQPVv0vDq YpREnoqV9W4HDepYZx0LoQHSXs1aMRczLuUNb3JlW4VFvuhIj/5ehkPTpt4NpOm1HOLj Av6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698613733; x=1699218533; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rBNU5zatbfNZ+9sFWvaKxmcKtFnGExknbp1MC3+RSvA=; b=R9KDJ7y1oAEe4LG8yX9jX6Q80stBccye12d7ZvSwWaXtA3O6x7494nNw6CNHVW903X RBJf4/qs7CxYjdBe8jVhCvZRg6QsbTUTz7jNXcmZWnB64Lu8JAL+znd63Yo1aUxI8XUG e0/TGDGSy0qtGaGLDvsoJ29mlm2RyVJtoH2Q+ZJYKgv4giHT234UNfJ18yw3gjNdWZy5 Tut/pQx6gXKWwJZ3Nua0fPwYmVGqHaRxJbdfA5zv26zXYxHDZ9X29wuAKcbLdJFMQFBE 5Fnw2d/Gc0xCrm9KxpWA3eLZiMn6Zvmzoc2S64f72t+wT83xPleTmzhZeaJaJJPgwpku YRIA== X-Gm-Message-State: AOJu0YxqOsnluW38yf7li7zFxh0f5Pn/BTRkBBrwNjPPqKfaLEZPHWAu Yp6Q6ZmTJVRQ/VrjIpxQckMDFqXVtq9H6io5UfM= X-Received: by 2002:a05:6e02:1be7:b0:357:7cca:418d with SMTP id y7-20020a056e021be700b003577cca418dmr12814784ilv.14.1698613733071; Sun, 29 Oct 2023 14:08:53 -0700 (PDT) Received: from stoup.. ([71.212.149.95]) by smtp.gmail.com with ESMTPSA id z11-20020aa785cb000000b006c0685422e0sm4622847pfn.214.2023.10.29.14.08.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Oct 2023 14:08:52 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 03/11] tcg: Move generic expanders out of line Date: Sun, 29 Oct 2023 14:08:40 -0700 Message-Id: <20231029210848.78234-4-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231029210848.78234-1-richard.henderson@linaro.org> References: <20231029210848.78234-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::134; envelope-from=richard.henderson@linaro.org; helo=mail-il1-x134.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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé --- include/tcg/tcg-op-common.h | 19 +++---------------- tcg/tcg-op.c | 16 ++++++++++++++++ 2 files changed, 19 insertions(+), 16 deletions(-) diff --git a/include/tcg/tcg-op-common.h b/include/tcg/tcg-op-common.h index e093f541a7..2134961a98 100644 --- a/include/tcg/tcg-op-common.h +++ b/include/tcg/tcg-op-common.h @@ -72,12 +72,7 @@ void tcg_gen_op6ii_i64(TCGOpcode, TCGv_i64, TCGv_i64, TCGv_i64, /* Generic ops. */ -static inline void gen_set_label(TCGLabel *l) -{ - l->present = 1; - tcg_gen_op1(INDEX_op_set_label, label_arg(l)); -} - +void gen_set_label(TCGLabel *l); void tcg_gen_br(TCGLabel *l); void tcg_gen_mb(TCGBar); @@ -121,16 +116,8 @@ void tcg_gen_goto_tb(unsigned idx); */ void tcg_gen_lookup_and_goto_ptr(void); -static inline void tcg_gen_plugin_cb_start(unsigned from, unsigned type, - unsigned wr) -{ - tcg_gen_op3(INDEX_op_plugin_cb_start, from, type, wr); -} - -static inline void tcg_gen_plugin_cb_end(void) -{ - tcg_emit_op(INDEX_op_plugin_cb_end, 0); -} +void tcg_gen_plugin_cb_start(unsigned from, unsigned type, unsigned wr); +void tcg_gen_plugin_cb_end(void); /* 32 bit ops */ diff --git a/tcg/tcg-op.c b/tcg/tcg-op.c index 6c826b46b0..a8cbad212d 100644 --- a/tcg/tcg-op.c +++ b/tcg/tcg-op.c @@ -300,6 +300,12 @@ void DNI tcg_gen_op6ii_i64(TCGOpcode opc, TCGv_i64 a1, TCGv_i64 a2, /* Generic ops. */ +void gen_set_label(TCGLabel *l) +{ + l->present = 1; + tcg_gen_op1(INDEX_op_set_label, label_arg(l)); +} + static void add_last_as_label_use(TCGLabel *l) { TCGLabelUse *u = tcg_malloc(sizeof(TCGLabelUse)); @@ -333,6 +339,16 @@ void tcg_gen_mb(TCGBar mb_type) } } +void tcg_gen_plugin_cb_start(unsigned from, unsigned type, unsigned wr) +{ + tcg_gen_op3(INDEX_op_plugin_cb_start, from, type, wr); +} + +void tcg_gen_plugin_cb_end(void) +{ + tcg_emit_op(INDEX_op_plugin_cb_end, 0); +} + /* 32 bit ops */ void tcg_gen_movi_i32(TCGv_i32 ret, int32_t arg)