From patchwork Wed Mar 1 02:55:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 657733 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp3269057wrb; Tue, 28 Feb 2023 18:57:15 -0800 (PST) X-Google-Smtp-Source: AK7set/XGYHPHg4zmXEh73Hd7N79zPN4y9LDDo+2eQbkkgOr0CgCg9QtRTc5ohKyMT8/++2SQbUQ X-Received: by 2002:a05:6214:dcb:b0:56e:a4d1:2b90 with SMTP id 11-20020a0562140dcb00b0056ea4d12b90mr10054047qvt.48.1677639435006; Tue, 28 Feb 2023 18:57:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677639434; cv=none; d=google.com; s=arc-20160816; b=z95twnUV3qSHEG4Wnd4G790vEZ+M0XH7m8dQPaR2OCcROGsNFY9DohnWDzoY5Fmp9q sTN+1923/HbKR17sIvDRIYyeHgaGC4J198odnyZOKQU1bxMUR1dPod5YkiGVaGi5ORrU fR74Fl9y8xV8uPD3fh/6fG7qmyAsZ8RdUszR+2iZFujz2LJxI8RX6qfCI/4ep7A39vEt O6Cm0+QCuMfJdd6zlXzmiadd5UEVHlGLaL82v73JOse9qsanfp1NCoIu5byGKN/hdo61 cOpwyRRWMy3nze2YvBKfeUOmxqPrnj7kDCvK1JzNMgaIkPH7aNFe1XnF5YKo9yWPHfA3 IKcQ== 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=Ft8WH+FuBF8I8ueEJPXs4vslDKFeqOJg8UxKh9LKx00=; b=nMRvD0aYs+0sxHYi4fLGHqOV/dYbydmM3oZYvi23kseVzOqJkGEH3LPYcNyFKt2HME YLuPMoFVcZIheBq1f90gJz57XcJcNYLjOU1lUnQ1oa1BJgz6I/Yu7Tk9OJOGvr7okTzq IMMMFqsua15pJP6LtHrHs1lXjWTu8/Mfqn9kf4lNL1QE4qLOUT9hzX7S8Fqgf9/5PFQ9 L3aHxc0bGwAa8HJ1h0dFb41+84n1ybgXiKP9+j35xo4IR2VAlAIhiSX6KcdTifLecdlX VTcEJDQBRYjAcab6sR6T2ZUxpSkXOdmw9laR3ZGY10ZmIm99ufGNBvrrhAd/7nVVzC1C ijpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="YtN/g0aj"; 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 t25-20020a0cb719000000b0056c18ff8509si10249538qvd.188.2023.02.28.18.57.14 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 Feb 2023 18:57:14 -0800 (PST) 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="YtN/g0aj"; 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 1pXCeI-0007tw-Ng; Tue, 28 Feb 2023 21:56:58 -0500 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 1pXCeH-0007tb-Ng for qemu-devel@nongnu.org; Tue, 28 Feb 2023 21:56:57 -0500 Received: from mail-pj1-x102a.google.com ([2607:f8b0:4864:20::102a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pXCeF-00032C-WE for qemu-devel@nongnu.org; Tue, 28 Feb 2023 21:56:57 -0500 Received: by mail-pj1-x102a.google.com with SMTP id oj5so7939319pjb.5 for ; Tue, 28 Feb 2023 18:56:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=Ft8WH+FuBF8I8ueEJPXs4vslDKFeqOJg8UxKh9LKx00=; b=YtN/g0ajufLv125i4RT/4WCgIQmRcDCE3oP96gf0ERIlMkdgx5lJisWOkH6xwqic3j nGrYFcpJGMqYdG2k1awJdjqBwTEKd4NaKmaZjmzbNM25XGCbFNuXrqhoUad3B7P+CsBn JDxJ95T/Drv/DoCyk3fBl0YITXg3yii+xFi9fwccpyk+xCCqjrsulnEJ8trKoPu8aPvG 4VJTzeyLaZfi3i/M8kdApCMvS2C2KjhwADoBmeqeOEBopSQodw3rJJTMhDfr5QBAjILz jVAZnAI/cBiSTR5gHXbBx3NkEzx2ZkLrIT9uRuXUCnOyEKseDm7qwerUFuh5rGNY97C4 P5ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=Ft8WH+FuBF8I8ueEJPXs4vslDKFeqOJg8UxKh9LKx00=; b=h0HS8dcTR99p8sHG36vbjTs2PpL+1EjJUEKQ21qriO4sXD9DcsMz8+AsY2X72bGY4g JdyPi4Ye/wS14F1tGJ2rV3RLAaw54F+kSvYqCy2qy6ccXaeipp2gfal6WERPoszfWJJa 56F09GJ/uSdOo2Oyi/OcyPfA1KGzXakdsDhCvbG7WGDfCcoWEb7+L2YeAdF8zZpUPQrm QTFNmkWLO/EPnrjDxh62qRAfig5dKfngejKxIZ21mUtcfMJsW7ZiEU52RM2aEDMhlKzQ 4MxrOY8F+AXW8oTqXigFA3X4JgLXdZbxFM9QzSVCEa+I+jEydgZg0aThpxOXie2drMN/ mAAw== X-Gm-Message-State: AO0yUKXdRfFWwd5IL2GhCzjn7VK31xxPGvI3PZQYn/zPtPZecgYwSbGW xdFwmO8rEeo5DHtqFsfSrNg4Rxn/wN4SvOIyeUo= X-Received: by 2002:a17:903:2308:b0:19d:16ed:3e34 with SMTP id d8-20020a170903230800b0019d16ed3e34mr6258849plh.26.1677639414638; Tue, 28 Feb 2023 18:56:54 -0800 (PST) Received: from stoup.. (rrcs-173-198-77-218.west.biz.rr.com. [173.198.77.218]) by smtp.gmail.com with ESMTPSA id jg15-20020a17090326cf00b0019adbef6a63sm7210120plb.235.2023.02.28.18.56.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Feb 2023 18:56:54 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, Anton Johansson , =?utf-8?q?Phili?= =?utf-8?q?ppe_Mathieu-Daud=C3=A9?= Subject: [PULL 05/62] include/exec: Introduce `CF_PCREL` Date: Tue, 28 Feb 2023 16:55:46 -1000 Message-Id: <20230301025643.1227244-6-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230301025643.1227244-1-richard.henderson@linaro.org> References: <20230301025643.1227244-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::102a; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x102a.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 From: Anton Johansson via Adds a new field to TranslationBlock.cflags denoting whether or not the instructions of a given translation block are pc-relative. This field aims to replace the macro `TARGET_TB_PCREL`. Signed-off-by: Anton Johansson Reviewed-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20230227135202.9710-2-anjo@rev.ng> Signed-off-by: Richard Henderson --- include/exec/exec-all.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/exec/exec-all.h b/include/exec/exec-all.h index b631832e17..1574eabac8 100644 --- a/include/exec/exec-all.h +++ b/include/exec/exec-all.h @@ -546,6 +546,7 @@ struct TranslationBlock { #define CF_INVALID 0x00040000 /* TB is stale. Set with @jmp_lock held */ #define CF_PARALLEL 0x00080000 /* Generate code for a parallel context */ #define CF_NOIRQ 0x00100000 /* Generate an uninterruptible TB */ +#define CF_PCREL 0x00200000 /* Opcodes in TB are PC-relative */ #define CF_CLUSTER_MASK 0xff000000 /* Top 8 bits are cluster ID */ #define CF_CLUSTER_SHIFT 24