How can i get the vector register information in RVV0.7.1 when debugging with QEMU6.2?

30 Views Asked by At

QEMU6.2 supports RISC-V vector extention0.7.1, and also I got riscv-gnu-toolchain for RVV0.7.1. When debugging, however, I can't get the vector registers using the command info reg vector or info reg v1. Is there a way for me to get the vector information?

1

There are 1 best solutions below

2
Peter Maydell On

You need a newer QEMU -- the support for reporting the vector registers via the gdbstub looks like it wasn't added until QEMU 7.0 (and there may have been some other bug fixes after that).

(In general, with a new and fast-moving target architecture like RISC-V, you're likely to have better luck using as new a version of QEMU as you reasonably can, and definitely when you run into something that seems like a bug or a missing feature it's worth checking whether a newer QEMU has fixed it.)