From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-sender-0.a4lg.com (mail-sender.a4lg.com [153.120.152.154]) by sourceware.org (Postfix) with ESMTPS id 5E7713858D20; Thu, 31 Aug 2023 03:22:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5E7713858D20 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=irq.a4lg.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=irq.a4lg.com Received: from [127.0.0.1] (localhost [127.0.0.1]) by mail-sender-0.a4lg.com (Postfix) with ESMTPSA id 6E92F300089; Thu, 31 Aug 2023 03:22:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=irq.a4lg.com; s=2017s01; t=1693452129; bh=mD9D+5Bx7G/oYDRHnDn+Eptv51FdFaM+vENHxYuZIUM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Mime-Version:Content-Transfer-Encoding; b=VeSCPFvYFudjMYL3fKOdMZGYa/aqzScoV8QiCwTaP/dmPArrTUZ7XPmSfs58KkwgM y/V/Q/YOmZexl2q+a5yt8QHIY2e64w+rTSqW/PrORjmRvWLJMe5YFTcV4c0D+IYmr4 5xbVa41ajJF+c9RuZujC4DXa6qPNZmdi982h8cBo= From: Tsukasa OI To: Tsukasa OI , Palmer Dabbelt , Andrew Waterman , Jim Wilson , Nelson Chu , Kito Cheng Cc: binutils@sourceware.org, gdb-patches@sourceware.org Subject: [PATCH v2 0/3] RISC-V: Add ratified 'E' base ISA support with draft ABIs Date: Thu, 31 Aug 2023 03:21:53 +0000 Message-ID: In-Reply-To: References: Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,KAM_MANYTO,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hi, PATCH v1 (only Binutils): Changes: v1 -> v2 - Added preliminary GDB support Related Project: PATCH 1/3: Binutils PATCH 2/3: Binutils PATCH 3/3: GDB This patch set reflects ratified 'E' base ISAs (except version number of 'E') 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 (3): RISC-V: Remove RV64E conflict RISC-V: Add "lp64e" ABI support RISC-V: Add RV64E support to GDB bfd/elfxx-riscv.c | 7 ----- gas/config/tc-riscv.c | 4 ++- gas/doc/c-riscv.texi | 5 ++- .../gas/riscv/mabi-fail-rv32e-lp64d.l | 2 +- .../gas/riscv/mabi-fail-rv32e-lp64f.l | 2 +- .../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 -- gdb/arch/riscv.c | 15 +++++++-- gdb/arch/riscv.h | 2 +- gdb/features/Makefile | 1 + gdb/features/riscv/rv64e-xregs.c | 30 ++++++++++++++++++ gdb/features/riscv/rv64e-xregs.xml | 31 +++++++++++++++++++ gdb/riscv-tdep.c | 9 +----- 14 files changed, 85 insertions(+), 30 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 create mode 100644 gdb/features/riscv/rv64e-xregs.c create mode 100644 gdb/features/riscv/rv64e-xregs.xml base-commit: 68a2d9bf874643da970fe945a9c60c397f6882ad -- 2.42.0