From patchwork Mon Jul 24 06:47:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juliana Sims X-Patchwork-Id: 52153 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 3F3ED27BBE2; Mon, 24 Jul 2023 07:49:23 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 83A3627BBE9 for ; Mon, 24 Jul 2023 07:49:19 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qNpNR-0000rD-JK; Mon, 24 Jul 2023 02:49:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qNpNO-0000qo-AP for guix-patches@gnu.org; Mon, 24 Jul 2023 02:49:02 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qNpNO-00079e-0r for guix-patches@gnu.org; Mon, 24 Jul 2023 02:49:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qNpNN-0005wQ-SQ for guix-patches@gnu.org; Mon, 24 Jul 2023 02:49:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64820] [PATCH] gnu: rvvm: Add rvvm. Resent-From: Juliana Sims Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 24 Jul 2023 06:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 64820 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 64820@debbugs.gnu.org Cc: Juliana Sims X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.169018128322606 (code B ref -1); Mon, 24 Jul 2023 06:49:01 +0000 Received: (at submit) by debbugs.gnu.org; 24 Jul 2023 06:48:03 +0000 Received: from localhost ([127.0.0.1]:41570 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qNpMQ-0005sL-2J for submit@debbugs.gnu.org; Mon, 24 Jul 2023 02:48:02 -0400 Received: from lists.gnu.org ([2001:470:142::17]:33088) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qNpMM-0005rH-JN for submit@debbugs.gnu.org; Mon, 24 Jul 2023 02:48:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qNpMG-0000lA-8x for guix-patches@gnu.org; Mon, 24 Jul 2023 02:47:53 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qNpMC-00071t-Nm for guix-patches@gnu.org; Mon, 24 Jul 2023 02:47:51 -0400 Received: by mail.gandi.net (Postfix) with ESMTPSA id 1CBEFE0006; Mon, 24 Jul 2023 06:47:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=incana.org; s=gm1; t=1690181260; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=eXzuE4jMrC6qE9xaqsXcKezyXB4F0gT1EKJpPi+IVMg=; b=cBCBRVeQnARM43tmj+qkKRhQw/5RxNKBA/q9nz0wLYcjjRKErc08VTp2dJt26oWs3IpUeg hXJlrdahoQa4Sn4K+lDpRlgGY5iRjesgHhcaIG9T4w3fPo4ceZkb1J3ERR6KPpCuK/1xre WucLZW/KOmSau9YqkfciCV8Gy5Jdd/BVuBu0N+BmnhAcaUmCDCMmlUdgrSX2aCi7PLzbNz T8AZIzhi9/PRn8U+C5+rjlrwzOm27JxQHYOdhNz2IBlkZmgT7DvKAriyCS6rymL0f7zU+4 nCweCK/cJRe9CQN6pFzJguuv++hm7rXJjSRafj0h7vtKA3nWpMQU972E74dqqA== From: Juliana Sims Date: Mon, 24 Jul 2023 02:47:06 -0400 Message-ID: <5d52e9ee0beb37dba6726441d5180e371448c1b7.1690181226.git.juli@incana.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-GND-Sasl: juli@incana.org Received-SPF: pass client-ip=217.70.183.196; envelope-from=juli@incana.org; helo=relay4-d.mail.gandi.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches Hello, This patch adds the RISC-V Virtual Machine which seems like a handy little tool and claims to be faster than qemu. Neat! Thanks, Juliana * gnu/packages/virtualization.scm (rvvm): New symbol. --- gnu/packages/virtualization.scm | 53 ++++++++++++++++++++++++++------- 1 file changed, 43 insertions(+), 10 deletions(-) base-commit: a0c387cb7942742851397687c584b1cacefe5122 diff --git a/gnu/packages/virtualization.scm b/gnu/packages/virtualization.scm index 3f6c32f390..705d1ac183 100644 --- a/gnu/packages/virtualization.scm +++ b/gnu/packages/virtualization.scm @@ -1127,6 +1127,39 @@ (define-public ganeti-instance-debootstrap Debian or a derivative using @command{debootstrap}.") (license license:gpl2+))) +(define-public rvvm + (package + (name "rvvm") + (version "0.5") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/LekKit/RVVM") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1ldabcrmpa044bahpqa6ymwbhhwy69slh77f0m3421sq6j50l06p")))) + (build-system cmake-build-system) + (arguments + (list #:phases #~(modify-phases %standard-phases + (replace 'install + (lambda _ + (let ((bindir (string-append #$output "/bin/"))) + (mkdir-p bindir) + (copy-file "rvvm" + (string-append bindir "rvvm")))))) + #:tests? #f)) ;no tests + (home-page "https://github.com/LekKit/RVVM") + (synopsis "RISC-V virtual machine") + (description + "RVVM is a RISC-V CPU and system software implementation written in C. It +supports the entire RV64GC ISA, and it passes compliance tests for both RV64 and +RV32. OpenSBI, U-Boot, and custom firmwares boot and execute properly. It is +capable of running Linux, FreeBSD, OpenBSD, Haiku, and other OSes. Furthermore, +it emulates a variety of hardware and peripherals.") + (license (list license:gpl3+ license:mpl2.0)))) + (define-public spike (package (name "spike") @@ -1134,22 +1167,22 @@ (define-public spike (source (origin (method git-fetch) (uri (git-reference - (url "https://github.com/riscv-software-src/riscv-isa-sim") - (commit (string-append "v" version)))) + (url "https://github.com/riscv-software-src/riscv-isa-sim") + (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "0cik2m0byfp9ppq0hpg3xyrlp5ag1i4dww7a7872mlm36xxqagg0")))) (build-system gnu-build-system) (arguments (list - #:phases - #~(modify-phases %standard-phases - (add-before 'configure 'configure-dtc-path - (lambda* (#:key inputs #:allow-other-keys) - ;; Reference dtc by its absolute store path. - (substitute* "riscv/dts.cc" - (("DTC") - (string-append "\"" (search-input-file inputs "/bin/dtc") "\"")))))))) + #:phases + #~(modify-phases %standard-phases + (add-before 'configure 'configure-dtc-path + (lambda* (#:key inputs #:allow-other-keys) + ;; Reference dtc by its absolute store path. + (substitute* "riscv/dts.cc" + (("DTC") + (string-append "\"" (search-input-file inputs "/bin/dtc") "\"")))))))) (inputs (list bash-minimal dtc)) (native-inputs