Re: [PATCH v4 2/3] target/riscv: Expose "priv" register for GDB for reads

2019-10-15 Thread Bin Meng
On Mon, Oct 14, 2019 at 11:53 PM Jonathan Behrens wrote: > > 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

Re: [PATCH v4 2/3] target/riscv: Expose "priv" register for GDB for reads

2019-10-14 Thread Alistair Francis
On Mon, Oct 14, 2019 at 8:50 AM Jonathan Behrens wrote: > > 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

[PATCH v4 2/3] target/riscv: Expose "priv" register for GDB for reads

2019-10-14 Thread Jonathan Behrens
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 --- configure | 4 ++--