diff options
| author | Xiang W <[email protected]> | 2021-04-01 15:59:40 +0800 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2021-04-05 13:43:08 +0530 |
| commit | 3d8a952737935dd98200b05b68dacb5e94071877 (patch) | |
| tree | 0e641519f65664f3f05deada0cf547c64037e08c /lib/utils/timer | |
| parent | 4ef2f5d3e6b25356a8fab19574bed76ce60edeee (diff) | |
lib: fix csr detect support
csr_read_allowed/csr_read_allowed requires trap.case to detect the results,
but if no exception occurs, the value of trap.case will remain unchanged,
which makes the detection results unreliable. Add code to initialize
trap.case to 0.
Signed-off-by: Xiang W <[email protected]>
Reviewed-by: Anup Patel <[email protected]>
Diffstat (limited to 'lib/utils/timer')
0 files changed, 0 insertions, 0 deletions
