d-iii-s / msim

Light-weight MIPS R4000 and RISC-V system simulator
https://d3s.mff.cuni.cz/software/msim/
GNU General Public License v2.0
5 stars 4 forks source link
hardware-emulation mips32 risc-v

MSIM -- MIPS R4000 and RISC-V system simulator

MSIM is a light-weight computer simulator based on MIPS R4000 and RISC-V. It is used for education and research purposes, mainly to teach the construction and implementation of operating systems. MSIM is distributed with source code under the GNU GPL license to make possible modifications for users and works on most POSIX-compliance environments (mainly GNU/Linux, Mac OS X, but can be also compiled in Cygwin or MinGW in Windows).

The user interface is simple terminal-style.

MSIM provides following features (along others):

MSIM does not aim to be a speed-optimized real hardware simulator, but rather a fully deterministic simulator useful for kernel debugging. There are several other projects which aim speed-optimized simulation (e.g. GXemul), but they are more complex to use.

Compilation and installation

We provide a simple DEB package as part of every GitHub release. For RPM-based systems we build msim-git and msim packages at our COPR repository (msim is build with each release while msim-git follows the master branch).

Building from sources is possible with standard commands.

./configure && make && make test && sudo make install