From patchwork Tue Jul 25 02:26:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tsukasa OI X-Patchwork-Id: 12545 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp2185011vqg; Mon, 24 Jul 2023 19:27:01 -0700 (PDT) X-Google-Smtp-Source: APBJJlH6co/lNfekcrxis0ihly4UILs0tFvAxGqsDpr8BLEGsm8DRZlCQpJtBqp7Faj3U2dC19ug X-Received: by 2002:aa7:c90f:0:b0:522:4286:9b01 with SMTP id b15-20020aa7c90f000000b0052242869b01mr998679edt.25.1690252020823; Mon, 24 Jul 2023 19:27:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690252020; cv=none; d=google.com; s=arc-20160816; b=bDyXGr+KkXZ13UTZq0qC5OEDjYoPXEFt8K8U5R+ezrofz7oshV3r0hli2GXKfKZqCf cbKmisuIrHUNWWOzVrrLDtv42Ue6APRUrG9WltTf1Xvmph5Dxk6L1mbY6arIBMg56Nwi XVpz55BfeKvv7VCUY7bcdCkWlmQR7rvhg8GMe7tLASuQfPGux61sjIczJfilI7HZEFe3 tdEB/E3d6Q9ZpMLKxpSXR8PiRYhX01uEN9nLLl8KlU77LJA4nOGPvxW4uLEpBZ/tJQZN POvnOtEbEPyFgDJLQT3vKO8btqCHSR19RGr4S7jtbiFIm4r3gDXf4y6gy1ct9o4tCHav w7wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=37yjlGrONoNVly9eOkMIQt50k0LnjEzR7XA3Bx2fqh0=; fh=53cJj9TBSYR/wgWr2Q2wXVHUGiHHr7QV00QtBv5db8E=; b=KrXOc7HwC4X7FqfyrlvGdBNTzmqapQ76+akumdn3Vs0O1/WhO6Ww1k3a9qBJ+eO22G fOoytf+zEI7TZAykOUfcULLDKKWliZNOD2SjNjisWIAOywSccy3OTlw7gtmgnac1qAb2 y0Ah+UozAax8I40l5ftAOJx/Atg30zFdUkmM47fR/u+kR6u4ykGtA0K7jatwYEMC+/AJ z6t3lrjrZCTN24znCwBKu7DDJat9s0W8suBujyORQ64G9hzBv9tngvbgXE2PtE0k8cQx c8xh/qpkJta3QVls34vZAGM7tpHSNDqd2oAES+kHnql2WExlAGBehvInqRRauqsKnqco qAgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=pH9dLjnA; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from server2.sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id c2-20020a056402120200b00521d18821aasi609119edw.109.2023.07.24.19.27.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jul 2023 19:27:00 -0700 (PDT) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=pH9dLjnA; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B1A0C3858C2C for ; Tue, 25 Jul 2023 02:26:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B1A0C3858C2C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1690252019; bh=37yjlGrONoNVly9eOkMIQt50k0LnjEzR7XA3Bx2fqh0=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=pH9dLjnAjw3EiGnRpI34PA6KoQQsxcdgnwufqHG82NnTYWfxO8M50CqSP5SwiZWco e5P7/SaitNYn4Lw/esKp4tESQeFgtveS8LjqLkEJBBkZyp7vdocZ1bfyAifGPGYKvl 8H/tjQVoOYlLxtInV36U0oEZ16HzOjXWmjgIuYFs= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mail-sender-0.a4lg.com (mail-sender.a4lg.com [153.120.152.154]) by sourceware.org (Postfix) with ESMTPS id 4E9A83858C5F for ; Tue, 25 Jul 2023 02:26:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4E9A83858C5F Received: from [127.0.0.1] (localhost [127.0.0.1]) by mail-sender-0.a4lg.com (Postfix) with ESMTPSA id 878DE300089; Tue, 25 Jul 2023 02:26:48 +0000 (UTC) To: Tsukasa OI , Nelson Chu , Kito Cheng , Palmer Dabbelt Cc: binutils@sourceware.org Subject: [PATCH 0/2] RISC-V: Add ratified 'E' base ISA support with draft ABIs Date: Tue, 25 Jul 2023 02:26:43 +0000 Message-ID: Mime-Version: 1.0 X-Spam-Status: No, score=-6.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Tsukasa OI via Binutils From: Tsukasa OI Reply-To: Tsukasa OI Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org Sender: "Binutils" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772357703317342749 X-GMAIL-MSGID: 1772357703317342749 Hi, This patch set reflects the most of ratified 'E' base ISAs and draft/pre-draft RVE ABIs, ILP32E and LP64E. RV32E / RV64E (ratified): The latest RISC-V ISA Manual ILP32E (draft): RISCV ABIs Specification version 1.0 LP64E (pre-draft): Submission to add RVE API corresponding RV64E Adding pre-draft LP64E would be a problem on GCC but I bet not on Binutils (ELF flags [to handle on Binutils/GAS] are not very detailed). Note that this patch set does not reflect the version number of the 'E' base ISA (ratified version 2.0) because the latest ratified specification, "20191213", comes with the draft version 1.9 and adding the version 2.0 with ISA_SPEC_CLASS_DRAFT does not work (due to the default value of `DEFAULT_RISCV_ISA_SPEC'; note that it cannot be set to "draft"). I think the next unprivileged ISA specification release is the best timing to add 'E' version 2.0 (along with new ISA_SPEC_CLASS_20??????). Thanks, Tsukasa Tsukasa OI (2): RISC-V: Remove RV64E conflict RISC-V: Add "lp64e" ABI support bfd/elfxx-riscv.c | 7 ------- gas/config/tc-riscv.c | 4 +++- gas/doc/c-riscv.texi | 5 ++--- gas/testsuite/gas/riscv/mabi-fail-rv32e-lp64d.l | 2 +- gas/testsuite/gas/riscv/mabi-fail-rv32e-lp64f.l | 2 +- gas/testsuite/gas/riscv/mabi-fail-rv32e-lp64q.l | 2 +- gas/testsuite/gas/riscv/march-fail-base-02.d | 3 --- gas/testsuite/gas/riscv/march-fail-base-02.l | 2 -- 8 files changed, 8 insertions(+), 19 deletions(-) delete mode 100644 gas/testsuite/gas/riscv/march-fail-base-02.d delete mode 100644 gas/testsuite/gas/riscv/march-fail-base-02.l base-commit: 3dfee72010248aca5932a27b4c34d3b79ab9f057