Re: [PATCH v2 16/18] target/riscv: Allow debugger to access sstc CSRs

2023-03-01 Thread LIU Zhiwei
On 2023/2/28 21:45, Bin Meng wrote: From: Bin Meng At present with a debugger attached sstc CSRs can only be accssed when CPU is in M-mode, or configured correctly. Fix it by adjusting their predicate() routine logic so that the static config check comes before the run-time check, as well as

[PATCH v2 16/18] target/riscv: Allow debugger to access sstc CSRs

2023-02-28 Thread Bin Meng
From: Bin Meng At present with a debugger attached sstc CSRs can only be accssed when CPU is in M-mode, or configured correctly. Fix it by adjusting their predicate() routine logic so that the static config check comes before the run-time check, as well as adding a debugger check. Signed-off-by