Hi Christian, thanks for pointing out the omission of cpu flags in the
testing procedures, that was my bad.

Re: regressions listed by the SRU bot - it seems we tripped on an
infrastructure issue while running autopkgtests, but I've requested a
re-run just to make sure.

I can also confirm that the update in -proposed fixed the issue, testing
on a noble container:

[host]$ qemu-system-riscv64 --version
QEMU emulator version 8.2.2 (Debian 1:8.2.2+ds-0ubuntu1.5)
Copyright (c) 2003-2023 Fabrice Bellard and the QEMU Project developers

[qemu]$ make
gcc -g -march=rv64gcv test.c sigill.S -o test
./test abc abc
make: *** [Makefile:7: check] Illegal instruction (core dumped)

##### enable -proposed pocket and apt update the host #####

[host]$ sudo apt install qemu-system-misc/noble-proposed
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Selected version '1:8.2.2+ds-0ubuntu1.6' (Ubuntu:24.04/noble-proposed [amd64]) 
for 'qemu-system-misc'
Selected version '1:8.2.2+ds-0ubuntu1.6' (Ubuntu:24.04/noble-proposed [amd64]) 
for 'qemu-system-common' because of 'qemu-system-misc'
Selected version '1:8.2.2+ds-0ubuntu1.6' (Ubuntu:24.04/noble-proposed [amd64]) 
for 'qemu-system-gui' because of 'qemu-system-misc'
Selected version '1:8.2.2+ds-0ubuntu1.6' (Ubuntu:24.04/noble-proposed [amd64]) 
for 'qemu-system-modules-spice' because of 'qemu-system-misc'
Selected version '1:8.2.2+ds-0ubuntu1.6' (Ubuntu:24.04/noble-proposed [amd64]) 
for 'qemu-block-extra' because of 'qemu-system-misc'
Selected version '1:8.2.2+ds-0ubuntu1.6' (Ubuntu:24.04/noble-proposed [amd64]) 
for 'qemu-utils' because of 'qemu-block-extra'
[...]

[host]$ qemu-system-riscv64 --version
QEMU emulator version 8.2.2 (Debian 1:8.2.2+ds-0ubuntu1.6)
Copyright (c) 2003-2023 Fabrice Bellard and the QEMU Project developers

[qemu]$ make
gcc -g -march=rv64gcv test.c sigill.S -o test
./test abc abc

PS: the full command I used to launch qemu (and notice `-cpu` flag) was
$ qemu-system-riscv64 -nographic -machine virt -cpu max -bios 
/usr/lib/riscv64-linux-gnu/opensbi/generic/fw_jump.bin -kernel 
/usr/lib/u-boot/qemu-riscv64_smode/u-boot.bin -smp 2 -m 4G -drive 
file=ubuntu-24.04.1-preinstalled-server-riscv64.img,format=raw,if=virtio 
-device virtio-rng-pci -netdev 
user,id=unet,hostfwd=tcp:127.0.0.1:2222-0.0.0.0:22 -device 
virtio-net-pci,netdev=unet

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2095169

Title:
  [SRU] SIGILL on emulation of RISC-V Vector instructions

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/2095169/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to