From nobody Tue Jul 28 11:50:49 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1777294295; cv=none; d=zohomail.com; s=zohoarc; b=OpjMtAVz2nOwdQiwx0+sCTjsizFpzuVKWxUM4QA1rK19O5dm7tb7hf6a71TtKcnsYBhSfkjHxUyUkqSUrJUFm8xSwAD2LlMcl5UhbfyGTvmYP5jYCBJJ+S8sc93u7ZjVyIasEorrOyu7IX+vvgqhU1r6BDqR68gBtuXlEX7Isfs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1777294295; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=JQoy/74+JPqjK/uUVejtPxwT3Exjei52SuJo0vtd7fU=; b=M1tutQwfNLbG6/LbaREliOKz/o9UwKxiLQLb8gWKRB46MIxqQHAlAdNX/4+cw82SvEnZw12wLhN39Br8Q31Cx152GmOCULe/cy4/cuv4HY+byjEGyuEWJvs4H2o5HZLdL9ihjRCswOMziOGB5sPtkFelVQc2OI6QvpL6O3KRxqw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1777294295348982.3156650372927; Mon, 27 Apr 2026 05:51:35 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wHLQl-0002Wj-5f; Mon, 27 Apr 2026 08:51:26 -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 1wHLO4-0008BK-Q1 for qemu-devel@nongnu.org; Mon, 27 Apr 2026 08:48:35 -0400 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1wHLNw-0005iu-JD for qemu-devel@nongnu.org; Mon, 27 Apr 2026 08:48:27 -0400 Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-488ff90d6c7so87216145e9.2 for ; Mon, 27 Apr 2026 05:48:20 -0700 (PDT) Received: from lanath.. (wildly.archaic.org.uk. [81.2.115.145]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-488ffc5e3f4sm448974115e9.2.2026.04.27.05.48.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Apr 2026 05:48:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1777294099; x=1777898899; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=JQoy/74+JPqjK/uUVejtPxwT3Exjei52SuJo0vtd7fU=; b=IAzFu4wYMgNRepkYbo/lSk/V/cciBzJ8iLWm/A6Wvrt1T7aNVQmcBLjkv3VBhUa9dC f4vr9D9Pl5JaV/tlUO1Xkkai2pBqXx1SszdZ4xOk4PlEkRaz09B3R+olw8E+kC4A7OMP YXNkTM1ZvGWu5RRhgSjwOYPO3bv7Jb+9QCXsY+OJhYzNPQIP0utgV4ALUOGrPCL/vfME 6OGQwiixYWsJ2QPynaBuP+xF+/GEGN0zKCXBZ7MNmC3QUjWxUVWkrnCGAoskqjDih+p4 NTCoZSGOduoVk0R/hOLZQFBRJe5FvaqZZuBL7IxuGR0S3NbP5O9fSIIf7NDvmIwHwNn3 mi3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777294099; x=1777898899; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=JQoy/74+JPqjK/uUVejtPxwT3Exjei52SuJo0vtd7fU=; b=YtEHiuph1uVPhf5vj4/SFZF6tdlEcdQ/f+O0UviwyqBgde6XtW88+mIJbVzU5yAZQ4 WQqILPWPHcpNHbBJcXTXrpB1jERh+4O0PKhyKqSQUZXqVUMMrVkABkdBQqnrtkmV6a3y V6fmQVYjeGgeh4t/NAOG9ve2WzG0CEmBjbUrqC+e3gtkPdbn/3yaMHE2r5TEN+Q4UcCt uzCJE0WyLnaezuuScrJGACMGeF+g9rdAcZUAUv1t4SwoHuOGUbWeIINfDVSDRj88MrBg GHaGHTEm+GQnozkPpyi6M7s0jhAqQr8wuD1kqE6UninaoZMnLNhaBmz9rXIR6vpdw643 Rm9g== X-Gm-Message-State: AOJu0Ywm0mR0/Q1/ETzyza0O3HFoPN6JGaYJVV0b6a/z3k71y+tvEP+3 iNxdEXBFcp+kIf6cksAfqhQWNsv0treRHMMU5dszt6l2XUa4Va06/42tE0BS5lE24lCAmJd5KTZ HkQJ2 X-Gm-Gg: AeBDietJu9/nd4XdRezsoj3qnHacMTCktGrob20oVpbmXPIfLJiBeFTK5VKXsiRndFu HFaplOXO7KkE+RjTS5Qw1Ul6vjhQmyIVFRHk/5UoZvU2bVgPsenbRP1JCAu5hG3wiYeueUf1e6d 6Tv13bWmL5X6pWxVnynY61IDV0EPXCy/jutLCqsVZZfWCnVzTs1Bd4dcL4z/LAKjEYlPwA1STVb smtmmNbA3tK+GHKXgxs+rJtD19HL7LYAKdJzW9DiQ7S1d8trgWgcOS8oyJ4Tq9ZTsSOADjhRZxk v1ZaAYKDGqB1Dr6UbNd6WtEZ4FqaFtwUuXyNN0d+K/pDYhREwmxZrme+1Lkz86YrQ1nJ3sTl+Ig 8cdasxgIuiq7AonT2VXFR0tWkzZmfPo3LgH/UizMOq+KgZ2T/IMtoobxNcz1hDixfHnUq1Raw5V XDGSEvpsbkmZn7HMmLT6DCNbgJ1kAlVgSGVSu4GWK/a7E2SGtGQjxF85YwDeqSuBkSiabX6SRJa TMXFzQ1CiTIY/+6Pz/k1tU+PI9tbiHYUK4dTgnvKSGZewZZrHXe X-Received: by 2002:a05:600c:3423:b0:488:fd7e:1063 with SMTP id 5b1f17b1804b1-488fd7e1253mr331897105e9.29.1777294099441; Mon, 27 Apr 2026 05:48:19 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 43/63] target/arm: migrate FP/SIMD trap syndromes to registerfields Date: Mon, 27 Apr 2026 13:47:17 +0100 Message-ID: <20260427124738.966578-44-peter.maydell@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260427124738.966578-1-peter.maydell@linaro.org> References: <20260427124738.966578-1-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::329; envelope-from=peter.maydell@linaro.org; helo=mail-wm1-x329.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: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1777294297555158500 From: Alex Benn=C3=A9e The syn_simd_access trap was never used so remove it. We should only see the COPROC encoding on v7 architectures. Reviewed-by: Richard Henderson Signed-off-by: Alex Benn=C3=A9e Message-id: 20260422125250.1303100-4-alex.bennee@linaro.org Signed-off-by: Peter Maydell --- target/arm/syndrome.h | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/target/arm/syndrome.h b/target/arm/syndrome.h index 29462aa103..72051443d5 100644 --- a/target/arm/syndrome.h +++ b/target/arm/syndrome.h @@ -337,21 +337,26 @@ static inline uint32_t syn_cp15_rrt_trap(int cv, int = cond, int opc1, int crm, return res; } =20 +/* + * ISS encoding for an exception from an access to a register of + * instruction resulting from the FPEN or TFP traps. + */ +FIELD(FP_ISS, COPROC, 0, 4) /* ARMv7 only */ +FIELD(FP_ISS, COND, 20, 4) +FIELD(FP_ISS, CV, 24, 1) + static inline uint32_t syn_fp_access_trap(int cv, int cond, bool is_16bit, int coproc) { /* AArch32 FP trap or any AArch64 FP/SIMD trap: TA =3D=3D 0 */ - return (EC_ADVSIMDFPACCESSTRAP << ARM_EL_EC_SHIFT) - | (is_16bit ? 0 : ARM_EL_IL) - | (cv << 24) | (cond << 20) | coproc; -} + uint32_t res =3D syn_set_ec(0, EC_ADVSIMDFPACCESSTRAP); + res =3D FIELD_DP32(res, SYNDROME, IL, !is_16bit); =20 -static inline uint32_t syn_simd_access_trap(int cv, int cond, bool is_16bi= t) -{ - /* AArch32 SIMD trap: TA =3D=3D 1 coproc =3D=3D 0 */ - return (EC_ADVSIMDFPACCESSTRAP << ARM_EL_EC_SHIFT) - | (is_16bit ? 0 : ARM_EL_IL) - | (cv << 24) | (cond << 20) | (1 << 5); + res =3D FIELD_DP32(res, FP_ISS, CV, cv); + res =3D FIELD_DP32(res, FP_ISS, COND, cond); + res =3D FIELD_DP32(res, FP_ISS, COPROC, coproc); + + return res; } =20 static inline uint32_t syn_sve_access_trap(void) --=20 2.43.0