summaryrefslogtreecommitdiffstats
path: root/gdb-xml/riscv-32bit-virtual.xml
Commit message (Collapse)AuthorAgeFilesLines
* target/riscv: Expose "priv" register for GDB for readsJonathan Behrens2019-10-281-0/+11
This patch enables a debugger to read the current privilege level via a virtual "priv" register. When compiled with CONFIG_USER_ONLY the register is still visible but always reports the value zero. Signed-off-by: Jonathan Behrens <jonathan@fintelia.io> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Tested-by: Bin Meng <bmeng.cn@gmail.com> Signed-off-by: Palmer Dabbelt <palmer@sifive.com>