From patchwork Fri Oct 4 07:11:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?RXRoYW4gWXUtQ2hlbmcgTGlhbmco5qKB5rev56iLKQ==?= X-Patchwork-Id: 98355 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C72A63846053 for ; Fri, 4 Oct 2024 07:12:32 +0000 (GMT) X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2114.outbound.protection.outlook.com [40.107.255.114]) by sourceware.org (Postfix) with ESMTPS id C24A7385DDDA for ; Fri, 4 Oct 2024 07:12:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C24A7385DDDA Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=andestech.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=andestech.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C24A7385DDDA Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.255.114 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1728025928; cv=pass; b=xA/a4HI3YT2/GECpW1PqO6XYXPiWnpA9zcsDK3YBz7NypQsUj0tVfXa/pTgYvOi5Ew03Xc8wiYMZL6i5i3YJD5oOZidGEhWgb/ubzkMIletsl90cZFligpDkTIFcj0GQ5oKydZu95TVt8nZzqw1mdOI3bFrObBWwFTUO9PEQ95w= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1728025928; c=relaxed/simple; bh=Q0v7zx7GuEOuNUOlWRqqe9ug6r2E0IN7TBQBnjl+EBE=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=EyOOEbdaZAwaVAOeVsUTV4iGbUeOZWRGfKh7vltKT3wiJ49AlHE8YZnrlOyxV/77n+J/GAD4FQQw7kIamTZLIF1eVbpUSQ2gltdxS1LoQQS+gFyxm+hMnQ8ny0XiISB7gtAEvXzY9W5iw5IbaODTuZ4j7o+QKKXBj12HAAZ1QPY= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=tZGrTCy1LRxG2vP+obUDH2v9o3SgHvlapxk+o8CEUQpIgTZJ2xSctcb/nV3WbtxSYTnWb38Yd6U6+1H8/9nGEgsHtR/zhSNt60qvXMPu8trhHTej5V+TidjlBKX4JBzPBjtzKKvLxiAVMogKxKDPLjvNoLQhqJ6v00pi8F0xx6YMUOADymLCrS1PxR7SMJuS2Q8o7ei/rIN6Yi2o/5UfNLhSIcqRq5lUT8pVELHuolLH5hgpYTMK4aapNHNbM4QzHWoZHa+irn8OxeXjFWKHpbx2S9EUuSlxaDxP5y92R2TJJBBNdBBGj2otHqvwcz5YftY+cd0dqSzcgrV1x3BOHA== 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=Q0v7zx7GuEOuNUOlWRqqe9ug6r2E0IN7TBQBnjl+EBE=; b=Ffy+is4YOdfnElwWrj2iIpsFkqtAj5bODoGWJfGY4gHZP29Nf/uGOJivUwEoZQ254p9Nm94wdZxLbntGv5SIuobOyR3bXekJY62hZmq+L5etmx8Tqm868NRh29frZ5TEJItQtcfhZ8d36lW9NEewHcXfVUOgSExyfI1BsEPvwMOJRGS8+XEia1Y40TZrQx8LdXawzx/++P+Ti2TesvV5mNcEmJ/XEuRD5YFUEQm35CSopk9DxspRn0vMTavL8H+Vg+bhFOXLzI85tF8Lx2Fg/lJml4gBvXf9sCUZQhY11KLOnsj8siEa9Q0cMMyk3ZysSkb0I8kHDpYqryS5mAMozg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=andestech.com; dmarc=pass action=none header.from=andestech.com; dkim=pass header.d=andestech.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=andestech.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Q0v7zx7GuEOuNUOlWRqqe9ug6r2E0IN7TBQBnjl+EBE=; b=BoD5SM5afkG/O1EnP0fIa8w8JDuDzkJWNN1KDuypzIvxXF3RyZVu+e+Y68GYs3Q5NAoQP1Zoh8PfDiQxmrF9bSo29kqiDtH2g4fTmtnyhXAJ0ZWZsfeutuv1mwxSufLtP2YxY7SGlP4GfE34pmEBWOZxq41DkToxrwZRKjRYZPhulibSmW+Oc7KNq4PE2n5z+LzaDoFK4vc7MDeQh+eF4+bM47QSx5P8XmFOE2JpzXcN7sqsfEB7Ryvbpotvto860tZ1nYYWQgUV9p0f2xnlk+wBpFSmhBBn7ZXLa5Ar1hrJCU1upTbeXvCgt1di/TVX3gX4OYvuBn8WrXA1CxboSg== Received: from TYZPR03MB7059.apcprd03.prod.outlook.com (2603:1096:400:334::11) by KL1PR03MB8404.apcprd03.prod.outlook.com (2603:1096:820:12d::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8026.18; Fri, 4 Oct 2024 07:11:59 +0000 Received: from TYZPR03MB7059.apcprd03.prod.outlook.com ([fe80::d744:48aa:2648:5a85]) by TYZPR03MB7059.apcprd03.prod.outlook.com ([fe80::d744:48aa:2648:5a85%7]) with mapi id 15.20.8026.016; Fri, 4 Oct 2024 07:11:58 +0000 From: =?big5_tw?b?RXRoYW4gWXUtQ2hlbmcgTGlhbmcosefSUrV7KQ==?= To: "binutils@sourceware.org" Subject: [PATCH] RISC-V: Check the Zca extension when disabling the C extension using .option norvc. Thread-Topic: [PATCH] RISC-V: Check the Zca extension when disabling the C extension using .option norvc. Thread-Index: AQHbFiwQvAeQ2ONaf0mdi2CajVFIQA== Date: Fri, 4 Oct 2024 07:11:58 +0000 Message-ID: Accept-Language: zh-TW, en-US Content-Language: zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=andestech.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: TYZPR03MB7059:EE_|KL1PR03MB8404:EE_ x-ms-office365-filtering-correlation-id: f2edf7c6-573e-4bc3-9e59-08dce443d61b x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|1800799024|366016|376014|38070700018; x-microsoft-antispam-message-info: =?big5_tw?b?VStmcXJOdFFSTEg4Nkw0aHgxZHlKeERP?= =?big5_tw?b?cDVlMXRLWVJkUTB0T2FZeDFOcjJBRHBpMGwzK2RraVU5d0dzeWF1elVqR0VFM2kw?= =?big5_tw?b?aHlsOCs1bDkxbUtPWEtqNlNoV2FEdlRGNmp6eitHVUczSnY2b0s4eDkrRVhiRDlr?= =?big5_tw?b?NUVQZk9kdG5iYksycUNKQitubVVJb01ZclowNnpXRE1wazRIalRPY2NKSjM3Y3Av?= =?big5_tw?b?VUxIa2xxelNWemV6SzVDOHBXYjFGNDVZTlV5b0IwR3h2UEo1TUpXbFIzb1A4UGhi?= =?big5_tw?b?QVhQVzFJOHYwdDJRMFBrVElEMjc5YkFJaEdYajZ3Q0tCVGt6SHZqcHY2cld3VE9J?= =?big5_tw?b?WlNDOEFtZ3pobzNBbmJmMmFVOVh4WFl3T3NWa0RQRDZHL1hzSW82MW9VRzZHMHBN?= =?big5_tw?b?OUMrZWJ5a0o4VGNkcmMvaDJyMTI4Skt4ZGd4WVJyTzJuVTZ6NG1XZWdYZkRkNG1i?= =?big5_tw?b?L1FBTWhQeGhtNWlvTmVxaDhGQ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I5QkhKSWRxMUVNaWttVk45RFVmdkM2WWMrV1ZOY25DSlZCbVFlcTZoeitYQ3NK?= =?big5_tw?b?b3ZTNStGaE1lL0lXMExBTXMyUXBGRWd2NVFOUk1pMGlMVS9DdTNhOXBTUmxGSHV3?= =?big5_tw?b?TDBVUG1KNzBtRjBYNEJQMlVFWTN1alRMSDRMc1UvR0hPcHJiakwwVnZYUXFMU3p5?= =?big5_tw?b?RWRqQjFESmlUeWVkaEdPUWRkbE5HR1gxeWkySW9EVFZZQmEvc3NXTXFOZEZQMUlS?= =?big5_tw?b?c0hKaEVVc2EyVldYN2NlbUVlSjJHcHU5aDlsa3Uyb3QvYWY4Sno4WlRWTWZ2bWV0?= =?big5_tw?b?Q01ac0sxdThUbVpCelNtVXVuK2lxLytDcFVMNlRLWTNWV1owazVaUlo3WGd2LzFF?= =?big5_tw?b?MmtjdHZSVnV2akloRlRHNDJwQnZJK2ljNmNWUHpzRjhrUTBJbGdwRkd6L3hqZz09?= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:zh-tw; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:TYZPR03MB7059.apcprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(1800799024)(366016)(376014)(38070700018); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?big5_tw?b?MFM1c2pkc0N4cnBqRXNsQnR1ODIy?= =?big5_tw?b?bVcreU9CdlpJdVJQbmtCV3VBelJRMXdKRCtSa21RWEFudHlVZ29KTWhBY05hYjhI?= =?big5_tw?b?azgrSUJreVM4TzVUVzJvek83SWVocXQ3NTJlRjEzME1RUmxBQUt5UE5jcG85NXB2?= =?big5_tw?b?UVJ1cXJReTdrUkp3MVBNTWp6NjFsdkNObVpJcEdXV0x4R0dDbkJYcTl2OERkRVNB?= =?big5_tw?b?eFJpTVdRZGZHOXhKZHFWMmFESmpsZk1kL29DMGs3VDBsaXhwaTJrWFp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E1OcExvNWRBVThON3R4am9XSlVrWnlKYjZN?= =?big5_tw?b?Q095TGl5VUZWcXJMcHF3UWFpUzZsMD0=?= MIME-Version: 1.0 X-OriginatorOrg: andestech.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7059.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: f2edf7c6-573e-4bc3-9e59-08dce443d61b X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Oct 2024 07:11:58.5781 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: e3ec21b7-ec6c-4041-9add-61aea8171458 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: qkjyve3CF9SUQpCBnHur78bf+TzNrDvgXepNGuawkTCgBs+9FaTpCK+GWPUyOsLlhrIy6oCEoTQGZKMEdBy53w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR03MB8404 X-Spam-Status: No, score=-8.0 required=5.0 tests=BAYES_00, CHARSET_FARAWAY_HEADER, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: binutils-bounces~patchwork=sourceware.org@sourceware.org .option norvc disables only the C extension, not all 16-bit instructions. Signed-off-by: Ethan Yu-Cheng Liang --- gas/config/tc-riscv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.45.2 CONFIDENTIALITY NOTICE: This e-mail (and its attachments) may contain confidential and legally privileged information or information protected from disclosure. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein is strictly prohibited. In this case, please immediately notify the sender by return e-mail, delete the message (and any accompanying documents) and destroy all printed hard copies. Thank you for your cooperation. Copyright ANDES TECHNOLOGY CORPORATION - All Rights Reserved. diff --git a/gas/config/tc-riscv.c b/gas/config/tc-riscv.c index ef455e449b9..4ef7b8e689e 100644 --- a/gas/config/tc-riscv.c +++ b/gas/config/tc-riscv.c @@ -4917,7 +4917,7 @@ s_riscv_option (int x ATTRIBUTE_UNUSED) { riscv_update_subset (&riscv_rps_as, "-c"); riscv_set_arch_str (&riscv_rps_as.subset_list->arch_str); - riscv_set_rvc (false); + riscv_set_rvc (riscv_subset_supports (&riscv_rps_as, "zca")); } else if (strcmp (name, "pic") == 0) riscv_opts.pic = true;