Re: [Qemu-devel] [PATCH v8 29/35] RISC-V: Implement existential predicates for CSRs

2018-05-03 Thread Alistair Francis
On Wed, Apr 25, 2018 at 5:05 PM Michael Clark wrote: > CSR predicate functions are added to the CSR table. > mstatus.FS and counter enable checks are moved > to predicate functions and two new predicates are > added to check misa.S for s* CSRs and a new PMP > CPU feature for pmp* CSRs. > Process

[Qemu-devel] [PATCH v8 29/35] RISC-V: Implement existential predicates for CSRs

2018-04-25 Thread Michael Clark
CSR predicate functions are added to the CSR table. mstatus.FS and counter enable checks are moved to predicate functions and two new predicates are added to check misa.S for s* CSRs and a new PMP CPU feature for pmp* CSRs. Processors that don't implement S-mode will trap on access to s* CSRs and