| Message ID | 20260616111125.96293-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 6E93B48F90CD for <patchwork@sourceware.org>; Tue, 16 Jun 2026 11:13:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6E93B48F90CD 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=rOiQtGlH; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=rOiQtGlH X-Original-To: newlib@sourceware.org Delivered-To: newlib@sourceware.org Received: from DB3PR0202CU003.outbound.protection.outlook.com (mail-northeuropeazlp170100001.outbound.protection.outlook.com [IPv6:2a01:111:f403:c200::1]) by sourceware.org (Postfix) with ESMTPS id 5C5DC4BA2E0C for <newlib@sourceware.org>; Tue, 16 Jun 2026 11:12:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5C5DC4BA2E0C 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 5C5DC4BA2E0C Authentication-Results: sourceware.org; arc=pass smtp.remote-ip=2a01:111:f403:c200::1 ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1781608366; cv=pass; b=RTTHCLk04xXSP1DB68punC3YbuXct+iqnp+eCRRQ9z3Ox34R5Q1cEy4Daw6oETvY3K0yC5mxzN41BYfVFlkH+hypz3I28z3XSDhEzkjKZk3haCgDnXYUCtOmSzCcnAkpLlfl6k3XIQ5d1JNlYuG/gow4Wqrs+/uOyqts+4t02vw= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1781608366; c=relaxed/simple; bh=Gu4fL168+J1zrN+9B/MCAMYQVmWSED1TT5vg+Lds26Q=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=J8CA8C74T4xWsLNCVLVGglwP4o07pydmJ11rmq4s3BBXEa2x8BDicQMGY6VnSJ9qfhRRYosSDswY71dA99vIp5j+6QTPx3Pss9e9Qwee30doUOxIUGfr0NSj2CzodR6ao46/nxpFznF+K51ryIORGTOOM8fgC+ggXSnusd0LRaY= 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=rOiQtGlH; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=rOiQtGlH DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5C5DC4BA2E0C ARC-Seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=IMnLh7vetjKAZeN+m+Ud1y9WYJv0gmc2oA7S5AXb6T/rP0JOPgs7dxT3mffPmKNzssH0U+ypye1FpqpUpU7gvkDxQfoXSx5DTWlYmVycLedYpulV2Irq1HtBwpeX7sUMAAOUtCHoO4fA/+ZNznSs0eF9d+z9TTVm3SHDUjTqlgE3D/gsvx6LPd5KenPdMGH7nN7zkM9AJJ3e+eNDJxLfcC7LytMt3clvq72FSmL+4TZWbb5esRjms51m9ZcW2EQId7Ba38FMoeVl1ylrLYvf9trNPS92bAqxRS0JiX3Pp0rtYGCERNpMLNCtM4GS6bTINAadEQMiTlfj77CRT9H6OA== 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=QAOdURhghLoxcHZ/iR3KD7nUAQtRdqFJ++DzcqdkCNo=; b=VxYXLKy6BBOtrnnrWMOXLozKvW97bb6E0edTYXzSkh0Gfb5MFy5q0mqqI6bHwX166Yz2Zn0vZ49SLW+rSXdvBMnRaU70YCnP8cnwOpG6EHzHYvj10FGMen43RVHtaFoe14RTNOW7J8s72J+0FWREfRONt48IJpZgO69H5ThX1i4LFWmFreMbC6yME2+ghjIXkyIKlICdRgmTnEqMmOQ00tuDX7LrU9X0jcPP+R4n80cYQ/6kD74GEBY9yg7H8pVVrPxEE4lLm3zb2ddgRHcu9aPrvFWshHbFPybMI0vWwEsZsi/8t5/6ujvYTyUw1rDqlzACvhrUneMcKQKrs3xoqw== 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=QAOdURhghLoxcHZ/iR3KD7nUAQtRdqFJ++DzcqdkCNo=; b=rOiQtGlHSa6jx7Ur/jdHgolFe6KFR69Wa7T+e+lOCgCQcFVo5nv2oUx9Nu6Odv5aEnSsnJmzxwwh+caTOp5re5rNmbCQCX8rI0RPvytxSiHwc3tlsVRYY2AvWfbEs40iOv6+MQZ6HdBCwPtXFeCG1nvWnd1l5BAew2eRYP/3ptg= Received: from DUZP191CA0025.EURP191.PROD.OUTLOOK.COM (2603:10a6:10:4f8::21) by VI0PR08MB11231.eurprd08.prod.outlook.com (2603:10a6:800:2c9::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.113.18; Tue, 16 Jun 2026 11:12:40 +0000 Received: from DU2PEPF00028CFC.eurprd03.prod.outlook.com (2603:10a6:10:4f8:cafe::e) by DUZP191CA0025.outlook.office365.com (2603:10a6:10:4f8::21) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.113.18 via Frontend Transport; Tue, 16 Jun 2026 11:12:40 +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 DU2PEPF00028CFC.mail.protection.outlook.com (10.167.242.180) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.113.7 via Frontend Transport; Tue, 16 Jun 2026 11:12:39 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=G+EY+/rZLjBZjKbCosptgvST1lujQcE1argAXkUIPRsJ1DwTolTV0vWxiPjSOcXZElHnltj8WGise7Eq5nkLEJ5+chbKLOxYmpL3K0Vvw4ndmmacgGMAoAjwK1PV1HuwaQc8qBp0eRWj9bssUPdvONbpAyk2xYvgvqFp2zVu96XWsArUSjE5g1BNeqDbM+iqDJzl/x5dVBOSDxZAL9RtRM5usms7nP4YZbIcRr7leRIfvxZfoIk4jsTl36i9Qddv3jAcGT6u4fEj1Txb0szegPa8RNDUaAQRv5txEep2jAdIKAD4bIsHhnj6/cYuH7qXA6U18aApaYSIUjsnmeOzQg== 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=QAOdURhghLoxcHZ/iR3KD7nUAQtRdqFJ++DzcqdkCNo=; b=Wpgr8s4ilbLSBJ9xon3Mw1LZYiZAUp/8Aeoo7Pyv7O3LiCzf+iSrflwWP5DxO2PKhFUAy2mP8O4jhtkmXisJ7qgE+/HNTbovTByRUFzv9SadKSbv9WuLjJRw8aGnUwiFxjA0EWPq8XrNa/iwjNmylF5c8C8g0KH4x+D1rRbh/ADNX+6EwSKLG91LIVNOBHEDmS3F4sxLEpRID2Jcykyy5ZDuFgy7EGHMgOOwlBP1zTQDid5EuVRUrVE9tWvwUCAQnOsmVSjqQ3XeXYorXpdoTCiqV/fpsoSFZ0AjcVrPz2bdExMs26hfAJXS43bDOx3ivAq91GpqKZvA/LrdqojR3g== 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=QAOdURhghLoxcHZ/iR3KD7nUAQtRdqFJ++DzcqdkCNo=; b=rOiQtGlHSa6jx7Ur/jdHgolFe6KFR69Wa7T+e+lOCgCQcFVo5nv2oUx9Nu6Odv5aEnSsnJmzxwwh+caTOp5re5rNmbCQCX8rI0RPvytxSiHwc3tlsVRYY2AvWfbEs40iOv6+MQZ6HdBCwPtXFeCG1nvWnd1l5BAew2eRYP/3ptg= Received: from AM8P191CA0029.EURP191.PROD.OUTLOOK.COM (2603:10a6:20b:21a::34) by AS4PR08MB8023.eurprd08.prod.outlook.com (2603:10a6:20b:586::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.113.18; Tue, 16 Jun 2026 11:11:31 +0000 Received: from AM3PEPF0000A799.eurprd04.prod.outlook.com (2603:10a6:20b:21a:cafe::10) by AM8P191CA0029.outlook.office365.com (2603:10a6:20b:21a::34) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.113.18 via Frontend Transport; Tue, 16 Jun 2026 11:11:31 +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 AM3PEPF0000A799.mail.protection.outlook.com (10.167.16.104) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.139.8 via Frontend Transport; Tue, 16 Jun 2026 11:11:31 +0000 Received: from AZ-NEU-EXJ02.Arm.com (10.240.25.139) 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; Tue, 16 Jun 2026 11:11:30 +0000 Received: from AZ-NEU-EX04.Arm.com (10.240.25.138) by AZ-NEU-EXJ02.Arm.com (10.240.25.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.29; Tue, 16 Jun 2026 11:11:30 +0000 Received: from e129018.arm.com (10.57.24.189) by mail.arm.com (10.240.25.138) with Microsoft SMTP Server id 15.2.2562.29 via Frontend Transport; Tue, 16 Jun 2026 11:11:30 +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 v2] arm: Enable FPU for M-profile Date: Tue, 16 Jun 2026 13:11:25 +0200 Message-ID: <20260616111125.96293-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: AM3PEPF0000A799:EE_|AS4PR08MB8023:EE_|DU2PEPF00028CFC:EE_|VI0PR08MB11231:EE_ X-MS-Office365-Filtering-Correlation-Id: 8063f96b-0b00-4dd6-571d-08decb982dcd x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; ARA:13230040|23010399003|376014|36860700016|82310400026|1800799024|56012099006|11063799006|18002099003; X-Microsoft-Antispam-Message-Info-Original: 6ing3CECeOgUK4dT1dXZ7XyHjHqvJFW+pa1NlVoGeZZKboFWP4SBH0cBUoRk1afw8QbMKmk3+8qTIExcZ+H506+W2RE2vkPNmvJE8onisOyK0MjM5nqPRJjtPU1UdxNlrNmI4QEe4ou9BrImMParCE76koHgGSoucPI2wf+yqFs42KGIkJYMXGpBxT6wiXKz2vQxt+1OQh3T4ZTvwqBijAlkk9WYeoNyBSCJV+e3DiFXle9fmgzjX9TVVBf4AYxEQ6k+kAOJ54+gNV8Vh4qMVJosMH1bLTSmLyu6iBab3Tc4pX2xjK7KOu1SbSQL14fcG3nL8tWIf5wrNwbRU7slR9AVOUTGxGIUIkKsQBSCyJDACQttwiywhAEXn3+fYs8pTytDFgzlE7CrKQHODBeVViDvyXsqpmA/oKCp2f5asBw+ARid2gIfP4RuYmFvzbtHtWhXAMELapy6CP3WnoUbjBMjGeFBGYy9EaqZVkgq/hw284UKoaMqesfsr6IAUAfg7sxWR+vPE4hN6fAlqOphqPwW3NrUxjDaqr9y+1JarUCvlu5dP6TmfimQK6sVMaS2W55tgqB+0a/vTgjJ8XSWOcjvuO4kbvFwXzbS35v98nvp1Moulpq2AtUKTd8Owl8we+s9pg4z4xC6bWTs6V9kqNaBwIOjsJyP0m4kAKc1kI/UjM1o6ganrEdWa0k7OGG8Z/xz+ws75n2E2fQS1c9xkSCWKbFo3FqJ38JZ2AclDmw= 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)(23010399003)(376014)(36860700016)(82310400026)(1800799024)(56012099006)(11063799006)(18002099003); DIR:OUT; SFP:1101; X-Exchange-RoutingPolicyChecked: hlYvobssxr51szp/Q0cmx2ssuiWbDLsoK4OhUCy1SEOaZEIn+SXA9NRRmnAIDlX4NWVZQI/hf5ESUbxZwwcu9N2mkTW4qwcXNo6zGdwIc+fFxGC6Stn1ddARdsLhOeSmdOV9hsBS1K8MWM0NFEvuNO9EREj4X1ue5+A8mfIFiG9g2WNCLVKrUnRJr5ScVI1yPqEYnOH+986su0oj2Ape9+VfrvqK8Bp6eT7VGIXRjjK0e2Ya9bEBOjO9j+SOyNwgD0I32Zgk+6uyZ2i9VU5digTkPj89TklUjhOd/58PWcvqFUaT/P3rlo2ZwlhravmgaOK2bKhbIaIIHImzEg2cSQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4PR08MB8023 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DU2PEPF00028CFC.eurprd03.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 98ae8137-3a6e-43c7-0a7e-08decb980529 X-Microsoft-Antispam: BCL:0; ARA:13230040|36860700016|14060799003|376014|82310400026|23010399003|35042699022|1800799024|56012099006|11063799006|18002099003; X-Microsoft-Antispam-Message-Info: miCVBhkaoYHgvmf9/AhH9nXDEvX+1ZnZ5yeT666tuwxrF3816e2wO34qX7p/pPhVmsAgUNzImgNrPkioTh27YFif180WOlifD9s7hdo2mlzsVPILe+EJ7qpV3jKW2QwLT2fXpwtJxvCBRmYSLFPUb8YjWSw9lshgCoTdYPqk1JNnf5DysOK5JLH8pdWKpDsQSAfv0M7RcFMNsTZ32SkkNT6ubDz+6kb8JlNSFc8Vf5PR1kPU5Tw2isZWLVinFPpkjD19604hs0FmJJKRdenhS8LDgoT0E/n7258vuCTwz2LNI+JdaT1V/kk9iShq0Sjfj6Fnj9aLk10Fq1Op2svzGA2Tyw+kCH+qYQjK53OCKz8jXEhGK2dJw0qARqzGgEHghIz4YALFxDRyMRYf1ZW4F3MsahbNaL/jPl1BBbi/jutB6ih6MLlpWQjrawi0DvaX5lqV8sD4F2dodBnpyMbeijPpDfs7CR7WE1OLBLztDexMGwSbKidUU7+yNFQopCiI15x2mbJeljAQkEjSL3B05SWgA08yXDZ/pfec14C0L8V8ynNyJNSuBvcFgrnM4JHs4neuBB9FO7ms0LskkEbsFM+a2WNU6/DeCjL9Cg4LA4Snl0oXaZR/gbLDH7vJvlQuets79a/c4aAOlNCLHQ1DhAHBZHPcotJp+T8lczgJJyqGgJ/UBfhE3JLgVxBNjheoxbxXE26j9UNho9ga9OtD7Huf8iYo5CNY/zQHhceIB14= 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)(36860700016)(14060799003)(376014)(82310400026)(23010399003)(35042699022)(1800799024)(56012099006)(11063799006)(18002099003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: t8gDHw60hmX0iwGBTpsmu3eK8F5Q3S3pp4Z64CPuA+ynqhi0MQGySPE2dMFm9HrpxlMQyylpvHBnLNTtX4/vGZkG4KK0VI3OZg2dIz4HXH/vsXFoYhZpCw2x+71of5VyJMzIj+7rKLztRKUhQ3ENIAOlk/Qa9sUgcGcbwZ7mjXmGrmExN7JIZpl4ZoTZ/D6Ie/H7UIZGarhF3nRGpqYzTxFlsyv9eCW53LrqhQhE8rWBywiEpLLTPDP1m4CV6iqZz2LyHroZ/fFVEDl7YuSn0fnldDDMN8S4sR9HfKsYmB0zWzrp/oi/F/W7Ql13uzABEG2MgtzzDHsjCQgXi5MnZ0S3MjgzJp4fMx5LltZxmeJzUobzobiLvcjyPJ9kGUdcGva9P4t8H4SbfhO+ODTsaR3a/gS4IRzjLbvaHYgmPg/+YYDR2u5wMb5ZCmTEuyZi X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jun 2026 11:12:39.6725 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8063f96b-0b00-4dd6-571d-08decb982dcd 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: DU2PEPF00028CFC.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI0PR08MB11231 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, 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 |
[v2] arm: Enable FPU for M-profile
|
|
Commit Message
Christophe Lyon
June 16, 2026, 11:11 a.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/cpu-init/rdimon-aem.S: Enable full FPU access on M-profile. --- libgloss/arm/cpu-init/rdimon-aem.S | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-)
Comments
Hi, On 6/16/26 13:11, 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/cpu-init/rdimon-aem.S: Enable full FPU access on > M-profile. Sorry I had forgotten to 'git add' libgloss/arm/crt0.S where I enabled the call to _rdimon_hw_init_hook for M-profile too. I've just sent v3 with that: https://sourceware.org/pipermail/newlib/2026/022488.html Thanks Christophe > --- > libgloss/arm/cpu-init/rdimon-aem.S | 28 +++++++++++++++++++++++++--- > 1 file changed, 25 insertions(+), 3 deletions(-) > > diff --git a/libgloss/arm/cpu-init/rdimon-aem.S b/libgloss/arm/cpu-init/rdimon-aem.S > index c960924d4..c8640632a 100644 > --- a/libgloss/arm/cpu-init/rdimon-aem.S > +++ b/libgloss/arm/cpu-init/rdimon-aem.S > @@ -25,9 +25,10 @@ > > /* This file gives a basic initialisation of a Cortex-A series core. It is > the bare minimum required to get Cortex-A core running with a semihosting > - interface. For M-profile we only define a hardfault handler, required to > - prevent the simulator from entering into an infinite loop. The comments > - below apply to A-profile only. > + interface. For M-profile we define a hardfault handler, required to > + prevent the simulator from entering into an infinite loop and we enable > + the FPU when __ARM_FP is set. > + The comments below apply to A-profile only. > > It sets up a basic 1:1 phsyical address to virtual address mapping; > turns the MMU on; enables branch prediction; activates any integrated > @@ -542,6 +543,27 @@ page_tables: > PT7(0x1c0e) > > #elif (__ARM_ARCH_PROFILE == 'M') > + .syntax unified > + .thumb > + > + @ CPU Initialisation > + .globl _rdimon_hw_init_hook > + .type _rdimon_hw_init_hook, %function > + > +_rdimon_hw_init_hook: > + /* Enable FPU for M-profile only . */ > +#if __ARM_FP > + /* Read CPACR */ > + ldr r0, =0xE000ED88 > + ldr r1, [R0] > + /* Enable full access to CP10 and CP11. */ > + orr r1, r1, #(0xFF << 20) > + str r1, [R0] > + dsb > + isb > +#endif > + bx lr > + > /* On M-profile, call abort in case of hardfault: this causes the simulator to > abort execution instead of going into an infinite loop. */ > .section .hardfault_handler_addr, "a"
diff --git a/libgloss/arm/cpu-init/rdimon-aem.S b/libgloss/arm/cpu-init/rdimon-aem.S index c960924d4..c8640632a 100644 --- a/libgloss/arm/cpu-init/rdimon-aem.S +++ b/libgloss/arm/cpu-init/rdimon-aem.S @@ -25,9 +25,10 @@ /* This file gives a basic initialisation of a Cortex-A series core. It is the bare minimum required to get Cortex-A core running with a semihosting - interface. For M-profile we only define a hardfault handler, required to - prevent the simulator from entering into an infinite loop. The comments - below apply to A-profile only. + interface. For M-profile we define a hardfault handler, required to + prevent the simulator from entering into an infinite loop and we enable + the FPU when __ARM_FP is set. + The comments below apply to A-profile only. It sets up a basic 1:1 phsyical address to virtual address mapping; turns the MMU on; enables branch prediction; activates any integrated @@ -542,6 +543,27 @@ page_tables: PT7(0x1c0e) #elif (__ARM_ARCH_PROFILE == 'M') + .syntax unified + .thumb + + @ CPU Initialisation + .globl _rdimon_hw_init_hook + .type _rdimon_hw_init_hook, %function + +_rdimon_hw_init_hook: + /* Enable FPU for M-profile only . */ +#if __ARM_FP + /* Read CPACR */ + ldr r0, =0xE000ED88 + ldr r1, [R0] + /* Enable full access to CP10 and CP11. */ + orr r1, r1, #(0xFF << 20) + str r1, [R0] + dsb + isb +#endif + bx lr + /* On M-profile, call abort in case of hardfault: this causes the simulator to abort execution instead of going into an infinite loop. */ .section .hardfault_handler_addr, "a"