From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id EV+dB30HSGrbGCQAWB0awg (envelope-from ) for ; Fri, 03 Jul 2026 15:03:25 -0400 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=qp2vVRoJ; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=qp2vVRoJ; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 196031E098; Fri, 03 Jul 2026 15:03:25 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 599541E024 for ; Fri, 03 Jul 2026 15:03:24 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id ECC994BA23D3 for ; Fri, 3 Jul 2026 19:03:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org ECC994BA23D3 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=qp2vVRoJ; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=qp2vVRoJ Received: from DU2PR03CU002.outbound.protection.outlook.com (mail-northeuropeazon11011025.outbound.protection.outlook.com [52.101.65.25]) by sourceware.org (Postfix) with ESMTPS id 3B5C64BA2E13 for ; Fri, 3 Jul 2026 19:01:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3B5C64BA2E13 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 3B5C64BA2E13 Authentication-Results: sourceware.org; arc=pass smtp.remote-ip=52.101.65.25 ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1783105309; cv=pass; b=EbyKtoaTpDzvkcZgCJdnDR+j2TD3icGXltAK8I4seoUqQCsouZ0EzE/0/qFb+mByNcvuCLhlYmBi/OGNIg9EwaHuZ5ekUlA5SG6cyBbNOLkW1nHzlZXTG8hB1bQkguqg3mzrjEq7V23pJHu14gUGBaaOrWuRTdiBzXT8UwH4p8Q= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1783105309; c=relaxed/simple; bh=dbDXKZLvtjppMHgVG63u5OR1wsYRqCrLNsP4pNaPKL0=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=vVdsdmjs+7o53WB0dudKO3t3I6WpeJcT+yeyaggrms7LNiHbtzDTGOH75I5n2nQmr0q+P5DXgSgmQogLc3D84BYEYuNzxnhTldw2FDx3j5ejVrV5IJ5cdEY+q6t3zkuHdK7MSJR0lzt/DkbNdOsmFG0/fhgNrL9aglYDCj/a7TM= 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=qp2vVRoJ; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=qp2vVRoJ DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3B5C64BA2E13 ARC-Seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=dhmKxiMpGYT8DbYFywKVenYdFiIzJBCxD+riAPhoRYC0Tc571vEPNp2kbLdOpIVJ90DwvNIZFH2YImugK4Tdv4EpM9b6ISAi2X587RhR89uI0IVpzchWorQac4ltcNFqMcplJf8irjiqE8ZSRqaiKQPKakAO8hfzUKSIwIwxlB81EfMRhq73nhPstKzr5QW1PAx6dvzfyQMlSKVVM3KCo0wKFFXyMfKQ9Gy0W16ewGEdnJCfiTmDK/GFRvn8EeHAO4l90Drw+IVlA5f7axfFy0wu1KAoeb4kPQUCOOr3jyo+Pu5R6skqnP8TK4zDjazq2Ti6+iSfpuRxbJ5WQg2Rcw== 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=w8AVvlVaQWBWqvuqYei+CNt66yjHB1b4AEfby7CaO90=; b=EQOp4dyqJD8ImKxjTZd7hnBczXAoComFkhVasuswq7jmjmqlDGIxNW1Tn8wtRaia6umfuU6VuQxKSWaTfoXA1oWXIPmqECB91HJaU+/j/LJjyuoYb0tr1o81GN9NBBSSLeIr83l6S9C2vqKuSAqwjdpuP6vFuCFVQnAiRLoqyz/5kXVmHlXnOyxmnYBnRPCoE2uYtP3flCDKIklMaces9RDwFUW4PRmByGJf9bCiZFAdIxjNMLqLxCSaQf0A2yDD2dyVKCy+/NCe7CrF+OFY+DoP0mPJbOsfQcv/RyaWzHuvI4ilefQHDug/rG9k1WJzg50Jv8p0+J7sGNz7klMdqA== 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=w8AVvlVaQWBWqvuqYei+CNt66yjHB1b4AEfby7CaO90=; b=qp2vVRoJURd1LaSR0s6kJc4b/qaKXR7sL67FDbtoIlWPFWlVmd+482IUCp9wFFByh0pJBnViM5BxXUQswgBMeT9487EGWLwCojWqN03o7Q6TL4qCPEfxbR+zq/gX+6rOiKKFj9ZVgcFFOsnMTC2QuLR7VRb15NhezgdXebXd7Z0= Received: from DU2PR04CA0289.eurprd04.prod.outlook.com (2603:10a6:10:28c::24) by AS2PR08MB9986.eurprd08.prod.outlook.com (2603:10a6:20b:649::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.181.10; Fri, 3 Jul 2026 19:01:31 +0000 Received: from DU6PEPF0000A7DD.eurprd02.prod.outlook.com (2603:10a6:10:28c:cafe::87) by DU2PR04CA0289.outlook.office365.com (2603:10a6:10:28c::24) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.181.9 via Frontend Transport; Fri, 3 Jul 2026 19:01:31 +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 DU6PEPF0000A7DD.mail.protection.outlook.com (10.167.8.37) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.181.6 via Frontend Transport; Fri, 3 Jul 2026 19:01:31 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=wDhmn5mV8xc+bYRdhijwxP316PTqaKfmLYcTZ13aCUyvivNg9xOJ5MsceyMJUdmzxW35UcCv0hWMrHkPGh3TtMaX0LkbZGkSLzalfG23+OLfL1Ac5jT2azE7GFFvsVmPQ4tnzV8luMuEMhNgE8NoxCE+u4UNCnBQWS6pLC9/KAU8i0mIcpIGUrFMEnxIyekHXHGWhPs+eZJJa30lcGlDnz6S6XPY3/iMnd8NQQZvyCk07NVt34qOypbu3fhKhPDKYw3DO3NlR794FqIFxTtOfTi1XEfgPDLFIenFvS/rWpZLtZ3+JOIQMVHiNh/+NTX2olmwxY6qP8jH45F4XziHGA== 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=w8AVvlVaQWBWqvuqYei+CNt66yjHB1b4AEfby7CaO90=; b=SIr/u+a0T+sYNc+vtwOX2GFqZLd56CPbKMwC1PwhWhc+C4wpMrkf0GUvdsUCovkMtBumPP+cL9nPpnntZH3GiDETJOanxKQZ1J6SpKBBFj0Wbd8WMSi1lH4Cr+SkX5/L1MnEeWbu+ZB/C8V/5ElM+VpnFSrHVXGTAK4OwZVIxMh6D1RBxhALq4BJeNi925f2bTc+ilPPqEewfKcDmGWJUFHFjhbpvTbw9+JehrjLNuBqKQwQR58bawYzbqM7kku6lTXiOgbphtNp/OqTjTM81YV6I1laf/1lIFjnTdLz8LqkeIAA+nH1g1wYSxrZBek7c/QA+r8Oo4SjE/HKOndFjQ== 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=w8AVvlVaQWBWqvuqYei+CNt66yjHB1b4AEfby7CaO90=; b=qp2vVRoJURd1LaSR0s6kJc4b/qaKXR7sL67FDbtoIlWPFWlVmd+482IUCp9wFFByh0pJBnViM5BxXUQswgBMeT9487EGWLwCojWqN03o7Q6TL4qCPEfxbR+zq/gX+6rOiKKFj9ZVgcFFOsnMTC2QuLR7VRb15NhezgdXebXd7Z0= Received: from PR3P251CA0030.EURP251.PROD.OUTLOOK.COM (2603:10a6:102:b5::25) by AS8PR08MB6453.eurprd08.prod.outlook.com (2603:10a6:20b:31b::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.181.10; Fri, 3 Jul 2026 19:00:27 +0000 Received: from AM4PEPF00025F96.EURPRD83.prod.outlook.com (2603:10a6:102:b5:cafe::13) by PR3P251CA0030.outlook.office365.com (2603:10a6:102:b5::25) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.181.11 via Frontend Transport; Fri, 3 Jul 2026 19:00:26 +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 AM4PEPF00025F96.mail.protection.outlook.com (10.167.16.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.202.0 via Frontend Transport; Fri, 3 Jul 2026 19:00:26 +0000 Received: from AZ-NEU-EX04.Arm.com (10.240.25.138) by AZ-NEU-EX04.Arm.com (10.240.25.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.29; Fri, 3 Jul 2026 19:00:24 +0000 Received: from PF4S4363.arm.com (10.1.37.19) by mail.arm.com (10.240.25.138) with Microsoft SMTP Server id 15.2.2562.29 via Frontend Transport; Fri, 3 Jul 2026 19:00:24 +0000 From: Matthieu Longo To: CC: Luis Machado , Luis Machado , Andrew Burgess , "Matthieu Longo" Subject: [PATCH v1 8/8] gdb/linux: add helpers to read AT_HWCAP3 Date: Fri, 3 Jul 2026 19:58:53 +0100 Message-ID: <20260703185853.450440-9-matthieu.longo@arm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260703185853.450440-1-matthieu.longo@arm.com> References: <20260703185853.450440-1-matthieu.longo@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: AM4PEPF00025F96:EE_|AS8PR08MB6453:EE_|DU6PEPF0000A7DD:EE_|AS2PR08MB9986:EE_ X-MS-Office365-Filtering-Correlation-Id: 4e1ddeeb-fc28-42bc-1628-08ded9357ea2 x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; ARA:13230040|82310400026|36860700016|1800799024|23010399003|376014|18002099003|22082099003|56012099006|11063799006|6133799003; X-Microsoft-Antispam-Message-Info-Original: NdzJuPR2RZ2hk3iXFd0HadrtgdKjeDWi2dWPWrxe9VnEDwz9oh0XIQCg+Pw7x/widdQNFwlS1UVgysabrdXq2l95osrnOVp7WluQzDHvng/SD1/tuded+kgElBFLRuOEMKYE5D4KAaLA2RWuRlsqpMPw26lHKHT4z6C/Jj1R/hRzMtyVYO+J8M5qw3vDtGBpFcfC+0TkfPQq2y2ojv+9WIFZM/gmziiI4vkOFs8ZbPG+jtrijfByNLFaVNylmzINrHaiDwvkVaMb9x+YJgVm7q3/xpiidnKNOEdAB6dW6en1lskM2rQfmjxiq8oKTNp8GbFE2Qua01t97mQu9Bhf/WfoQzXx/5Kh3lnzH0dmx51oYVMaaG6qTa61f2lqdduKhbycIua1FE9UsLAixGjeUeOmZP/HBxGU+ehG0i3jCNGRAu5X8rtiL2alOCu1wvqoZCcIg2A/HS8d5vlhQ8XZlzzEo7QpyBWU1Rla4MJs/WJHcV8p3FDuIliA7fzo8aCT8zBeYbVRUzF0xacbDNxRzvvdZngbugbQRcteaPXYezEdjPnk0LHhBhQYgmrCh9XgiixiipR5b84lTaBqZq+6IYvcIZ1SGoB34P5bnYxTREy6A5ImR13bjySS8ePnpE6KCc6Scoi+appuZSN+q7RTtLZJwTuW/nKtuJaqiDNMhpOIB9RRnnGKFFUB/3h0kuBquxmLtkM5ncTTPKBQyMHJig== 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)(82310400026)(36860700016)(1800799024)(23010399003)(376014)(18002099003)(22082099003)(56012099006)(11063799006)(6133799003); DIR:OUT; SFP:1101; X-Exchange-RoutingPolicyChecked: BZwT/2znQrpcizvqSgnu7RHeZuZszVoJNaujSjPzXjpVf1F1Bt4jDkAEs8E1OcS/AXG3okKfkypzZm5wk/gjiG/d8xD4PFgB0xoZ27E1p8VNtktBt7+8ZxDcF8lDLadzEwvh7Wlntx8KoGcQ3YeKb6kF9pX2wjEvfzIZQZYsg98H+2cTG9N7wEfk5ToCMeHfX9A/7n/f5ku2YgUMJa8ERAfwuY8rlD0fg9sBNWwEuBE9Dud7IC3tyqraeExWJmpT9EE49VrwtvM3safHybfi9VTFAq+GAJVQNqlgJOU23A1j+SwpeQAClhmOw4K3xok4N7zz/ATL07akx/v9RLdXXw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB6453 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DU6PEPF0000A7DD.eurprd02.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 91ac093d-cd36-4425-833d-08ded93557e6 X-Microsoft-Antispam: BCL:0; ARA:13230040|36860700016|35042699022|14060799003|23010399003|1800799024|376014|82310400026|22082099003|18002099003|56012099006|11063799006|6133799003; X-Microsoft-Antispam-Message-Info: GE65NTGaiImgy8IBKhgVYoWsh/pPNrlwy+kfZJpChMMVWv5Bi30GpTUUbsIYgKmMzbR/TA5DNnkCUCEhNk51YrmvJScX513aqPZ/enzDP64Ym+zyFTnj01NnE3x9vyU7dOar/7+wYlr3yYR5YfZGu+8/YnglWPTUAkRoy0Cp6T+VM1ZUCIgWSFrA79NmLLo/BcjiejRNIw/adok3gzlK+9cUEvhRe+Z56BmA86ysnA0RULys2vtGegVlZY2n5HjUJwA66kyOvxjRzuoWTFEKgdU/wHT5eL+ETm3lwhFJ19cSPHuJBAB93ER5B+KG3T2vScBtpCwP5lLZN6mPrxprvFR5/JHhxZFGgw9VtZ+WOt2z5J5h52JM+Z+8iY8Zr5KgE7JF/mZNZWj3uPEhCzGTR6sKbS2/IfpUdLYHOzTlCaOwwh9Jyg5BvX11EP5F1TjxWbfpsUv12KhF0ILgtv9Ycj9/0LW7HztWYgRMA74b//NhCxtZlykdOrhPsqgRDGEVn9mL72JaFW51qs4a5kehqpcwe3Z+cSz8sPoykks0K00+67ITNKmi1VYWoykZiaGFAue4NZiLfcaWrFHAfABAuwzOnFIIYkpmOaaHiSWL6BQf/9KYZdBYxdeCpINqlCzvSzrlL/PY/GdLKg2rqH1my7yXI7Ll3lvVH4YOKlTB4w88G28cvrs++c0iLYkNeL4fRhDMSwbVU+bboQkkhq8jdg== 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)(35042699022)(14060799003)(23010399003)(1800799024)(376014)(82310400026)(22082099003)(18002099003)(56012099006)(11063799006)(6133799003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: a7fliVbMT8oIa4lNuzVu5SP+himJB7W6pnGUi13lCcfmKtCFfEFxzXkkR6vXrED7f0lHYQQNOXoa8J4/5DNkvSyjuhJNviX7US1hK8EOFy58oUkgGFgS9C2F5TSymHixAo9eOJxaPx/fRKppdFrmrL1FA6vRjKS+XCxUd+LYjK3MfqP1qAVTex95QBNCEPNXDdNE5as8OIijyPlE0pLID7+45bQRejjYP6QkILLZ3ygNhcRMKogoO+t1W5mbNhC+8Infh+NRdaGJe/ldqnVZKRqQFfK1Slj25f9MxU8k5ah/ZJAHtD51SZq7DG1ReENXZxmpKGu590H2euY3RuWvtl4F3oYRRsgoMrEBgcqu8O0aWE90rzbqLIgtwcjwF3VyQgb6fYzWW48/F0lmcjaHO2xt2UXr6cevD4rTSpMlrbzQkJdV7t8JoeV2MUaKGsko X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jul 2026 19:01:31.3204 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4e1ddeeb-fc28-42bc-1628-08ded9357ea2 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: DU6PEPF0000A7DD.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS2PR08MB9986 X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org Add linux_get_hwcap3 helpers to GDB and gdbserver, mirroring the existing linux_get_hwcap and linux_get_hwcap2 interfaces. The new helpers retrieve the AT_HWCAP3 auxiliary vector entry either from explicitly supplied auxv data or from the current inferior. This prepares for future features that depend on HWCAP3 capability bits. --- gdb/linux-tdep.c | 19 +++++++++++++++++++ gdb/linux-tdep.h | 11 +++++++++++ gdbserver/linux-low.cc | 10 ++++++++++ gdbserver/linux-low.h | 4 ++++ 4 files changed, 44 insertions(+) diff --git a/gdb/linux-tdep.c b/gdb/linux-tdep.c index 5312dad176f..e00a9786f0b 100644 --- a/gdb/linux-tdep.c +++ b/gdb/linux-tdep.c @@ -3138,6 +3138,25 @@ linux_get_hwcap2 () current_inferior ()->arch ()); } +/* See linux-tdep.h. */ + +CORE_ADDR +linux_get_hwcap3 (const std::optional &auxv, + target_ops *target, gdbarch *gdbarch) +{ + return linux_get_hwcap_helper (auxv, target, gdbarch, AT_HWCAP3); +} + +/* See linux-tdep.h. */ + +CORE_ADDR +linux_get_hwcap3 () +{ + return linux_get_hwcap3 (target_read_auxv (), + current_inferior ()->top_target (), + current_inferior ()->arch ()); +} + /* Display whether the gcore command is using the /proc/PID/coredump_filter file. */ diff --git a/gdb/linux-tdep.h b/gdb/linux-tdep.h index c19839fde2c..01c81d26691 100644 --- a/gdb/linux-tdep.h +++ b/gdb/linux-tdep.h @@ -91,6 +91,17 @@ extern CORE_ADDR linux_get_hwcap2 (const std::optional &auxv, extern CORE_ADDR linux_get_hwcap2 (); +/* Fetch the AT_HWCAP3 entry from auxv data AUXV. Use TARGET and GDBARCH to + parse auxv entries. + + On error, 0 is returned. */ +extern CORE_ADDR linux_get_hwcap3 (const std::optional &auxv, + struct target_ops *target, gdbarch *gdbarch); + +/* Same as the above, but obtain all the inputs from the current inferior. */ + +extern CORE_ADDR linux_get_hwcap3 (); + /* Returns true if ADDR belongs to a shadow stack memory range. If this is the case, assign the shadow stack memory range to RANGE [start_address, end_address). */ diff --git a/gdbserver/linux-low.cc b/gdbserver/linux-low.cc index ade5e9e2a1c..7b29b3ddf7f 100644 --- a/gdbserver/linux-low.cc +++ b/gdbserver/linux-low.cc @@ -7198,6 +7198,16 @@ linux_get_hwcap2 (int pid, int wordsize) return hwcap2; } +/* See linux-low.h. */ + +CORE_ADDR +linux_get_hwcap3 (int pid, int wordsize) +{ + CORE_ADDR hwcap3 = 0; + linux_get_auxv (pid, wordsize, AT_HWCAP3, &hwcap3); + return hwcap3; +} + #ifdef HAVE_LINUX_REGSETS void initialize_regsets_info (struct regsets_info *info) diff --git a/gdbserver/linux-low.h b/gdbserver/linux-low.h index 03e11202955..276d60eafd6 100644 --- a/gdbserver/linux-low.h +++ b/gdbserver/linux-low.h @@ -977,4 +977,8 @@ CORE_ADDR linux_get_hwcap (int pid, int wordsize); CORE_ADDR linux_get_hwcap2 (int pid, int wordsize); +/* Fetch the AT_HWCAP3 entry from the auxv vector, where entries are length + WORDSIZE, of process with pid PID. If no entry was found, return 0. */ +CORE_ADDR linux_get_hwcap3 (int pid, int wordsize); + #endif /* GDBSERVER_LINUX_LOW_H */ -- 2.55.0