Giter Site home page Giter Site logo

emu6's Introduction

emu6

Very simple RISC-V emulator. Reads ELF file and execute in emulator.

Usage

Basic usage with an interactive debug console:

emu6 <ELF File> -d

Currently the CPU configuration is generated from ELF files.

Use emu6 --help for further usage instructions.

Features

The target of this project is to support emulating heterogeneous CPUs and several common SoC peripherals in all mainstream host operating systems. For example on heterogeneous SoC, it's expected to support debugging one Cortex-M and one RISC-V core sharing same memory region running at the same time.

Software features:

  • Load one ELF file
  • Interactive debug shell
  • A friendly plugin system
  • DTB support
  • Support multiple ELF files
  • RISC-V ISA support
  • Thumb-2 ISA support
  • GDB server
  • Cache model

RISC-V instruction set and features:

  • RV32I
  • RV64I
  • RV128I
  • Extension M
  • Extension A
  • Extension F
  • Extension D
  • Extension C
  • Extension V
  • Zicsr
  • Zifencei
  • User mode
  • Supervisor mode
  • Sv32
  • Sv39
  • Sv48
  • PLIC
  • CLINT

Build

This project is written in Rust. You need to [have Rust toolchain installed] before all the processes.

have Rust toolchain installed

Run from soruce

git clone https://github.com/luojia65/emu6
cd emu6
cargo run

Contribution Q&A

Write into plugins or into project itself

If the target feature is defined in the ISA's official manual, write into project itself. If it's vendor defined, write as plugins.

emu6's People

Contributors

luojia65 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.