How to see S and U mode CSRs in Freedom studio

(Fahad Mubeen) #1

I am using FU540 (HiFive-Unleashed) with SiFive Studio. The S mode CSR like sstatus are editable in M-mode, but the debugger (OpenOCD with Freedom studio) doesn’t show them. Is there a way to see those S & U mode CSRs in register view.

I can access S-mode CSRs from debugger console via gdb commands like “info register sstatus”, but the U-mode CSRs don’t get displayed even via gdb “info register ustatus” displays the error message “Invalid register `ustatus’”

Let me know if there is a way to do this, i.e. access S & U mode CSRs.