Skip to content

xbjfk/riscv-emulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RISC V emulator

This is a RISC V emulator supporting RV32I.

Info

Currently, only raw binaries are supported (no ELF files). You can use objcopy to create a raw binary: llvm-objcopy -S -O binary X.elf X.bin. Code is loaded to 0x1000 and UART is located at 0x200.

Compilation

  • Generate opcode header file: cd riscv-opcodes && ./parse.py rv64_i rv_i
  • Compile: cc main.c

TODO

  • Branch instruction / Jump
  • Exceptions
  • RV64I
  • S extensions
  • SBI / Device tree.

About

A simple RISC V emulator written in C.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages