riscvarchive / riscv-qemu

QEMU with RISC-V (RV64G, RV32G) Emulation Support
385 stars 154 forks source link

RISC-V Privileged ISA spec conformance fixes and cleanup #115

Closed michaeljclark closed 6 years ago

michaeljclark commented 6 years ago

This is a series of spec conformance bug fixes and code cleanups. We would like to get this series in after our core changes in v8.2.

michaeljclark commented 6 years ago

Merging into riscv-all

NonerKao commented 6 years ago

Sorry for bringing this up again, but it seems that in target/riscv/op_helper.c's csr_read_helper function, the logic around ctr_en is still out-of-date: it depends on m[s|u]counteren registers. The branch is the riscv-all after #123, so it should be fairly new. I'll keep a side note to this thread in my upcoming perf patch.