A complete RISC-V RV32/64GC emulator implementation in C.
mkdir build
cd build
cmake .. -XLEN=64 -DCMAKE_BUILD_TYPE=Release
makemake./riscvThe emulator will execute test instructions from instruction.bin or run built-in tests.
src/core/cpu.c- CPU execution enginesrc/core/decode.c- Instruction decodingsrc/core/memory.c- Memory subsystemsrc/main.c- Main program and test harness
MIT License - see LICENSE file for details.