From patchwork Tue Aug 15 19:57:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 713802 Delivered-To: patch@linaro.org Received: by 2002:a5d:4012:0:b0:317:ecd7:513f with SMTP id n18csp1968452wrp; Tue, 15 Aug 2023 12:59:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGhmH85f1FfV102UjQMKsZFIO0bUtYavbvEQqkD2Lft97/1Op18IxghczdpVCTOwG6PpH27 X-Received: by 2002:a0c:b29a:0:b0:63c:a22e:ddaf with SMTP id r26-20020a0cb29a000000b0063ca22eddafmr14090594qve.16.1692129586398; Tue, 15 Aug 2023 12:59:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692129586; cv=none; d=google.com; s=arc-20160816; b=ZYEjkH8QpO7wCBGLzbBO571swbUAdE7U1hYmxz1iJ0fRAgfHeTtUgKsCJ5BasKjDnR bPD+bfoDGfwV83VSy0l0o+l4KHfKMcA0TiJ1gFrIoAX3C2ea3EAMnRjiFwBrtekVSTUo u5FnwquzgZ3HGCVKrR3fobAvqy9p3XVciL1fKTn1mUzJ+Eq0G6wt9qe+0U0vA2u/rbqq WoWaUShQiCnYZxnKNl+fh0BBudVVra+d3mo7HvcMSD0C87bUQ/8VIU+tjasU1DdGQ7/h X1QqXENw+bx5v75ZHEH5KaP6A1f9xTSGN1vJ6LRT6hfKktv+7JP6akeKiL+nnldkgdcu shog== 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=kahnV3oB+xxgo9j/7zC+dhuzAxQlheFsZwXl/+I/CfE=; fh=1LlI9qg4dDC6jzYzk4mr2RaPQDh8MKMNLXu5CCRW41Q=; b=XpKShbUx/o6/LXcJMdU0TerCqdV+JoL9TFDjsv2+KSLystay7SzhsXus24czjnb2n5 7Zn3ik39hKDkCvAMhJN93sxUty3LjisY9bdmFQvQ3sCuM863S3T38yYy4+OxLb9jV30e lOOGeRW+NwY5zqcgWjHn3U3BQvK8ZBx4EMbfDyyW3LALmyE1+kUivQgo5q39asvTOioq ikxan/UM2eyDxaWXazSP10VSoXMPbWfw4chU4WbgP6Wr/8g8oEBxL8Zq98HkSrt8SIVk 173e/gCmeprjEi2g8Fvz6PPf3gLB0u9Wcz9/8fM1YColFcipYMBWC483CCVlL7rep8e4 Oh0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=R3EFotwk; 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 i1-20020a0cf101000000b00647fe073b5bsi135563qvl.532.2023.08.15.12.59.45 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 15 Aug 2023 12:59:46 -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=R3EFotwk; 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 1qW0Az-0005Cv-4L; Tue, 15 Aug 2023 15:58: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 1qW0Ay-0005BS-1t for qemu-devel@nongnu.org; Tue, 15 Aug 2023 15:58:00 -0400 Received: from mail-pg1-x530.google.com ([2607:f8b0:4864:20::530]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qW0Av-00016P-6W for qemu-devel@nongnu.org; Tue, 15 Aug 2023 15:57:59 -0400 Received: by mail-pg1-x530.google.com with SMTP id 41be03b00d2f7-564a0d2d35eso3327932a12.0 for ; Tue, 15 Aug 2023 12:57:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692129475; x=1692734275; 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=kahnV3oB+xxgo9j/7zC+dhuzAxQlheFsZwXl/+I/CfE=; b=R3EFotwkR6BSUAtMW8tIt+pBNGSQu/lmggijPdd+gkjgjgqRqa08lln0dFUgJzni+f h4btbNxXKhgYJAUtf94abv+Qc/yKhB/Vp/c0/dHWW61efFciDpQFcuJ0LIfiLOWbkDY7 1MzlWX8584qi2CsuYm43mw0MXXvQIKawu98artJ4glDUBoTjfU2k3TyD0aaKymZ5q42z S4T08fHv6a3nRLLc3qm7SwzWtGvmlREmZJ/RDShyZQdkwKHVKoPUJRS1Um82p1CpWrbc sXtaY4w8hsKYy5e8tvUKlChoTHOuSh3YNss0diaJqyyji7YUGgOYSU65OsxBhzA9waPR G78g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692129475; x=1692734275; 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=kahnV3oB+xxgo9j/7zC+dhuzAxQlheFsZwXl/+I/CfE=; b=K0EGhSxOAZSDLuylN0WJL4EgyRLroRx13xkhh9/ogQeu64tUs6Ld1u+JoZv3eERXbx PZlw3WPTwqVqoxe8aVyB2EFJX7yQv0PGaDcDjyPOS4cCD8p0w9f9BlTSya/vlo2Qgnr0 5LcWK1fwep5TnWgGnOcHDammjWtI+0R7SHjGuy9Dh7tUk0OUUU0VwQUyK0GszY5LZK7U XmfCFh5xpHz6ash+3Gkw01RvC2K3GYnBGgnXkz520lgG+yAPWVSZmAGQhDweQ9KOiwfs EMRC6bFIzaK1zViYlvNBPO++yJaB8AWYN7hYFEmPCRviLMk7DTxEuNwzUVYIGgpzxKpu 1vFg== X-Gm-Message-State: AOJu0Yz0IrNwjMzMcUb4owZaLRYQN4g6uKtjEa6IFfZuqfo/NG/RQtac Gefx1OkAz+1ljvrmam1u8/XLVOifC+BC2ht8PJA= X-Received: by 2002:a05:6a20:3d8e:b0:13e:b58a:e3e4 with SMTP id s14-20020a056a203d8e00b0013eb58ae3e4mr13717294pzi.7.1692129475667; Tue, 15 Aug 2023 12:57:55 -0700 (PDT) Received: from stoup.. ([2602:47:d483:7301:8d06:f27b:d26c:91c1]) by smtp.gmail.com with ESMTPSA id n7-20020a62e507000000b00686b649cdd0sm9667699pff.86.2023.08.15.12.57.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Aug 2023 12:57:55 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: qemu-ppc@nongnu.org, jniethe5@gmail.com Subject: [PATCH v3 13/14] tcg/ppc: Use PLD in tcg_out_goto_tb Date: Tue, 15 Aug 2023 12:57:40 -0700 Message-Id: <20230815195741.8325-14-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230815195741.8325-1-richard.henderson@linaro.org> References: <20230815195741.8325-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::530; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x530.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 --- tcg/ppc/tcg-target.c.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tcg/ppc/tcg-target.c.inc b/tcg/ppc/tcg-target.c.inc index 0cdb7ef37a..20aaa90af2 100644 --- a/tcg/ppc/tcg-target.c.inc +++ b/tcg/ppc/tcg-target.c.inc @@ -2708,6 +2708,9 @@ static void tcg_out_goto_tb(TCGContext *s, int which) if (USE_REG_TB) { ptrdiff_t offset = ppc_tbrel_diff(s, (void *)ptr); tcg_out_mem_long(s, LD, LDX, TCG_REG_TMP1, TCG_REG_TB, offset); + } else if (have_isa_3_10) { + ptrdiff_t offset = tcg_pcrel_diff_for_prefix(s, (void *)ptr); + tcg_out_8ls_d(s, PLD, TCG_REG_TMP1, 0, offset, 1); } else if (have_isa_3_00) { ptrdiff_t offset = tcg_pcrel_diff(s, (void *)ptr) - 4; lo = offset;