インストール方法
必要なツールをインストール Mac macの場合、インストールが完了するまでに数時間かかる可能性がある。
brew tap riscv-software-src/riscv
brew install qemu riscv-tools
Ubuntu(WSLを含む) Ubuntuの場合は恐らくすぐにインストールできる。
sudo apt-get install \
git \
build-essential \
gdb-multiarch \
qemu-system-misc \
gcc-riscv64-linux-gnu \
binutils-riscv64-linux-gnu
ビルド
git clone https://github.com/mit-pdos/xv6-riscv.git
cd xv6-riscv
make -j
make -j qemu # 起動
- 起動後、Ctrl-A Xで抜けられる
Trap and system calls
参考資料