target/riscv: Expose "priv" register for GDB for reads
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: NJonathan Behrens <jonathan@fintelia.io> Reviewed-by: NAlistair Francis <alistair.francis@wdc.com> Reviewed-by: NBin Meng <bmeng.cn@gmail.com> Tested-by: NBin Meng <bmeng.cn@gmail.com> Signed-off-by: NPalmer Dabbelt <palmer@sifive.com>
Showing
gdb-xml/riscv-32bit-virtual.xml
0 → 100644
gdb-xml/riscv-64bit-virtual.xml
0 → 100644
想要评论请 注册 或 登录