Re: [PATCH 09/17] target/riscv: Reorg csr instructions

2021-07-22 Thread Alistair Francis
On Fri, Jul 9, 2021 at 2:46 PM Richard Henderson wrote: > > 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

[PATCH 09/17] target/riscv: Reorg csr instructions

2021-07-08 Thread Richard Henderson
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 regi