Re: [PATCH] riscv: Skip checking CSR privilege level in debugger mode

2019-09-20 Thread Alistair Francis
On Fri, Sep 20, 2019 at 7:48 AM Bin Meng wrote: > > If we are in debugger mode, skip the CSR privilege level checking > so that we can read/write all CSRs. Otherwise we get: > > (gdb) p/x $mtvec > Could not fetch register "mtvec"; remote failure reply 'E14' > > when the hart is currently in

[PATCH] riscv: Skip checking CSR privilege level in debugger mode

2019-09-20 Thread Bin Meng
If we are in debugger mode, skip the CSR privilege level checking so that we can read/write all CSRs. Otherwise we get: (gdb) p/x $mtvec Could not fetch register "mtvec"; remote failure reply 'E14' when the hart is currently in S-mode. Reported-by: Zong Li Signed-off-by: Bin Meng ---