From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by sourceware.org (Postfix) with ESMTPS id 5BB543858C60 for ; Tue, 21 Dec 2021 02:34:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 5BB543858C60 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=rivosinc.com Received: by mail-pl1-x634.google.com with SMTP id w24so9530139ply.12 for ; Mon, 20 Dec 2021 18:34:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=8aiqQS3zYiXdJjbuVah6x/a6BHCr+T6pRSPE7NcwVos=; b=LxwayOGuuiVL0tX8BokwmYm9MelJiU0UvgtrFntrsTmJkYJ0c07uOJNWEZ+YteW8LZ ilMcXeZt62UF712YKjmlUQ+CvuOElM2DOpGe22bbIDNwC//ebs6k7knsBJfSzUEkom05 95JRghvdVu2SVkAB4VSXXyHGsU5fJpjO++Nh2uNX5SxbS6wGnM+rLCQ9Sg0e01qsgXbn wc2HroWCeWqFTqZeTsUgpk0RP5j5N69F/63X+y0vFm/nQaXH4wx/K8fr0KTlwPBXc6AX qohK866crlRR45BfSZ8ofvz+WNGn8Qli9qQA6gXmrqn2abf7i22ie2TOr797m++6Aq5k ucPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=8aiqQS3zYiXdJjbuVah6x/a6BHCr+T6pRSPE7NcwVos=; b=MYwbc//Gl9azL6FSMwDPC1fjH2Sk/yIkQReDNmOpRYkkVo0Q6f38zt5zlhj77kFceo IYKf9vLV6wwoMjQIwf750GDJN0PQXW2lpzdEF8gn8HkfpDJCRFT+igiJGZyFNTrJ6V0/ mhrETfhY+lzu3b5QdneklHG9OGKiIpTa/tAw/7VN+1BjrjjbIRsFtCszTt2JDSGN9+3d d05f2l8i9J2f7W0EjUHku/aMOiZausS980bnoels5+JLI/aNpGEk2oXPgt8H9wMzCz33 UYK9fj/nVHAEzAK7hEQyKFwPOQX82wmhM6jAvLA9IGAS8dgsdhH8I9tnMtllMfP9L2ku MgMQ== X-Gm-Message-State: AOAM53248YGxhC11wRJLODYH6ntGQYgBPWHdNagM42gfvBpvC6teyPdr /E2Yn8BuUTBQDB5+g9ToSaAlFmmihXvohMNm X-Google-Smtp-Source: ABdhPJwcUjPXFIi9uHjwxk9FtJTJIrRK+Bl6kUAS79WCd2SjB1hnxfu3BJnnzTEETLGMdQO6M6nc2Q== X-Received: by 2002:a17:90b:1986:: with SMTP id mv6mr1278051pjb.37.1640054058336; Mon, 20 Dec 2021 18:34:18 -0800 (PST) Received: from vineetg-ThinkPad-X1-Carbon-Gen-9.ba.rivosinc.com (c-24-4-73-83.hsd1.ca.comcast.net. [24.4.73.83]) by smtp.gmail.com with ESMTPSA id d11sm12487020pfv.17.2021.12.20.18.34.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Dec 2021 18:34:18 -0800 (PST) From: Vineet Gupta To: Binutils , Nelson Chu Cc: Kito Cheng , jim.wilson.gcc@gmail.com, palmer@dabbelt.com, Vineet Gupta Subject: [v1 0/4]riscv/binutils support Hypervisor Extension Date: Mon, 20 Dec 2021 18:34:11 -0800 Message-Id: <20211221023415.2211328-1-vineetg@rivosinc.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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-List-Received-Date: Tue, 21 Dec 2021 02:34:20 -0000 Hi, This patchset adds support for Hypervisor Extension ratified recently [1]. Changes since RFC [2]: - Drop support for single-letter arch string "h". 'H' extension is currently supported unconditionally so keep status quo. - H-ext support in Priv spec 1.9.1 dropped, broken out as seperate patch. Please review/comment ! Thx, -Vineet [1] https://wiki.riscv.org/display/TECH/Recently+Ratified+Extensions [2] https://sourceware.org/pipermail/binutils/2021-December/118914.html Vineet Gupta (4): RISC-V: Hypervisor ext: drop Privileged Spec 1.9.1 implementation/tests RISC-V: Hypervisor ext: support Privileged Spec 1.12 RISC-V: Hypervisor Ext: Add tests RISC-V: fix a comment for adding CSR entry and annotate switch-break bfd/cpu-riscv.c | 1 + bfd/cpu-riscv.h | 1 + bfd/elfxx-riscv.c | 6 + gas/config/tc-riscv.c | 10 +- gas/testsuite/gas/riscv/csr-dw-regnums.d | 10 -- gas/testsuite/gas/riscv/csr-dw-regnums.s | 10 -- gas/testsuite/gas/riscv/h-ext-32.d | 74 ++++++++++++ gas/testsuite/gas/riscv/h-ext-32.s | 64 ++++++++++ gas/testsuite/gas/riscv/h-ext-64.d | 73 ++++++++++++ gas/testsuite/gas/riscv/h-ext-64.s | 63 ++++++++++ .../gas/riscv/priv-reg-fail-read-only-01.s | 10 -- .../gas/riscv/priv-reg-fail-version-1p10.l | 10 -- .../gas/riscv/priv-reg-fail-version-1p11.l | 10 -- .../gas/riscv/priv-reg-version-1p10.d | 10 -- .../gas/riscv/priv-reg-version-1p11.d | 10 -- .../gas/riscv/priv-reg-version-1p9p1.d | 10 -- gas/testsuite/gas/riscv/priv-reg.s | 10 -- gas/testsuite/gas/riscv/svinval-and-h.d | 15 +++ gas/testsuite/gas/riscv/svinval-and-h.s | 5 + include/opcode/riscv-opc.h | 110 ++++++++++++++---- include/opcode/riscv.h | 2 + opcodes/riscv-opc.c | 26 ++++- 22 files changed, 423 insertions(+), 117 deletions(-) create mode 100644 gas/testsuite/gas/riscv/h-ext-32.d create mode 100644 gas/testsuite/gas/riscv/h-ext-32.s create mode 100644 gas/testsuite/gas/riscv/h-ext-64.d create mode 100644 gas/testsuite/gas/riscv/h-ext-64.s create mode 100644 gas/testsuite/gas/riscv/svinval-and-h.d create mode 100644 gas/testsuite/gas/riscv/svinval-and-h.s -- 2.30.2