Re: [PATCH 16/18] target/riscv: Drop priv level check in mseccfg predicate()

2023-02-14 Thread weiwei
On 2023/2/14 12:12, Bin Meng wrote: riscv_csrrw_check() already does the generic privilege level check hence there is no need to do the specific M-mode access check in the mseccfg predicate(). With this change debugger can access the mseccfg CSR anytime. Signed-off-by: Bin Meng Reviewed-by:

[PATCH 16/18] target/riscv: Drop priv level check in mseccfg predicate()

2023-02-13 Thread Bin Meng
riscv_csrrw_check() already does the generic privilege level check hence there is no need to do the specific M-mode access check in the mseccfg predicate(). With this change debugger can access the mseccfg CSR anytime. Signed-off-by: Bin Meng --- target/riscv/csr.c | 2 +- 1 file changed, 1 in