target/riscv: Add User CSRs read-only check
commit42109837b521e3a1f93e38f5058126a85ebc7f9f
authorLIU Zhiwei <zhiwei_liu@c-sky.com>
Tue, 10 Aug 2021 01:45:52 +0000 (10 09:45 +0800)
committerAlistair Francis <alistair.francis@wdc.com>
Wed, 1 Sep 2021 01:59:12 +0000 (1 11:59 +1000)
tree3f81f1fb048ddea9a913931ec4e369a2d0b77e8c
parenta8b37120d459a7fdd353f08e9ccb75178086c6cc
target/riscv: Add User CSRs read-only check

For U-mode CSRs, read-only check is also needed.

Signed-off-by: LIU Zhiwei <zhiwei_liu@c-sky.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Message-id: 20210810014552.4884-1-zhiwei_liu@c-sky.com
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
target/riscv/csr.c