From patchwork Mon Oct 23 18:13:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 737277 Delivered-To: patch@linaro.org Received: by 2002:adf:dd81:0:b0:32d:baff:b0ca with SMTP id x1csp1664810wrl; Mon, 23 Oct 2023 11:16:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IENP65NF8yJdIuAz2SQHUH2Irewm3+kuQvw1pRFFS6Q/O3IWdPZBuMqXKgzz6aOwYIggWvR X-Received: by 2002:a05:622a:549:b0:419:573c:59a4 with SMTP id m9-20020a05622a054900b00419573c59a4mr15486531qtx.20.1698084966743; Mon, 23 Oct 2023 11:16:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698084966; cv=none; d=google.com; s=arc-20160816; b=nJ8CKZnqTveuZ/dhxwXpQgmmNLiTYsQ+niCA3jELnGyn69bUgo47uqch2263dtX6u/ g/WPwvf+G26QL8WMDPSWmEDEZFSEHQIeOZZhMl4v6r7RrJmXY2zyWWCS6v4rTKeAofwU WXyqgJQCU0bi9anVIaRvO80vlcFXjEw9d2jp07/7xvzauGes3hL5ORXxpQbBz8zAMcsp kcjD0QZXbZNmcJE1ySEuoa1MAkOmzS8sxHXvXIsM2z3v4cV9qFGbVa8p0lQnZKbPuNpz nMJI+aPF5WGEzitZ9jdLi1A4Zsgr/PN+3Hx/pHRF0nXAIZ8UuJs0xCv5otTlqOEJ1RU+ GGqA== 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=wgo3sS5iUyrU0Dzdzk24htDnmRxHdeX5tUMGq3kg/oc=; fh=PnYt+qEB9tAfMKoqBm2xjKOFpYyFFGPudh5cVIoieJM=; b=lQQGqyFz4pYd0VGMK/d+OsDfZ2H159N4+ipYoxj5gf7FEsU7CNqOC0kXuwuE2cJPns pyWH7OtKtlvpAcIMP79ciUzn6AtpZxjYEL9u9CVVHZlXub5d5inijuQoQa0uI4C369H0 vAoyZsRjp8nCQmtSDaTJRlVkuvuv1r7YI8PnDcEAIqWCk/3FPm1+CWF7GsLklEobSVQ9 nvYRvvnK5aw/Jv5mIoOpfxJuk87w+r9M01/MSQ3pIjowXeaE/5pmkS+duFA9t56ALv5V bMvUQ3v8Oc4BgYonJ3buO5VSU5XUeuKl60hnjd9Ntm7mWlY8TOFtuPyGYAoFY3RF44xi 7oSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nuCWpYmX; 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 y6-20020a05622a120600b004128bd63451si6130892qtx.493.2023.10.23.11.16.06 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 23 Oct 2023 11:16:06 -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=nuCWpYmX; 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 1quzR1-0005as-Qh; Mon, 23 Oct 2023 14:13:51 -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 1quzR0-0005aU-Mi for qemu-devel@nongnu.org; Mon, 23 Oct 2023 14:13:50 -0400 Received: from mail-pf1-x434.google.com ([2607:f8b0:4864:20::434]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1quzQt-00088l-M4 for qemu-devel@nongnu.org; Mon, 23 Oct 2023 14:13:49 -0400 Received: by mail-pf1-x434.google.com with SMTP id d2e1a72fcca58-6ba172c5f3dso2921250b3a.0 for ; Mon, 23 Oct 2023 11:13:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698084822; x=1698689622; 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=wgo3sS5iUyrU0Dzdzk24htDnmRxHdeX5tUMGq3kg/oc=; b=nuCWpYmXQ0Xa0byrZ6nhUREJCWoA3pbyLyP9W5uAVK8HcxTa4t5hE6NV8Ysqc4DHnB C0PkTisvoLSAnzAGq/37S8Q2hqcP3Dx7KRD+Y3y0OYfPbiJPwtode7n+cxTGYbctB9T0 4O+cxC/EZVei6swC/b70WNXlAGao0lweicPcgi831S/pVOnFdXq0qvLwBk/08ZYiHZ37 C4znF6mPRYErPeJoPNtPKuXDJZsOiORzLUX7kOQ1/K5/d7VC1WqGTF3HSs7+i4aqyUKj mWJ0ypPqQWYBsgMvqPmX0bLm6QWgm9IcSSEDORSjytBFx0CtMFYNd7kCfZFhlKhCow2s s7mA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698084822; x=1698689622; 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=wgo3sS5iUyrU0Dzdzk24htDnmRxHdeX5tUMGq3kg/oc=; b=A0lZpWptNEkhESgx0LVGaKUM6/SuhmpGfIgrqy1AtWS/kovsqE55eMP43X5nXnXOWn r96AP2j4hLKd0PY29b4QuZFni2LVPlEmGXPDBxnrGa2Arbsfw6Y9xrRQj0j68vWsT9cB 2ZFJzEQbc0mCyDrlnab4Ef/o5Ffco6TwIrc0ulG1CNsLZoe8wkmDhWJkXs+cZhNcI8jT GN4jPGy6f5cCQQ21e4ovkY+5hVwPGB48jsyt2Ozneq4Nt9wS4CQ68VSx6UhZ7LMYZN0/ Y1A1n1ypTCNvOm0egLwoVapc/yNNNay6dlRKor530I806npHDk52uOBTy3WVQUnuAUmt 0Xsg== X-Gm-Message-State: AOJu0Yw6HELxzxNPpGZouuWFf2m9sOH1xc7LnPprJ8SBOt1512yO97d1 S/RvOzeq37kE4vzwrnoYB34QohFYoRpZt6wurr4= X-Received: by 2002:a05:6a00:1a09:b0:6be:2dce:cf5a with SMTP id g9-20020a056a001a0900b006be2dcecf5amr7563022pfv.26.1698084822051; Mon, 23 Oct 2023 11:13:42 -0700 (PDT) Received: from stoup.. ([71.212.149.95]) by smtp.gmail.com with ESMTPSA id v10-20020a65568a000000b005b83bc255fbsm5205137pgs.71.2023.10.23.11.13.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 11:13:41 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL v3 13/38] tcg/ppc: Disable TCG_REG_TB for Power9/Power10 Date: Mon, 23 Oct 2023 11:13:04 -0700 Message-Id: <20231023181329.171490-14-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231023181329.171490-1-richard.henderson@linaro.org> References: <20231023181329.171490-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::434; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x434.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 This appears to slightly improve performance on power9/10. Signed-off-by: Richard Henderson --- tcg/ppc/tcg-target.c.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcg/ppc/tcg-target.c.inc b/tcg/ppc/tcg-target.c.inc index 6496f76e41..c31da4da9d 100644 --- a/tcg/ppc/tcg-target.c.inc +++ b/tcg/ppc/tcg-target.c.inc @@ -83,7 +83,7 @@ #define TCG_VEC_TMP2 TCG_REG_V1 #define TCG_REG_TB TCG_REG_R31 -#define USE_REG_TB (TCG_TARGET_REG_BITS == 64) +#define USE_REG_TB (TCG_TARGET_REG_BITS == 64 && !have_isa_3_00) /* Shorthand for size of a pointer. Avoid promotion to unsigned. */ #define SZP ((int)sizeof(void *))