bluewww / aehneln

A RISC-V rv64ima_zicsr_zifencei emulator.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Aehneln

Simple RISC-V rv64ima_zicsr_zifencei emulator.

The goal is run a minimal Linux distribution but we are still not there yet.

Setup

./autogen.sh
./configure --prefix=$OPTIONAL_PREFIX
make

Usage

$ ./aehneln --help
Usage: amaehneln RISCV-ELF

Installing and Running Tests

Make sure you have riscv64-unknown-elf-gcc in your PATH (at least version 10.2.0.

Install them by running

git submodule update --init --recursive
cd tests/riscv-tests
./configure --prefix=$(readlink -f ../riscv/target)
make
make install

Then you can execute them by calling

make run-riscv-tests

in the root folder of the project.

Misc

Generating headers from riscv-opcodes

make EXTENSIONS="rv*_i rv*_m rv*_a rv_zicsr rv_zifencei rv_s rv_system" everything

About

A RISC-V rv64ima_zicsr_zifencei emulator.


Languages

Language:C 89.8%Language:Makefile 9.9%Language:M4 0.2%Language:Shell 0.2%