Skip to content

ARCv3: qemu fails by VMAX2 instruction #181

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
pavelvkozlov opened this issue May 30, 2023 · 1 comment · Fixed by #186
Closed

ARCv3: qemu fails by VMAX2 instruction #181

pavelvkozlov opened this issue May 30, 2023 · 1 comment · Fixed by #186
Assignees
Labels
bug Something isn't working

Comments

@pavelvkozlov
Copy link

Running linux kernel selftests, I've faced another QEMU issue on ARCv3 32-bit system.

# uname -a
Linux buildroot 5.16.0-711679-g5a70af7c9bd7 #2 PREEMPT Mon May 29 16:27:03 +04 2023 arc32 GNU/Linux
# /usr/lib/kselftests/run_kselftest.sh -t proc:read
kselftest: Running tests in proc
TAP version 13
1..1
# selftests: proc: read
qemu-system-arc: ../qemu/target/arc/semfunc-mapping.def:660: arc_gen_VMAX2: Assertion `"SOME SEMFUNC " "VMAX2" " WAS NOT IMPLEMENTED" == 0' failed.
./qemu-arc32-run-ram0.sh: line 21:  1631 Aborted                 $ARC_QEMU_PATH/qemu-system-arc -cpu hs5x -M virt,ram_start=0 -m 2048 -display none -kernel $IMAGE -netdev tap,id=net0,ifname=$TAP,script=no,downscript=no -device virtio-net-device,netdev=net0 -drive file=$SWAP,format=raw,id=hd0 -device virtio-blk-device,drive=hd0 --global cpu.freq_hz=30000000 -nographic

The vmax2 instruction appears in the linux kernel code, I can provide an image upon request.

@BrunoASMauricio BrunoASMauricio self-assigned this May 30, 2023
@BrunoASMauricio BrunoASMauricio added the bug Something isn't working label May 30, 2023
@claziss
Copy link
Contributor

claziss commented Jun 12, 2023

Here are a number of issues:

  • Wrong GNU encoding for VMAX2. It uses the same HS6x encoding, and it should be different.
  • Wrong GNU encoding for VMIN2. It uses the same HS6x encoding, and it should be different.
  • QEMU assertion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants