diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2021-08-23 12:55:23 -0700 |
---|---|---|
committer | Alistair Francis <alistair.francis@wdc.com> | 2021-09-01 11:59:12 +1000 |
commit | a974879b4581b58369a1e5e01d8ce6736764c679 (patch) | |
tree | fab6220c40c81ec02f0b176c02a5eb966f863980 /python/qemu | |
parent | 377cbb4bdbe2ee4155d740bf1d7fc9a081a61219 (diff) | |
download | qemu-a974879b4581b58369a1e5e01d8ce6736764c679.zip qemu-a974879b4581b58369a1e5e01d8ce6736764c679.tar.gz qemu-a974879b4581b58369a1e5e01d8ce6736764c679.tar.bz2 |
target/riscv: Reorg csr instructions
Introduce csrr and csrw helpers, for read-only and write-only insns.
Note that we do not properly implement this in riscv_csrrw, in that
we cannot distinguish true read-only (rs1 == 0) from any other zero
write_mask another source register -- this should still raise an
exception for read-only registers.
Only issue gen_io_start for CF_USE_ICOUNT.
Use ctx->zero for csrrc.
Use get_gpr and dest_gpr.
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-id: 20210823195529.560295-19-richard.henderson@linaro.org
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'python/qemu')
0 files changed, 0 insertions, 0 deletions