aboutsummaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorXiaojuan Yang <yangxiaojuan@loongson.cn>2022-08-12 17:19:57 +0800
committerRichard Henderson <richard.henderson@linaro.org>2022-08-13 04:45:03 -0700
commit1f90ce64fc6043470209f825c7763950ec2067a1 (patch)
tree58590cda76c2ba039a378c85866aa59b736009a6 /target
parent93f3dd604825824a7239aaf704baf74730aa3007 (diff)
downloadqemu-1f90ce64fc6043470209f825c7763950ec2067a1.zip
qemu-1f90ce64fc6043470209f825c7763950ec2067a1.tar.gz
qemu-1f90ce64fc6043470209f825c7763950ec2067a1.tar.bz2
docs/system/loongarch: Update the LoongArch document
1. Add some information about how to boot the LoongArch virt machine by uefi bios and linux kernel and how to access the source code or binary file. 2. Move the explanation of LoongArch system emulation in the target/loongarch/README to docs/system/loongarch/loongson3.rst Signed-off-by: Xiaojuan Yang <yangxiaojuan@loongson.cn> Reviewed-by: Song Gao <gaosong@loongson.cn> Message-Id: <20220812091957.3338126-1-yangxiaojuan@loongson.cn> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target')
-rw-r--r--target/loongarch/README49
1 files changed, 1 insertions, 48 deletions
diff --git a/target/loongarch/README b/target/loongarch/README
index 1823375..0b9dc0d 100644
--- a/target/loongarch/README
+++ b/target/loongarch/README
@@ -11,54 +11,7 @@
- System emulation
- Mainly emulate a virt 3A5000 board and ls7a bridge that is not exactly the same as the host.
- 3A5000 support multiple interrupt cascading while here we just emulate the extioi interrupt
- cascading. LS7A1000 host bridge support multiple devices, such as sata, gmac, uart, rtc
- and so on. But we just realize the rtc. Others use the qemu common devices. It does not affect
- the general use. We also introduced the emulation of devices at docs/system/loongarch/virt.rst.
-
- This version only supports running binary files in ELF format, and does not depend on BIOS and kernel file.
- You can compile the test program with 'make & make check-tcg' and run the test case with the following command:
-
- 1. Install LoongArch cross-tools on X86 machines.
-
- Download cross-tools.
-
- wget https://github.com/loongson/build-tools/releases/download/2022.05.29/loongarch64-clfs-5.0-cross-tools-gcc-full.tar.xz
-
- tar -vxf loongarch64-clfs-5.0-cross-tools-gcc-full.tar.xz -C /opt
-
- Config cross-tools env.
-
- . setenv.sh
-
- setenv.sh:
-
- #!/bin/sh
- set -x
- CC_PREFIX=/opt/cross-tools
-
- export PATH=$CC_PREFIX/bin:$PATH
- export LD_LIBRARY_PATH=$CC_PREFIX/lib:$LD_LIBRARY_PATH
- export LD_LIBRARY_PATH=$CC_PREFIX/loongarch64-unknown-linux-gnu/lib/:$LD_LIBRARY_PATH
- set +x
-
- 2. Test tests/tcg/multiarch.
-
- ./configure --disable-rdma --disable-pvrdma --prefix=/usr \
- --target-list="loongarch64-softmmu" \
- --disable-libiscsi --disable-libnfs --disable-libpmem \
- --disable-glusterfs --enable-libusb --enable-usb-redir \
- --disable-opengl --disable-xen --enable-spice --disable-werror \
- --enable-debug --disable-capstone --disable-kvm --enable-profiler
-
- cd build/
-
- make && make check-tcg
-
- or
-
- ./build/qemu-system-loongarch64 -machine virt -m 4G -cpu Loongson-3A5000 -smp 1 -kernel build/tests/tcg/loongarch64-softmmu/hello -monitor none -display none -chardev file,path=hello.out,id=output -serial chardev:output
+ You can reference docs/system/loongarch/loongson3.rst to get the information about system emulation of LoongArch.
- Linux-user emulation