Re: [PATCH] target/riscv: Expose "priv" register for GDB

2019-10-02 Thread Bin Meng
On Wed, Oct 2, 2019 at 10:51 PM Jonathan Behrens wrote: > > This patch enables a debugger to read and write the current privilege level > via > a special "priv" register. When compiled with CONFIG_USER_ONLY the register is > still visible but is hardwired to zero. > > Signed-off-by: Jonathan

[PATCH] target/riscv: Expose "priv" register for GDB

2019-10-02 Thread Jonathan Behrens
This patch enables a debugger to read and write the current privilege level via a special "priv" register. When compiled with CONFIG_USER_ONLY the register is still visible but is hardwired to zero. Signed-off-by: Jonathan Behrens --- gdb-xml/riscv-32bit-cpu.xml | 1 +