From patchwork Fri Aug 4 21:33:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 710239 Delivered-To: patch@linaro.org Received: by 2002:a05:6359:d30:b0:129:c516:61db with SMTP id gp48csp219893rwb; Fri, 4 Aug 2023 14:35:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHu4saDwtFySlI5Bi5irbFdqKbYf46S4LP0XqKQpeNxxQvO5itNc0s2WIaWrYk0yj+ncz8D X-Received: by 2002:a67:f4ce:0:b0:447:6ba8:9a21 with SMTP id s14-20020a67f4ce000000b004476ba89a21mr2266325vsn.27.1691184939723; Fri, 04 Aug 2023 14:35:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691184939; cv=none; d=google.com; s=arc-20160816; b=k5udCDsYdyzMUqpgvsHeJi7CW861UVRRS1aRlzYyZMtNCW+eLfsdfKnpvcddY0erE1 K/u7JPwa3Kyd56foZhjGPYNAwXqLApyTfW2L6roN/u7AOmw53sqROJlIzOxQqus/zXnp qjw7FKHAeOH0BIiE5yWG+t9oVzU2g1T16RbUfu3pBnGB+5kV12O0XnP+piyO3kMSi6dP 167AD2zSAICWt0xs3hPHP9O/LvBjBL6UuSlQkFYKrBDDJ8jr7nUrAWf1cYcs1auuUuai 2f0zlNVIthwSsDMxXKqgpcH8YXVb8Lm9wgpWiDsgmSKOXPE6+1KeaMJsWr9L6U9vahpO kT4A== 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=O5oE4+VawxP53rOCLWmxeNePvIcIJOdD/vpw31mMUWo=; fh=oDpcRIg3pzWA7lEsXr2+AuYCXCfAwFhPMEhHe0xWPuA=; b=umd2SV6wgMs+/XDMLLjsrWJvbxwt0qbv92dwy4zRlYilAlcKiRgex/UKSZ52vFzxQV jX+DRXwRQSHkPQOK1tTUycbKw6fBa4tSec7UgaAJoeUUisJpLO5C4H+5+aVjwqS8gkAq g6D0T34FQFa+j1tBiezM7hjasnVOUm9RhmksHFkjflciZz36gCs2coyNJwY/fgdNLRpT BzDbu1dUR8O5DZ99Nqn3Vn8A14ia7XloYvLiNPQ24xSKpOeyVfF4L7BpdfLjn0lZcXiA i7eY0R9FGMzWsFfdCIijbQwYSkfRQUVdm9lyuv/GpXzgTZ0PIfdPPJMRH8g1PAnr+LCE 4nxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UPoCeymM; 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 g19-20020a0caad3000000b0063d622bcef2si1738692qvb.380.2023.08.04.14.35.39 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 04 Aug 2023 14:35:39 -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=UPoCeymM; 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 1qS2R0-0006Ex-2n; Fri, 04 Aug 2023 17:34:10 -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 1qS2Qw-0006BU-VV for qemu-devel@nongnu.org; Fri, 04 Aug 2023 17:34:06 -0400 Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qS2Qt-0001u2-Tu for qemu-devel@nongnu.org; Fri, 04 Aug 2023 17:34:06 -0400 Received: by mail-pl1-x62a.google.com with SMTP id d9443c01a7336-1bba48b0bd2so18423395ad.3 for ; Fri, 04 Aug 2023 14:34:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691184841; x=1691789641; 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=O5oE4+VawxP53rOCLWmxeNePvIcIJOdD/vpw31mMUWo=; b=UPoCeymMzGnTBs7rPD2U40pVUXs+pHUREb+urVevkjKv0vF8ykW7dQliPFvXp0wHSB 5WWouf2GCycui5PtlMcuHbjIUr5z+hThtlkGOMxGAMwPyw8jhDKAa3FxxfIWIrLnG6Le eWgKa5dWyxeqOw5xD5yfdVMqVCIpPzM9dzLf1sox377zTVr9pPb7SMj1/KWDo3HY0lP8 6xYoO+5tsFavuU62AU9VPK+2mD9GMJKjwBi1kmvNx63N0GRG321v7xGxJSM23xecHldO EzbzHa3rCnUC2uOhepDxjvmH749SToTT0ERQWAP4PoAw5fY/QlNVIsxeDGZuHrRrXP0d 4HIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691184841; x=1691789641; 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=O5oE4+VawxP53rOCLWmxeNePvIcIJOdD/vpw31mMUWo=; b=iHy/b0dY2J/QFBJVO8NnGtsDs1AATU+qjIvZTtjVUjIcgeTJ22UldtUCsXUrTo2zhr LcPtnPXaLd0kqLyLHnY7qvvlhLNXuU2BtoGWzXetjExcJ+CM3YwlhCuDh3MKqO6QZd4N yCkhoIjkTFPjmHFVvFX1vuixyDPcO4+xmDyCCtnWx0jE0MqsNyR6pGnSNps8l5f5WV6k MT2eZvxvpZlmGCBUvB/TIB+OekANVT8zS1VPOptZdJnUCXKPGd2RBKC1fNC8eq8Ww4ni OooaO3Q/JE9MvbvF5vv4GLug8QgiuqZArEN5diQM8nPNGIZaZoB0DimFzz9W61D2q+hd NPXA== X-Gm-Message-State: AOJu0YwK0VHAZPykBw2Y+OvuRw6CShy2yBj8XlLZUeoXWe4x3hfFa4fg eipObKC5Rq4f8EXpHKSeQ/LBzoIRTAaHaQD+vjo= X-Received: by 2002:a17:902:dad2:b0:1b3:fafd:11c5 with SMTP id q18-20020a170902dad200b001b3fafd11c5mr2594356plx.44.1691184841626; Fri, 04 Aug 2023 14:34:01 -0700 (PDT) Received: from stoup.. ([2602:47:d490:6901:1eed:f77f:f320:8b14]) by smtp.gmail.com with ESMTPSA id t6-20020a170902e84600b001ae0152d280sm2188662plg.193.2023.08.04.14.34.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Aug 2023 14:34:01 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: jniethe5@gmail.com, qemu-ppc@nongnu.org, bgray@linux.ibm.com Subject: [PATCH 6/7] tcg/ppc: Disable USE_REG_TB for Power v3.1 Date: Fri, 4 Aug 2023 14:33:54 -0700 Message-Id: <20230804213355.294443-7-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230804213355.294443-1-richard.henderson@linaro.org> References: <20230804213355.294443-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::62a; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62a.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 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 --- 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 e8eced7cf3..5b243b2353 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 *))