url: https://quard-star-tutorial.readthedocs.io/zh-cn/latest/ch2.html
首先把之前下载解压的 qemu-6.0.0 删掉
随后
bash
git clone --branch v6.0.0 --depth 1 https://github.com/qemu/qemu.git qemu-6.0.0
切换到 git repo 的目的是为了方便追踪我们的代码修改
build.sh 内容和之前 ch1 描述的一样:
bash
# build.sh 和 qemu-6.0.0 在同一个目录下
bash build.sh
验证一下,说明顺利编译:
bash
./output/qemu/bin/qemu-system-riscv64 -version
此时尝试:
bash
./output/qemu/bin/qemu-system-riscv64 -M quard-star
会报错 unsupported machine type
TODO: here