RISC-V vector registers not visible #41
Replies: 5 comments 4 replies
-
Unfortunately I don't have experience with the vector extension. :-( |
Beta Was this translation helpful? Give feedback.
-
Thanks for your quick reply! It's my first time messaging on this channel. Is there an audience here that could have experience of this, or am I on my own with this question?
…________________________________
From: Liviu Ionescu
Sent: Thursday, April 17, 2025 5:18 PM
To: xpack-dev-tools/riscv-none-elf-gcc-xpack
Cc: Lorcan Oneill - M72430; Author
Subject: Re: [xpack-dev-tools/riscv-none-elf-gcc-xpack] RISC-V vector registers not visible (Discussion #41)
EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
Unfortunately I don't have experience with the vector extension. :-(
—
Reply to this email directly, view it on GitHub<#41 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A6TWBUG4TYQFEUNNFEG2KSL2Z7H3XAVCNFSM6AAAAAB3LIWCJKVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTEOBWHE3DKMA>.
You are receiving this because you authored the thread.
|
Beta Was this translation helpful? Give feedback.
-
Anything useful here? What version of the RISC-V vector extension does your target support? If it's pre 1.0 then I think that you are out of luck: Not sure if there's anything of relevance here? But the OpenOCD documentation seems to suggest that the vector (spec 1.0) registers should be visible by default: |
Beta Was this translation helpful? Give feedback.
-
Hmm. Some interesting stuff there. We can see the vector registers if we use the RISC-V fork of OpenOCD so it's unlikely to be a VSCode or GDB problem. We can also define the vector control registers (but not the vector registers V0-V31) using custom register definitions with the upstream version. |
Beta Was this translation helpful? Give feedback.
-
From the comments in the RISC-V fork, it has not been upstreamed for a long time and there's not much hope of it happening anytime soon. According to the OpenOCD 0.12.0 spec the vector registers should be there and the xPack version we're using is 0.12.0-3 so it should be ok. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
According to the OpenOCD 0.12.0 User's Guide (extract below) the RISC-V vector registers should be accessible. However, we can't see them when using VSCode and OpenOCD/GDB. Do some flags need to be set for that somewhere? We're using xpack-openocd version 0.12.0-3.
This User’s Guide documents release 0.12.0, dated 20 December 2022, of the Open On-Chip Debugger (OpenOCD).
16.10.2
Vector Registers
For harts that implement the vector extension, OpenOCD provides access to the relevant CSRs, as well as the vector registers (v0-v31).
Beta Was this translation helpful? Give feedback.
All reactions