cva6/ci
Moritz Schneider 5a19ef678f
csr: Fix pmpaddr and perf counter privileges (#698)
* pmp: Fix csr

- Add proper granularity (G=1)
- Disallow NA4
- Fix read of pmpaddr
- Add PMP benchmark to CI

Signed-off-by: Moritz Schneider <moritz.schneider@inf.ethz.ch>

* Fix mcounteren/scounteren CSR logic

The privilege check should verify that the __current__ privilege level has
access to the counter CSRs. Before it checked if the privilege level of
the CSR instruction has access to the counters. Essentially, the m-mode
could not access any counter csr if mcounteren/scounteren was not set.

* Fix pmpcfg csr incase of NA4

The next pmpcfg register value needs to be set to the previous value if
NA4 is selected.
2021-07-29 12:59:35 +02:00
..
build-riscv-gcc.sh Fix travis cache path 2019-01-08 15:05:35 +01:00
build-riscv-tests.sh csr: Fix pmpaddr and perf counter privileges (#698) 2021-07-29 12:59:35 +02:00
check-tests.sh Add System Verilog FPU (#163) 2019-03-18 11:51:58 +01:00
default.config Merge remote-tracking branch 'upstream/ariane_next' into serpent 2018-11-21 20:15:32 +01:00
float.config Add System Verilog FPU (#163) 2019-03-18 11:51:58 +01:00
get-torture.sh Scoreboard refactoring for better timing 2019-06-04 10:36:17 +02:00
gitlab-ci-emul.sh Add missing Ubuntu package to ci-emul scripts. 2018-11-18 11:33:47 +01:00
install-dtc.sh Minor modifications to ci scripts. 2018-11-02 18:02:07 +01:00
install-fesvr.sh ci: Fix caching (#609) 2021-02-08 15:28:43 +01:00
install-spike.sh fesvr: Remove legacy repo and update Spike 2020-08-25 12:43:36 +02:00
install-verilator.sh Update changelog and fix potential bug in install-verilator script 2019-06-04 10:36:17 +02:00
make-tmp.sh Change shebang of CI scripts 2018-02-06 13:08:54 +01:00
path-setup.sh Update to Verilator 4.014 2019-06-04 10:36:17 +02:00
riscv-amo-tests.list Misc majurity fixes (#125) 2018-10-17 11:57:18 +02:00
riscv-asm-tests.list ci: Consolidate tests 2020-08-25 12:43:36 +02:00
riscv-benchmarks.list csr: Fix pmpaddr and perf counter privileges (#698) 2021-07-29 12:59:35 +02:00
riscv-fp-tests.list fpu: Add distributed pipe regs to ease FPGA timing 2019-06-04 10:36:17 +02:00
riscv-mul-tests.list verilator: Add memory preloading 2020-08-25 12:43:36 +02:00
setup.sh ci: Switch to Github workflows (#689) 2021-06-24 22:00:02 +02:00
torture_make.patch Minor modifications to ci scripts. 2018-11-02 18:02:07 +01:00
travis-ci-emul.sh Add missing Ubuntu package to ci-emul scripts. 2018-11-18 11:33:47 +01:00