Skip to content
Snippets Groups Projects
Commit a4128294 authored by Weiwei Li's avatar Weiwei Li Committed by Alistair Francis
Browse files

target/riscv: fix csr check for cycle{h}, instret{h}, time{h}, hpmcounter3-31{h}


- modify check for mcounteren to work in all less-privilege mode
- modify check for scounteren to work only when S mode is enabled
- distinguish the exception type raised by check for scounteren between U
and VU mode

Signed-off-by: default avatarWeiwei Li <liweiwei@iscas.ac.cn>
Signed-off-by: default avatarJunqiang Wang <wangjunqiang@iscas.ac.cn>
Reviewed-by: default avatarAlistair Francis <alistair.francis@wdc.com>
Message-Id: <20220817083756.12471-1-liweiwei@iscas.ac.cn>
Signed-off-by: default avatarAlistair Francis <alistair.francis@wdc.com>
parent 513eb437
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment