| Message ID | 20260611212519.100477-1-christophe.lyon@arm.com |
|---|---|
| State | New |
| Headers |
Return-Path: <newlib-bounces~patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 129F04B99F47 for <patchwork@sourceware.org>; Thu, 11 Jun 2026 21:27:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 129F04B99F47 Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=qrCKByaz; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=qrCKByaz X-Original-To: newlib@sourceware.org Delivered-To: newlib@sourceware.org Received: from OSPPR02CU001.outbound.protection.outlook.com (mail-norwayeastazon11013004.outbound.protection.outlook.com [40.107.159.4]) by sourceware.org (Postfix) with ESMTPS id 4F9274BA2E18 for <newlib@sourceware.org>; Thu, 11 Jun 2026 21:26:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4F9274BA2E18 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=arm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 4F9274BA2E18 Authentication-Results: sourceware.org; arc=pass smtp.remote-ip=40.107.159.4 ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1781213203; cv=pass; b=xUhPZyYayVyHGcIDk1Pghp5tjkAkAIyaCa2jeBrh0+hifg5skyZxfCIOwMV2Bf9rctRLoXh66DwR92mgVhqBTo/GWdJSvgS+Z1O9mkUdNfl24azFXzfBoSfWNl3EHntTS+fPuUuAEcClIJXIv0lnrqUuECgBe8FffZwxAqrE2jA= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1781213203; c=relaxed/simple; bh=a6W3bnyNjj6SAPJihDXm3er0XwGwz6oY1rdp1VRTfrs=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=EZ+V5bzplBmJraDwxgC1iwvrQ2gnjtP1hYnOfJ4IE2pI+gPMrfJgxMyXP8bk8rM5EmWbZrBRv1lBxZ5psJVLGul3mEZSOyTh3QeH7u4iXgtcgq7J02RVClqqdTdpzA9OKi7vXw+A86aW8NWD4UgHRFlAeMwEGQb2LJpyFxPMFqw= ARC-Authentication-Results: i=3; sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=qrCKByaz; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=qrCKByaz DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4F9274BA2E18 ARC-Seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=cr3nkWujZv7BApCTcJd+gKLKR3k9vEDpz0Ec4dM1+sQorpNdqRx97wkN2ZGRGSIHHu/CIaIGdslpu1ReYEe+dwRRkjjagmp3WK21yGa2hexQ9Ee48h/OiX+Fr0573rnZjR/oWA70vPSXX5PKTUWVQMsO58/xL2ZnfupnwRAQGN678g3qMHo8nE0dnkPBPLPd+lLthxzGCxrjmvlj+bX4k6di5Iq77xt6KpdsjgfjARSO8avHipSNCEThVRN5pTOHieU6nWLoE2pZdY7TCf3B4HunZZ7As2nPTGLrrWsHfYG38h56Q811vetmFRLQi9rOKHJTPaKOdiX1UUW5QX0ozQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=nxGhbYPCmH8h/x2VbqQjcHQSjifITKnDPBNPXjRHd8M=; b=BnJ+0TN7958FZjY96bLQZgGpP1pc7N+2XjpUPXydeKHrYzo1TVnUE0BRBVrV22viRXGC7U3jEVo4u5dNl6KdnOG0rybuC6gfC1qofS8THqUzNsdYAkfn3V0EeY27ujxkOJNp+vyJ3tZjbh76RH/VxOs40WJUFu15+PaXbOUeW/oQTXbhqkbZRbEqzBsfBVnjiTMUmSvsKHXOgQ34rj3XhdoYHTWjVWjO9lQOfihTG16UAo8179EcDf6EsV73NESDunNdQhpM8HlYKSHACHJgj1OR/EyduMfQ2CSSMVlVP/lHb8bsBz6vQ2vaZ8MKMMOQum045gYHulPimezzrINxqw== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 4.158.2.129) smtp.rcpttodomain=sourceware.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=arm.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dmarc=[1,1,header.from=arm.com]) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arm.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=nxGhbYPCmH8h/x2VbqQjcHQSjifITKnDPBNPXjRHd8M=; b=qrCKByazsGGioqo3Ei3PkaASEQ6O+QSLwvtUK2TMye2wx+UKqKQwvFNgwCBuXdLc8dme3uIyzc6wDTjpOFTRbao/MFRtnJdv5A8CFg2yNdTPnC2QYU+jiQpT/pXE5ckf9bE2Ll8iiTr3yX9J4i1vLXoGSe2tiGudpewzS3kiIwA= Received: from AM8P251CA0013.EURP251.PROD.OUTLOOK.COM (2603:10a6:20b:21b::18) by AS2PR08MB8453.eurprd08.prod.outlook.com (2603:10a6:20b:559::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.113.14; Thu, 11 Jun 2026 21:26:36 +0000 Received: from AM3PEPF0000A794.eurprd04.prod.outlook.com (2603:10a6:20b:21b:cafe::9d) by AM8P251CA0013.outlook.office365.com (2603:10a6:20b:21b::18) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.113.10 via Frontend Transport; Thu, 11 Jun 2026 21:26:36 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 4.158.2.129) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=arm.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 4.158.2.129 as permitted sender) receiver=protection.outlook.com; client-ip=4.158.2.129; helo=outbound-uk1.az.dlp.m.darktrace.com; pr=C Received: from outbound-uk1.az.dlp.m.darktrace.com (4.158.2.129) by AM3PEPF0000A794.mail.protection.outlook.com (10.167.16.123) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.113.7 via Frontend Transport; Thu, 11 Jun 2026 21:26:35 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=suTmJqAVSEQ5XYnvunD9lEmlbZ7I5wz1NGfuzJcroqLRIKc1704KBpgr+cCvrG6uhnPXSu1bbpkO5Bbnnq0IiSAsHTbrZ5lfauLltRtIbeJmeGEGuKgC0vh/w3jxL9oEdN8LPf8Kr+anFM1hSh2x7J+rfyZqMxOzp8Qa6rMMsXF/VsNplZcLEULGX7dbycLEL2eohB+NAWOTRmZweJPLRkwV/Oq69CDhEGM64TgoS6iSmLPlzYGstr0b8/TIENX66Q7lZG0qFyOUeqvu+yYYXDs6nRcERXvVa23xzU58+Hoabp8tOqzorcXqayaadBKZxajLx1swiYP+DH91GxNM9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=nxGhbYPCmH8h/x2VbqQjcHQSjifITKnDPBNPXjRHd8M=; b=lJVqG8K1zymzDJVDXIu1UgPixnX/j2d86SVTYfbY4IYqEOI5OPXrouA4kWwyfCx8iMExWbpi961ndJvdnBEugl2kf2bwfg8C1wfyqN94kpYVWY+IZYjd2s/hLUZqakkmGZtIOK4UFQJpeEfUuAJQquIEb69Eg/n4gEq3FRnevjMMCRAYGYn/AM/ZqEcw7rwzzqS4ccfXk1pwr6naK4WGz5SjFad3iszokbU0ZjNTkGO6NltVfk8gD7GA4f6NGTELhucqGD84BHFgoZgo0zpttSPhK6sZrVGDB2+O4IVQh8oiQwaexjangmOpXy5yuee5cIjvrbewR05DHiX4gFqLgA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 172.205.89.229) smtp.rcpttodomain=sourceware.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arm.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=nxGhbYPCmH8h/x2VbqQjcHQSjifITKnDPBNPXjRHd8M=; b=qrCKByazsGGioqo3Ei3PkaASEQ6O+QSLwvtUK2TMye2wx+UKqKQwvFNgwCBuXdLc8dme3uIyzc6wDTjpOFTRbao/MFRtnJdv5A8CFg2yNdTPnC2QYU+jiQpT/pXE5ckf9bE2Ll8iiTr3yX9J4i1vLXoGSe2tiGudpewzS3kiIwA= Received: from DU7P190CA0004.EURP190.PROD.OUTLOOK.COM (2603:10a6:10:550::33) by GV2PR08MB11837.eurprd08.prod.outlook.com (2603:10a6:150:304::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.92.17; Thu, 11 Jun 2026 21:25:29 +0000 Received: from DU6PEPF0000952A.eurprd02.prod.outlook.com (2603:10a6:10:550:cafe::5f) by DU7P190CA0004.outlook.office365.com (2603:10a6:10:550::33) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.113.14 via Frontend Transport; Thu, 11 Jun 2026 21:25:29 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 172.205.89.229) smtp.mailfrom=arm.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 172.205.89.229 as permitted sender) receiver=protection.outlook.com; client-ip=172.205.89.229; helo=nebula.arm.com; pr=C Received: from nebula.arm.com (172.205.89.229) by DU6PEPF0000952A.mail.protection.outlook.com (10.167.8.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.113.7 via Frontend Transport; Thu, 11 Jun 2026 21:25:29 +0000 Received: from AZ-NEU-EX04.Arm.com (10.240.25.138) by AZ-NEU-EX03.Arm.com (10.240.25.137) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.29; Thu, 11 Jun 2026 21:25:29 +0000 Received: from e129018.arm.com (10.57.24.107) by mail.arm.com (10.240.25.138) with Microsoft SMTP Server id 15.2.2562.29 via Frontend Transport; Thu, 11 Jun 2026 21:25:28 +0000 From: Christophe Lyon <christophe.lyon@arm.com> To: <newlib@sourceware.org> CC: <richard.earnshaw@arm.com>, <andre.simoesdiasvieira@arm.com>, "Christophe Lyon" <christophe.lyon@arm.com> Subject: [PATCH] arm: Enable FPU for M-profile Date: Thu, 11 Jun 2026 23:25:19 +0200 Message-ID: <20260611212519.100477-1-christophe.lyon@arm.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: DU6PEPF0000952A:EE_|GV2PR08MB11837:EE_|AM3PEPF0000A794:EE_|AS2PR08MB8453:EE_ X-MS-Office365-Filtering-Correlation-Id: bf4b3698-aa53-45a3-3005-08dec8001d7a x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; ARA:13230040|36860700016|82310400026|1800799024|376014|23010399003|18002099003|11063799006|56012099006; X-Microsoft-Antispam-Message-Info-Original: C2Grt6CZ9P5KJSmuygHcAtWmo+AwbGd0GPQ2vOB4CZKhViYxfsGQ0MVpXozEzrPAPMNkh7QaU4qDKRy4LicYnbLGhLEy+YavO/c6y/+e83cfnEjMKOQvjJLAsGreqo8Olo7GQloaAgLb4tlbv+5KuCua4ZNOx7TqNfR9/4SBaKQnSAKPDbcrnNytY+en9q5VSymFSDquLDG1p9Xu+YiGfQmGABQUgT9Aevgv8Yw3X8fIO2xQignovMOnB2VIhfdcNEB7/whM/xVh0r+yytrb4bugyimoEofhkO1PWfMiDuS1tMIzfBqNobn0mV0HCMREhcRj9HltE22RQQfSXQSW9G/OfiNLdWUYXIzUCux/eVHaOE87HKtSfLKBGl9wRqe1qBxSa54R21P3nftWC7+riXPBxvzADu4xzOOhF+eDdEnLQmIK9kADn1gUspEsE7kpB/PZxrcZgcP/IN2JR41srSjCpfzxuqs+KbTmXnuORXlQsA+xt44dd1hjVVfNqq2jqbNT99oxm698kORkObDTNwGRhvY76GncEPrabWC3gp7qtJZ03oi6EgEzhLWGAJugebUZWxh3U8rYqDx14mW+lAt65JOaNa9uKwM4jKOIkA1GlbuP67naA28o/BKyCiBq74OOj6hHDJK341+RaE6XWVGhKdPRjb+IFqlwF1EDw6RbbiGUrBX5YnMTs05qt635LLP1YcJ5MynUWFVG7xVvXYlDdX8Qto2ICZLlPl1umdI= X-Forefront-Antispam-Report-Untrusted: CIP:172.205.89.229; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:nebula.arm.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230040)(36860700016)(82310400026)(1800799024)(376014)(23010399003)(18002099003)(11063799006)(56012099006); DIR:OUT; SFP:1101; X-Exchange-RoutingPolicyChecked: H6cTNPpfm6MshnJZp25cmFzYTm8v1k//sJ2998toRDy1O1WfMMEOsK5UX6UB0F/GkUcSOIA4ckkuotpiTEzu9Hfag1u2XCvEGdyjhdGhaq7RPBmKzYiXpU05K7Tw6Ul62n+J5oMXS/jor7UG5DIikqcrimfpqWTbKKArKy+U9c2bZzcJnzp5GlllF3FIptXG6Hzh7TVhZ2r3U+RKfErLauHQr2mdbYxpXMYZoJSW7mtnn4r05jAfgRIMHmX6YsjEGSrTptlmI6xkaBMvM+FSrPp1Ahbz0I0qKS2s5WXadk9mT004hQKYHNRcHAAko21H/hH/hUm7utoF/YB+0AUCbg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV2PR08MB11837 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM3PEPF0000A794.eurprd04.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 0ac4f298-c92e-4805-eecf-08dec7fff643 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|14060799003|23010399003|376014|35042699022|36860700016|82310400026|18002099003|11063799006|56012099006; X-Microsoft-Antispam-Message-Info: SKgieELJrzUMIw3Aiuf8q9GJonvmGCtmprrXsGjsQAxsmYLKF9xU0WZ95SnlI1b6f/TP1JUvVWEP7C4xMbzHjAyEko9MWp3qaMxOvsIwt3QKEM/Zci+Xk0VvjyZ/g+Oo1lmDYRrzq7Z8rQAJqCP5oJrKrV5ebVtSvDiMicDSwdrt6tMqMZvnD+FZhORSsYG7EtqoftNGyLbcgYSxbYkzzd7F3WYQeuRN36OltUoXf0jDaXfsIfmP/+0Mk/T/W/eD86dEInkY6L/OM12lZcmiFg/YA1UDrKPRlMsor7pV6971BZ18ietVwBWX3xrQAZzaWlFcZD9T9fGlonUo5eda5Y6iGF8wgrzmybPng+wPJ7HG9bzSionsvrhzKLkQ8B+GB5nJG3uuDNig5flgTQx0CBW3aWOLKM9q4BZ20ESo4XJjBFVfUSg9yJkQ7mfBwtYmFPgpwzQUF+99JikgYSdq72Xc9oYXUt+W0Z9lC/dpNe0H264gOjFhOdxJTTwcqCVRwRgaRwlflYVuGyuiTAkVL20kPO90UWI8T3Fv/C9kPG0wC43C1Po3UXmZx7StVik6ET4N6zA1srjbfYEA9y4EqABnC6hrT/+dOq/FfcvhwjQl9fCMKy5j3D4iI+laAYnXdCBfp3jTKLA4BHpvvW5JOb9ObuZTVbcN1LkimZhSEJmNDhwDjK5LXHRJVRbhaj8Up0yMyf/NpZjqrRUB7ZVdx4CfqRif7x4GNL8WgzB1kCM= X-Forefront-Antispam-Report: CIP:4.158.2.129; CTRY:GB; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:outbound-uk1.az.dlp.m.darktrace.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230040)(1800799024)(14060799003)(23010399003)(376014)(35042699022)(36860700016)(82310400026)(18002099003)(11063799006)(56012099006); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: nVRX0rEM5FNl030JBKUAQjwgtlYgUx6Z1A0PgwzD3SJsBKpk2EHnwlDo1iAtnnbjz3iD4iuF82JeYdxowzRdKA+VvO6XZNCH03mSHZNfhtcpCtbLWARU7PjsO8DIh4lMFDiygTmBuZ2urxgjK0f7YTTp4uOv7zqYcqs02M8XyhL0AnV5GhHMNQNqLqqk0RHOmBDPmMD4w8+XFFXTyHAD/c/qfOQk9NKkBd3v/SZY++k3oKT3YwdGdnUVoWSziNeJ49fwQMVf75n7Lz38ohVJfI1bAFAVNDQXy5BXlY3ur9gvmXifHXzNP9UTS32TknK418BxDzfFcpBATo4CvN+nFy+TITkMxRXDTvogThXM074Y7dscA2vWGhfxEZGrCAll5MtFELOFpxCLNUEbPb16KMUYyzCeBfezUPXMVNKYL6oxaeWCrNFAQ3RQjD186eiO X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jun 2026 21:26:35.2985 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: bf4b3698-aa53-45a3-3005-08dec8001d7a X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[4.158.2.129]; Helo=[outbound-uk1.az.dlp.m.darktrace.com] X-MS-Exchange-CrossTenant-AuthSource: AM3PEPF0000A794.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS2PR08MB8453 X-Spam-Status: No, score=-10.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FORGED_SPF_HELO, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_NONE, TXREP shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on sourceware.org X-BeenThere: newlib@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Newlib mailing list <newlib.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/newlib>, <mailto:newlib-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/newlib/> List-Post: <mailto:newlib@sourceware.org> List-Help: <mailto:newlib-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/newlib>, <mailto:newlib-request@sourceware.org?subject=subscribe> Errors-To: newlib-bounces~patchwork=sourceware.org@sourceware.org |
| Series |
arm: Enable FPU for M-profile
|
|
Commit Message
Christophe Lyon
June 11, 2026, 9:25 p.m. UTC
Before using the FPU, we must grant access to it. This helps when running the GCC testsuite on a simluator where FPU access is not granted by default. This patch grants full access, we may want to consider granting only unpriviledged access later. 2026-05-29 Christophe Lyon <christophe.lyon@arm.com> * libgloss/arm/crt0.S: Enable full FPU access on M-profile. * newlib/libc/sys/arm/crt0.S: Likewise. --- libgloss/arm/crt0.S | 13 +++++++++++++ newlib/libc/sys/arm/crt0.S | 13 +++++++++++++ 2 files changed, 26 insertions(+)
Comments
Hi! On 6/11/26 23:25, Christophe Lyon wrote: > Before using the FPU, we must grant access to it. This helps when > running the GCC testsuite on a simluator where FPU access is not > granted by default. > > This patch grants full access, we may want to consider granting only > unpriviledged access later. > > 2026-05-29 Christophe Lyon <christophe.lyon@arm.com> > > * libgloss/arm/crt0.S: Enable full FPU access on M-profile. > * newlib/libc/sys/arm/crt0.S: Likewise. I have sent v2 of this patch in https://sourceware.org/pipermail/newlib/2026/022486.html to move the FPU initialization code to libgloss/arm/cpu-init/rdimon-aem.S so that it's present only when using aem (and thus not interfere with e.g. qemu-arm which would otherwise crash). Thanks, Christophe > --- > libgloss/arm/crt0.S | 13 +++++++++++++ > newlib/libc/sys/arm/crt0.S | 13 +++++++++++++ > 2 files changed, 26 insertions(+) > > diff --git a/libgloss/arm/crt0.S b/libgloss/arm/crt0.S > index b9e768007..0bec14e91 100644 > --- a/libgloss/arm/crt0.S > +++ b/libgloss/arm/crt0.S > @@ -366,6 +366,19 @@ > > #endif > #endif > + > + /* Enable FPU for M-profile only . */ > +#if defined (THUMB_VXM) && __ARM_FP > + /* Read CPACR */ > + ldr r0, =0xE000ED88 > + ldr r1, [R0] > + /* Enable full access to CP10 and CP11. */ > + orr r1, r1, #(0xF << 20) > + str r1, [R0] > + dsb > + isb > +#endif > + > /* Zero the memory in the .bss section. */ > movs a2, #0 /* Second arg: fill value. */ > mov fp, a2 /* Null frame pointer. */ > diff --git a/newlib/libc/sys/arm/crt0.S b/newlib/libc/sys/arm/crt0.S > index 51e86d549..4c775fbbb 100644 > --- a/newlib/libc/sys/arm/crt0.S > +++ b/newlib/libc/sys/arm/crt0.S > @@ -353,6 +353,19 @@ > > #endif > #endif > + > + /* Enable FPU for M-profile only . */ > +#if defined (THUMB_VXM) && __ARM_FP > + /* Read CPACR */ > + ldr r0, =0xE000ED88 > + ldr r1, [R0] > + /* Enable full access to CP10 and CP11. */ > + orr r1, r1, #(0xF << 20) > + str r1, [R0] > + dsb > + isb > +#endif > + > /* Zero the memory in the .bss section. */ > movs a2, #0 /* Second arg: fill value. */ > mov fp, a2 /* Null frame pointer. */
diff --git a/libgloss/arm/crt0.S b/libgloss/arm/crt0.S index b9e768007..0bec14e91 100644 --- a/libgloss/arm/crt0.S +++ b/libgloss/arm/crt0.S @@ -366,6 +366,19 @@ #endif #endif + + /* Enable FPU for M-profile only . */ +#if defined (THUMB_VXM) && __ARM_FP + /* Read CPACR */ + ldr r0, =0xE000ED88 + ldr r1, [R0] + /* Enable full access to CP10 and CP11. */ + orr r1, r1, #(0xF << 20) + str r1, [R0] + dsb + isb +#endif + /* Zero the memory in the .bss section. */ movs a2, #0 /* Second arg: fill value. */ mov fp, a2 /* Null frame pointer. */ diff --git a/newlib/libc/sys/arm/crt0.S b/newlib/libc/sys/arm/crt0.S index 51e86d549..4c775fbbb 100644 --- a/newlib/libc/sys/arm/crt0.S +++ b/newlib/libc/sys/arm/crt0.S @@ -353,6 +353,19 @@ #endif #endif + + /* Enable FPU for M-profile only . */ +#if defined (THUMB_VXM) && __ARM_FP + /* Read CPACR */ + ldr r0, =0xE000ED88 + ldr r1, [R0] + /* Enable full access to CP10 and CP11. */ + orr r1, r1, #(0xF << 20) + str r1, [R0] + dsb + isb +#endif + /* Zero the memory in the .bss section. */ movs a2, #0 /* Second arg: fill value. */ mov fp, a2 /* Null frame pointer. */