From patchwork Fri Jun 22 11:08:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Hayward X-Patchwork-Id: 27992 Received: (qmail 53164 invoked by alias); 22 Jun 2018 11:08:14 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 53147 invoked by uid 89); 22 Jun 2018 11:08:14 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.0 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1292, has_sve_state, SVE_PT_REGS_SVE, HAS_SVE_STATE X-HELO: EUR03-DB5-obe.outbound.protection.outlook.com Received: from mail-eopbgr40055.outbound.protection.outlook.com (HELO EUR03-DB5-obe.outbound.protection.outlook.com) (40.107.4.55) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 22 Jun 2018 11:08:12 +0000 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Alan.Hayward@arm.com; Received: from C02TF0U7HF1T.manchester.arm.com (217.140.96.140) by VI1PR0802MB2141.eurprd08.prod.outlook.com (2603:10a6:800:9b::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.884.21; Fri, 22 Jun 2018 11:08:08 +0000 From: Alan Hayward To: gdb-patches@sourceware.org Cc: nd@arm.com, Alan Hayward Subject: [PUSHED/OBV] Fix up HAS_SVE_STATE macro Date: Fri, 22 Jun 2018 12:08:00 +0100 Message-Id: <20180622110800.487-1-alan.hayward@arm.com> MIME-Version: 1.0 X-ClientProxiedBy: LO2P265CA0042.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:61::30) To VI1PR0802MB2141.eurprd08.prod.outlook.com (2603:10a6:800:9b::10) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3e2ee326-0cfb-4363-bca8-08d5d8306fd6 X-MS-Office365-Filtering-HT: Tenant X-MS-TrafficTypeDiagnostic: VI1PR0802MB2141: NoDisclaimer: True X-Exchange-Antispam-Report-Test: UriScan:(180628864354917); X-MS-Exchange-SenderADCheck: 1 X-Forefront-PRVS: 071156160B Received-SPF: None (protection.outlook.com: arm.com does not designate permitted sender hosts) SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jun 2018 11:08:08.6979 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3e2ee326-0cfb-4363-bca8-08d5d8306fd6 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0802MB2141 X-IsSubscribed: yes Prevents build break on aarch64 Suse. 2018-06-22 Alan Hayward gdb/ * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &. --- gdb/ChangeLog | 4 ++++ gdb/nat/aarch64-sve-linux-ptrace.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1221a54d03..de9127f70f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2018-06-22 Alan Hayward + + * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &. + 2018-06-21 Pedro Alves * ada-lang.h (ada_get_task_number): Take a thread_info pointer diff --git a/gdb/nat/aarch64-sve-linux-ptrace.h b/gdb/nat/aarch64-sve-linux-ptrace.h index 5a7186b7aa..029e753ffe 100644 --- a/gdb/nat/aarch64-sve-linux-ptrace.h +++ b/gdb/nat/aarch64-sve-linux-ptrace.h @@ -32,7 +32,7 @@ /* Indicates whether a SVE ptrace header is followed by SVE registers or a fpsimd structure. */ -#define HAS_SVE_STATE(header) ((header).flags && SVE_PT_REGS_SVE) +#define HAS_SVE_STATE(header) ((header).flags & SVE_PT_REGS_SVE) /* Read VQ for the given tid using ptrace. If SVE is not supported then zero is returned (on a system that supports SVE, then VQ cannot be zero). */