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

2019-10-08 Thread Jonathan Behrens
On Tue, Oct 8, 2019 at 8:27 AM Bin Meng wrote: > > On Tue, Oct 8, 2019 at 8:18 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

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

2019-10-08 Thread Bin Meng
On Tue, Oct 8, 2019 at 8:18 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 v3 2/3] target/riscv: Expose priv register for GDB for reads

2019-10-07 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 ++--