Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 50577C43458 for ; Wed, 8 Jul 2026 14:58:58 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1whTjg-0003It-R5; Wed, 08 Jul 2026 10:58:52 -0400 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 1whTjf-0003EV-OE for qemu-arm@nongnu.org; Wed, 08 Jul 2026 10:58:51 -0400 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1whTjb-0002yo-Jw for qemu-arm@nongnu.org; Wed, 08 Jul 2026 10:58:51 -0400 Received: by mail-wr1-x42d.google.com with SMTP id ffacd0b85a97d-47d70879764so586292f8f.2 for ; Wed, 08 Jul 2026 07:58:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1783522725; x=1784127525; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=p9tPxgPp+ertBUQDD22Wpkn9TkGPGklSEFP80sHRtw0=; b=qBKXzVyFRSvLM3oX5zu1E5Jbnv+3c3gMOLluh+uQFNllNi0Pnc7iwyyrmAg3M6s6i1 OzGxAMkMAOYDH/JCiBeNtwENAWa2PCkZ2Gi68T/NO89vmDSw6pd7t6oLXG6qAX7GTwad 4SJf6EpDGc5qmz7qUo7NnMNMtJfalwtXzyCfaOugFJtkSvtCRxEDMGiTsJa2oO5oZO8v rZiYnakCtqdh6745B+1uYLmxZpxU5OE1IkKiwIHotBlwtjIrRuRK3MgCs/brBhYu2KUL gqIPgUP5VJUlqDFcTAlDm6HLJOAozjvE7vMCtD0NRf13NU7Xsl7o2oRtOd47GNMy7CRA 2Eog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783522725; x=1784127525; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=p9tPxgPp+ertBUQDD22Wpkn9TkGPGklSEFP80sHRtw0=; b=c/IMJvSN8BoRFZG7RijTS3axmT5rKXKfF3BoSMGkPLPIPttyGaxkoDJa4mvg+MH/p1 eqrqqfKxrzlV2YYCgJJxpIb3bCOQ4E3n5mFtEKg6y7TkCZz7eZ5Hl7Y/+ebPtmYhEB+C qPeZguQvunN1nWEZFhNl5z+nc+N7jaPOTd6ydwLP6vIlU0BsbfQJdQJ0eE4K1IBqLjWl ymw8ZOWQ8m7DyG2MpNoHOuc2+toy31rYjAoz1Lhgc8JkGu70hqSyWeW4a3oJYxo1kuOl 1Hvnc1ln9xbWdO74KvXOauwpPZb35vCpBQE5D/ghc9FeAmarGBA9qtrM8hCuMXV0wL1H qOEQ== X-Forwarded-Encrypted: i=1; AHgh+Rr9hJQfyMKrDyCQSCLQ9S1/PTWo7tALovlzl3SGOLZYmtbHFLphTPTXNAsHyUJBvPBtLOQYvjjo9Q==@nongnu.org X-Gm-Message-State: AOJu0YxDvFxH4rSPF4LyR9xR+xhk+SgmZ3tQL0a0uvGgM8iuqmJQDkJj hT/SCZhuwalDgI31t9N59S5xhBPlK8mJYC7ZsYYuuEm0ec342m3jIfeDT2MEK4y93ic= X-Gm-Gg: AfdE7cmwgVWjDXlCq5QkshEKOa+TbPorJWYHKUKpwPgUSUv2TuxdSyrjzCY1aNL5Xjb NJjSy6px3lrpu0GIDFe/Nnd+YiJBDUs1O528x8+CBLoQt1BNTxLQ9LumjAhWag8+2ihLfGpZmaE VNlxm+FMMnK1oN6C+VGV64zQMnS0iTWbtRCinCOR8zrnFSkjwOAU4OZCT9ghfTSOxwd5CMQpnDx x6M+u1/VRQqBd7QynpGOHgJtCBwCywLPOljwb5j+YP3qEbb1rsT8TvaWEVF34rqPWWMIV1TfTMP qd8h0muwtf7O2WpoNIkucZXA5j+807ENU2Yu2jnnStpZI2eseTdK7/xqt9Xc6zb6C+lQwoZYgOV VDzIe/KAAI360s+VntNIXF2Dis2j/eMnm8Qixh3Jp409clDnv26TDeaXblZIo9fFzVWBp5eMSvh vhCQr49eGBh5/V X-Received: by 2002:a05:6000:2909:b0:476:504f:7a8 with SMTP id ffacd0b85a97d-47df081e2c4mr3323321f8f.55.1783522725589; Wed, 08 Jul 2026 07:58:45 -0700 (PDT) Received: from draig.lan ([185.124.0.114]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-47aa039ae44sm41646923f8f.23.2026.07.08.07.58.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jul 2026 07:58:42 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id E5DFC5F943; Wed, 08 Jul 2026 15:58:41 +0100 (BST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Peter Maydell , qemu-arm@nongnu.org, Pierrick Bouvier , =?UTF-8?q?Alex=20Benn=C3=A9e?= Subject: [PATCH 1/8] docs/system: declare support for FEAT_EVT2 Date: Wed, 8 Jul 2026 15:58:34 +0100 Message-ID: <20260708145841.3032079-2-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260708145841.3032079-1-alex.bennee@linaro.org> References: <20260708145841.3032079-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::42d; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42d.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-arm@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-arm-bounces+qemu-arm=archiver.kernel.org@nongnu.org Sender: qemu-arm-bounces+qemu-arm=archiver.kernel.org@nongnu.org The actual implementation supports the additional trapping registers of HCR_TTLBIS | HCR_TTLBOS. We already set the value to 2 for -cpu max and don't currently model any CPUs that only have FEAT_EVT. Signed-off-by: Alex Bennée --- docs/system/arm/emulation.rst | 1 + target/arm/cpu-max.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/system/arm/emulation.rst b/docs/system/arm/emulation.rst index 4f413d69efc..fb8d263db49 100644 --- a/docs/system/arm/emulation.rst +++ b/docs/system/arm/emulation.rst @@ -68,6 +68,7 @@ the following architecture extensions: - FEAT_EPAC (Enhanced pointer authentication) - FEAT_ETS2 (Enhanced Translation Synchronization) - FEAT_EVT (Enhanced Virtualization Traps) +- FEAT_EVT2 (Enhanced Virtualization Traps 2) - FEAT_F8F16MM (8-bit floating-point matrix multiply-accumulate to half-precision) - FEAT_F8F32MM (8-bit floating-point matrix multiply-accumulate to single-precision) - FEAT_F32MM (Single-precision Matrix Multiplication) diff --git a/target/arm/cpu-max.c b/target/arm/cpu-max.c index d38bdfcf811..88b7c046333 100644 --- a/target/arm/cpu-max.c +++ b/target/arm/cpu-max.c @@ -130,7 +130,7 @@ void aa32_max_features(ARMCPU *cpu) t = FIELD_DP32(t, ID_MMFR4, AC2, 1); /* ACTLR2, HACTLR2 */ t = FIELD_DP32(t, ID_MMFR4, CNP, 1); /* FEAT_TTCNP */ t = FIELD_DP32(t, ID_MMFR4, XNX, 1); /* FEAT_XNX */ - t = FIELD_DP32(t, ID_MMFR4, EVT, 2); /* FEAT_EVT */ + t = FIELD_DP32(t, ID_MMFR4, EVT, 2); /* FEAT_EVT2 */ SET_IDREG(isar, ID_MMFR4, t); FIELD_DP32_IDREG(isar, ID_MMFR5, ETS, 2); /* FEAT_ETS2 */ -- 2.47.3