Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C09EE606A31A for ; Tue, 1 Dec 2026 00:05:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=unpredictable.fr header.i=@unpredictable.fr header.a=rsa-sha256 header.s=sig1 header.b=JUBSDH4q Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xYBMX-0000Wc-Rj; Mon, 30 Nov 2026 19:04:50 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xYBMP-0000Tv-0E for qemu-arm@nongnu.org; Mon, 30 Nov 2026 19:04:41 -0500 Received: from ci-2006l-snip6-1.eps.apple.com ([2a01:b747:3005:201::72] helo=outbound.ci.icloud.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xYBML-0001Dp-Q1 for qemu-arm@nongnu.org; Mon, 30 Nov 2026 19:04:39 -0500 Received: from outbound.ci.icloud.com (unknown [127.0.0.2]) by p00-icloudmta-asmtp-us-central-1k-20-percent-0 (Postfix) with ESMTPS id A2D1D1800D46; Tue, 01 Dec 2026 00:04:31 +0000 (UTC) X-ICL-RepId: 01a22eea-d45e-749a-9793-b7a73ce59174 Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unpredictable.fr; s=sig1; t=1796083474; x=1827619474; bh=zb3DISgXUfGIGy9obGyW3PH5IYBzH2eUxNV/zPALb9k=; h=From:To:Subject:Date:Message-ID:Content-Type:MIME-Version:x-icloud-hme; b=JUBSDH4qw6Cnammhs/Pq25HCUniVzo59E2POuyM28WUiOi7CgjNkRhYo4QFkPYJciLtviHm3rHQXqqLycavwXZYGwRbBmTg1n/vwCWHacEmL35ziYai5B4ndF5ZHp06K5yFIXIHd5DjQgwL9Eor3E9XIdr7vK1Cm0fOQDOpBVzgxr+K+hEIXqi4bKq7CIGvIL1ttGL6nXfjeMIcPKgptoKWNoQnMPS4weNRRH8wBHuxvVqzfp3lvJJH74SyPlktaQaqccDt/p9mVGXgfLIhbMK8ssUOnd9Pe1QDeY7bk3NmFtGgSPmzICOyMAMxA8lcdb5sRlSgW3qW1il1wkmpsRw== mail-alias-created-date: 1752046281608 Received: from localhost.localdomain (unknown [17.57.156.36]) by p00-icloudmta-asmtp-us-central-1k-20-percent-0 (Postfix) with ESMTPSA id BA92B1800173; Tue, 01 Dec 2026 00:04:29 +0000 (UTC) From: Mohamed Mediouni To: qemu-devel@nongnu.org Cc: Peter Maydell , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Zhao Liu , qemu-arm@nongnu.org, Mohamed Mediouni Subject: [RFC PATCH 00/11] Implementing FEAT_BTIE Date: Tue, 1 Dec 2026 01:04:15 +0100 Message-ID: <20261201000426.84449-1-mohamed@unpredictable.fr> X-Mailer: git-send-email 2.54.0 Content-Type: text/plain; charset="utf-8" X-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Proofpoint-GUID: yfZSG79qRcnDMLkFRagjslBOLfyqBW4x X-Proofpoint-ORIG-GUID: yfZSG79qRcnDMLkFRagjslBOLfyqBW4x X-Proofpoint-Spam-Info: AW1haW4tMjYxMjAxMDAwMCBTYWx0ZWRfXxchnru0+xPyQ wkUdixaJvJD71Ma5pYT/swYUGMfCokT5VdQc9V/B3SFDDEyLcrrNOzEh9mkRjCf21d4jkHniIhY 0TXAXrziLFyiRojUDzO39l1dVTMu7nk= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjAxMDAwMCBTYWx0ZWRfX/k3oOtLuFXdi e1ZUpS0x/Nqy6K9/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RXQ5WUqnZ9mutk9dIkESUqa9ZA4 /Qce/6a+/faOOFqBXVQTegxAfmhEGdLdwMvQJQqkz6vezi1LUE5yNxpF2r8WsR98fs77e2 4/eMnnDB74HxJ5H7IPqg5bMc1557IbRRscDB3OfS7SIIntxxCw0Anc2+4zWeCVaHd1NN7t wvsbYxncgRL82nsaoZJGT2wCy0RiCBqeBQ7ASWwoQi6q+dD6ucpolhE0s0Td6yD8r2ygeC YnBKRsVCUlZOSu5JTH6RYv43yGSTbauz2JQMlM7JNX/EMKz7QCGC4QdaPGTaVoL4Viesx6 yVq5IU2D1eee2N9uYMdkmTnYHce12RptU8DgSdhNJjzflCGWzDwLk+exqQTRZORtvnUnRa D2YEWyEZor875gz/LqZfHmcuFQioq4DXqrccD6s2lNevDGbPmXU0ngCZn2Gyw8GOvRen3v kz0dngJpAeM7pUtHdZcLiIkBVnu/JYGUG100MxbQLq1xgONQRG0+/Twr+2D0zWyKEfiUaE RlB8GiH3rq3PN2Hk+Tpsfo3pRHb+2yahUT3bFxj2cbhHzQML5sCSFHGwXGNKWzD+5ocFzc pXvjXy5UyDM/QCjNxmAmNv51eVR5Nv5DeJLP+Yd9vbqwZLSij7a5lfEmVKP1fe3CAQ7KUY iHBYxNh3s7D0bVMkgWfnwE+A1xYrm7KGfVgvhE8Nsv1xhPet6PWNProPiRG8LPCdrZ6sI5 8rxN8AJOBd/56X+LPNiCVqBhLwuJ8m1aowLfR26ylKpVA2ctFhb5oTApNYAxEBEkCurJG0 QWYY7SmFOl1oCxrs5Gf9pQJ9GuPYO2acVuYKY4NMO4n1sDzTR+9uARPUXqLu5Tx0Gfx7lJ g1ei/86nAOS/rkNHz+7Y1VbVJ/gNufwBoczyJzuIXSz9THQ5Alk= Received-SPF: pass client-ip=2a01:b747:3005:201::72; envelope-from=mohamed@unpredictable.fr; helo=outbound.ci.icloud.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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-arm@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-arm-bounces+qemu-arm=archiver.kernel.org@nongnu.org X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_PASS,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 FEAT_BTIE is an Arm extension part of Future Architecture Technologies. It has a high level overview documentation at: https://support.arm.com/documentation/109697/2026_09/Feature-descriptions/Future-Architecture-Technologies?lang=en And is documented more in detail in the Arm FAT system register and instruction documentation, together with the pseudocode in the XML provided as part of the Exploration Tools. FEAT_BTIE is a prerequisite for FEAT_S1POE2. Mohamed Mediouni (11): target/arm: ptw: implement enhanced guarded page bit target/arm: cpu: handle 3-bit BTYPE target/arm: translate-a64: query whether the page is an EGP target/arm: translate-a64: implementing btype_destination_ok for BTIE target/arm: translate-a64: determine BTI state ahead of time target/arm: translate-a64: set btype on returns target/arm: translate-a64: set BTYPE for b/bl target/arm: translate-a64: set BTYPE on conditional branches target/arm: translate-a64: set BTYPE for an always taken B.cond target/arm: translate-a64: rework BTI for BR target/arm: cpu64: add FAT architecture include/hw/core/cpu.h | 4 + target/arm/cpu-features.h | 5 + target/arm/cpu.h | 12 +- target/arm/internals.h | 1 + target/arm/ptw.c | 34 +++-- target/arm/tcg/cpu64.c | 21 ++++ target/arm/tcg/helper-a64-defs.h | 3 +- target/arm/tcg/helper-a64.c | 41 ++---- target/arm/tcg/translate-a64.c | 207 ++++++++++++++++++++++++++++--- target/arm/tcg/translate.h | 2 + 10 files changed, 265 insertions(+), 65 deletions(-) -- 2.54.0 (Apple Git-157)