$ tar xf qemu-7.2.0.tar.gz
$ cd qemu-7.2.0
$ cd build/
$ ../configure --enable-slirp --target-list=loongarch64-linux-user,loongarch64-softmmu --prefix=/opt/qemu-7.2
$ make -j8
$ make install
四、运行
1. 查看支持的cpu 与机器类型
$ export PATH=/opt/qemu-7.2/bin:$PATH
$ qemu-system-loongarch64 --version
QEMU emulator version 7.2.0
Copyright (c) 2003-2022 Fabrice Bellard and the QEMU Project dev