为了学习了解 AArch64 架构的处理器,我们可以使用 Qemu 来搭建一个 AArch64 架构的测试环境。这样,就可以在这台虚拟机上编写、运行、测试我们编写的基于 AArch64 架构的程序。
下载 Debian 镜像
首先,下载 Debian 镜像,选择 AArch64 架构的版本。网址:https://cdimage.debian.org/cdimage/release/current/arm64/iso-dvd/ , 这样,我们就在 Qemu 里安装上它。
启动 Qemu
接下来,使用命令行启动 Qemu ,安装操作系统。安装完操作系统之后,就可以启动操作系统了。
qemu-system-aarch64 -m 4096 \
-cpu cortex-a72 \
-smp 4 \
-M virt