From patchwork Tue Aug 8 03:02:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 711543 Delivered-To: patch@linaro.org Received: by 2002:a05:6359:d30:b0:129:c516:61db with SMTP id gp48csp1911633rwb; Mon, 7 Aug 2023 20:04:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFYXuFtXLGBICt8Cv33ZUNI3h+QIOyED6V6ZlExhrsUfF77InFRWy7onvGP8qw0eUNTCuRo X-Received: by 2002:a05:620a:2991:b0:767:1152:aca7 with SMTP id r17-20020a05620a299100b007671152aca7mr16227160qkp.36.1691463898324; Mon, 07 Aug 2023 20:04:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691463898; cv=none; d=google.com; s=arc-20160816; b=sw+3RaoKskdsJx0I5Lo64dsutmY57ArDmXU2AOQ/5YLl8avz4OveZz80qV8uqI9wpx uoRuebZeVWzatxngvVs6/FMD07FRWCl0ZwcWzO376t/8PGLgRwyDbJQvwy9Uh14TENYR tFSe9dujEDjFPgXT8m0xY9/Z85wFPeocXVjioARjMeniq/sKhO+LBJs3j2yQHgBHLXeP idW+TduvGf1PY559r2EX7Q9a+66A9IKQovnrmq0oLwFFeMYeh/NRRlPn0BmeLv93gL/H st/HKQlv7laAhVNIPFRUjLtneQVYaxUKoWNj5pNH7HK8tsOn8d9hCYSd5I/w8XqnbzTI Gx2g== 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:cc:to :from:dkim-signature; bh=6EwDdAjnwUPowWvaCh4C85jrngqIJ8regtvwyJyUpkk=; fh=54SyYXXl3ghnGdcQkJAiPGLp59KgHlkQMz7FX70zS0g=; b=TuQ4GEzEZJHmeeYAGlhcufqoSEyFHgvcNfVezdoTvacXNNyjOTFNapxr/ql+emh8o0 cNddCK0X7PBhL4/Mn+nOzT/9gIuNnO3G2cOCEFDoFPh7o6ZfvYb35fE8Wcs2+Vgq7Rdy 1xVNwYNcmmD0VxfbR92UknoFmDWaq7o90EAYCMLjq0L85b1O+fqMWaBh3GoQOWmmYUsU jBhyHuRoyrgkV1T4cpcR4aSh6kYgzkuKMkBb6JzpZ4W49Th7y9r4CTkXuuGFlvZ7FHAy 1Q7LXqR88ddRMJjfLQcILAdngQyOBmfyyHWU4Q7ksg5thNNFqN7nBupvBZYear29SpeQ sKXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cmyfsx4s; 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 rh12-20020a05620a8f0c00b0076c87073a06si5538383qkn.629.2023.08.07.20.04.58 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 07 Aug 2023 20:04:58 -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=cmyfsx4s; 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 1qTCzt-0001QX-NW; Mon, 07 Aug 2023 23:03:01 -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 1qTCzr-0001OK-VB for qemu-devel@nongnu.org; Mon, 07 Aug 2023 23:02:59 -0400 Received: from mail-pf1-x430.google.com ([2607:f8b0:4864:20::430]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qTCzq-0006ay-Jr for qemu-devel@nongnu.org; Mon, 07 Aug 2023 23:02:59 -0400 Received: by mail-pf1-x430.google.com with SMTP id d2e1a72fcca58-686d8c8fc65so3555815b3a.0 for ; Mon, 07 Aug 2023 20:02:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691463777; x=1692068577; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=6EwDdAjnwUPowWvaCh4C85jrngqIJ8regtvwyJyUpkk=; b=cmyfsx4s5KsAd/fy6+fkyMra+OvBCKCWoGbGe1umVDx6AI7ehKmP/KB73+umRqtfzo /C7XqRy4EAPpLkm/mAcSGPZxM2t0HCvHokJjpZ0LNgPXhMabkdKuG+UUD0KGT/CvMRpc j+CJgQOnePiAE+uTjS3i8uEpqGijSD9wVxRlKZKe+EUJjgtLJ9cRYnh7ScI6ZN1gjC9z C2ze8kCdjEjhyQeXeYWpCq7Oup9ChxRNCh5FWHEPeM/L9urfbbZ6f92runuZfH+7+tPL PKb2BfI7PLP99P51JIS3qnQk4KX+jnmLDKOpEGpW67qLjnyBxC06kdcXl6rEhyOMmG57 1xfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691463777; x=1692068577; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6EwDdAjnwUPowWvaCh4C85jrngqIJ8regtvwyJyUpkk=; b=C9k1tX3eq0xQFODvVU77CspLew6aaGmoV2kEx+m8PjO8U9LpxomLPY6VwzvJhqtQyF R9TdIsKUYVe2m8BPN7hxDCk1LNglgHhecZ3JmkWn+1rH/0gFkx7zRzeyfiKg8eWR/499 7Y3iU6ekCLJDbz8MtaKgLxz5b8cPP909QlEnqjDFFyV5lvts2z9L2Y4WfbJzUd8mnslw VIuO9naLQMYV++ELsDg6Iaru9CTykm7Dv8KlaFKRnlpZWprR3g4p/Ln/61FU64NBEM2j IzD7xO6C0RB1S2z4Dmf4E2c0h6dWEeiRLV8xFsVQACDZWMjvVX1DjqDwUhDyo7ZESn6i rHUg== X-Gm-Message-State: AOJu0YzrJMN82kaheRDRnQTEQbqrQwuiqTracHCgUahmI4e+tU0mwgU+ yLcLzswug+VhLKJkM/Qg8c/wxWOmXIiisekKlPk= X-Received: by 2002:a05:6a20:1612:b0:13e:14f9:294d with SMTP id l18-20020a056a20161200b0013e14f9294dmr11430325pzj.58.1691463777057; Mon, 07 Aug 2023 20:02:57 -0700 (PDT) Received: from stoup.. ([2602:47:d490:6901:e306:567a:e0a1:341]) by smtp.gmail.com with ESMTPSA id r7-20020a62e407000000b006870c50efaesm6903609pfh.9.2023.08.07.20.02.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Aug 2023 20:02:56 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: npiggin@gmail.com, jniethe5@gmail.com, qemu-ppc@nongnu.org Subject: [PATCH v2 6/7] tcg/ppc: Disable USE_REG_TB for Power v3.1 Date: Mon, 7 Aug 2023 20:02:49 -0700 Message-Id: <20230808030250.50602-7-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230808030250.50602-1-richard.henderson@linaro.org> References: <20230808030250.50602-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=unavailable 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 With Power v3.1, we have pc-relative addressing and so do not require a register holding the current TB. Signed-off-by: Richard Henderson Acked-by: Nicholas Piggin --- 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 01ca5c9f39..63fe4ef995 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_10) /* Shorthand for size of a pointer. Avoid promotion to unsigned. */ #define SZP ((int)sizeof(void *))