MIPSr6+MSA emulation is broken in QEMU 6.2.0 (Ubuntu 22.04 LTS) and 7.0.0
Host environment
- Operating system: Ubuntu MATE 22.04.2 LTS
- OS/kernel version: 5.19.0-32-generic
- Architecture: x86_64
- QEMU flavor: qemu-mips64el
- QEMU version: 6.2.0, 7.0.0 (any other version prior to or after, they are all good)
- QEMU command line: qemu-mips64el -cpu I6400 simd_test.m64f32Lr6 -c 1 | tee qemu64
Description of problem
Many tests (8,11,12,13,15,19,23,30,31,36) are failing due to QEMU emulation problem.
Steps to reproduce
- Download the source code from https://github.com/VectorChief/UniSIMD-assembler (master or v1.1.0c)
- Change to project's test directory and build the binary for MIPS using cross-compiler (see simd_make_m64.mk)
- Run the binary with QEMU linux-user mode: qemu-mips64el -cpu I6400 simd_test.m64f32Lr6 -c 1 | tee qemu64
- Check the output text file qemu64 (with pluma or any other text editor) to see the error printouts
Additional information
The pre-built binary and its output file are attached as test.tar.gz test.tar.gz
Please note, that standalone cross-compiler for MIPS downloaded from the site (Codescape.GNU.Tools.Package.2020.06-01.for.MIPS.MTI.Linux.CentOS-6.x86_64.tar.gz) comes with its own version of QEMU 4.1.0 which masks the system's QEMU when added to the PATH.
Edited by Sergey Evlashev