riscv-tools

RISC-V Tools (ISA Simulator and Tests)

  • 所有者: riscv-software-src/riscv-tools
  • 平台:
  • 許可證:
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

riscv-tools Build Status

This repository houses a set of RISC-V simulators and other tools,
including the following projects:

  • Spike, the ISA simulator
  • riscv-tests, a battery of
    ISA-level tests
  • riscv-opcodes, the
    enumeration of all RISC-V opcodes executable by the simulator
  • riscv-pk, which contains bbl,
    a boot loader for Linux and similar OS kernels, and pk, a proxy kernel that
    services system calls for a target-machine application by forwarding them to
    the host machine

Several RISC-V tools that were previously maintained through this
repository have since been upstreamed to their parent projects and are
no longer included here. Your favorite software distribution should
already have packages for these upstream tools, but if it doesn't then
here are a handful of my favorites:

  • Your favorite software distribution may already have packages that
    include a RISC-V cross compiler, which is probably the fastest way to
    get started. As of writing this README (March, 2019) I can trivially
    find packages for ALT Linux, Arch Linux, Debian, Fedora, FreeBSD,
    Mageia, OpenMandriva, openSUSE, and Ubuntu.
    pkgs.org appears to be a good place to find an up
    to date list, just search for "riscv".
  • crosstool-ng can build RISC-V
    cross compilers of various flavors.
  • The RISC-V Port of
    OpenEmbedded

    builds a cross compiler, Linux kernel, and enough of userspace to do
    many interesting things.
  • buildroot is a lighter
    weight cross compiled Linux distribution.

This repository uses crosstool-ng to configure a riscv64-unknown-elf
toolchain.

Quickstart

$ git submodule update --init --recursive
$ export RISCV=/path/to/install/riscv/toolchain
$ ./build.sh

Ubuntu packages needed:

$ sudo apt-get install autoconf automake autotools-dev curl libmpc-dev libmpfr-dev libgmp-dev libusb-1.0-0-dev gawk build-essential bison flex texinfo gperf libtool patchutils bc zlib1g-dev device-tree-compiler pkg-config libexpat-dev

Fedora packages needed:

$ sudo dnf install autoconf automake @development-tools curl dtc libmpc-devel mpfr-devel gmp-devel libusb-devel gawk gcc-c++ bison flex texinfo gperf libtool patchutils bc zlib-devel expat-devel

Note: This requires a compiler with C++11 support (e.g. GCC >= 4.8).
To use a compiler different than the default, use:

$ CC=gcc-5 CXX=g++-5 ./build.sh

Note for OS X: We recommend using Homebrew to install the dependencies (libusb dtc gawk gnu-sed gmp mpfr libmpc isl wget automake md5sha1sum) or even to install the tools directly. This repo will build with Apple's command-line developer tools (clang) in addition to gcc.

主要指標

概覽
名稱與所有者riscv-software-src/riscv-tools
主編程語言Shell
編程語言Shell (語言數: 1)
平台
許可證
所有者活动
創建於2013-04-30 03:25:43
推送於2022-12-22 08:32:25
最后一次提交2019-04-02 14:53:29
發布數5
最新版本名稱priv-1.9 (發布於 )
第一版名稱homebrew (發布於 )
用户参与
星數1.2k
關注者數121
派生數450
提交數486
已啟用問題?
問題數229
打開的問題數104
拉請求數101
打開的拉請求數3
關閉的拉請求數28
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?