diff options
author | Xiang W <wxjstz@126.com> | 2021-04-01 15:59:40 +0800 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2021-04-05 13:43:08 +0530 |
commit | 3d8a952737935dd98200b05b68dacb5e94071877 (patch) | |
tree | 0e641519f65664f3f05deada0cf547c64037e08c /firmware | |
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 <wxjstz@126.com>
Reviewed-by: Anup Patel <anup.patel@wdc.com>
Diffstat (limited to 'firmware')
0 files changed, 0 insertions, 0 deletions