JCPU is a processor simlulator framework. It is based on LLVM and JIT the native code. It aimes performance and portability.
Basic instructions of openrisc and RISCV-V are implemented now. JCPU is licensed under GPL2 so far. It shows more than 150M insns / sec.
TODO:
-
64bit subset of RISC-V
-
Suvervisor instructions of RISC-V
-
MMU
-
Bigger test program
-
More documentation
-
Can run on LLVM-3.6 and newer
==== Memo
Building toolchain Openrisc https://pixman.miraheze.org/wiki/OpenRISC_Support#..._for_Gentoo_Linux
RISC-V https://riscv.org/software-tools/risc-v-gnu-compiler-toolchain/